Packagejp.nium.utils
Classpublic final class ObjectUtil

ObjectUtil クラスは、オブジェクト操作のためのユーティリティクラスです。 The ObjectUtil class is an utility class for object operation.



Public Methods
 MethodDefined by
  
clone(target:Object):Object
[static] 指定されたオブジェクトを複製して返します。 Returns the copy of the specified object.
ObjectUtil
  
formatToString(target:*, className:String, ... args):String
[static] シンプルな toString() メソッドの実装を提供します。
ObjectUtil
  
setProperties(target:Object, parameters:Object):void
[static] 対象オブジェクトのプロパティを一括設定します。 Set the whole property of the object.
ObjectUtil
  
toQueryString(query:Object):String
[static] 指定されたオブジェクトのクエリーストリング表現を返します。 Returns the query string expression of the specified object.
ObjectUtil
  
toString(target:Object):String
[static] 指定されたオブジェクトのストリング表現を返します。 Returns the string expression of the specified object.
ObjectUtil
Method detail
clone()method
public static function clone(target:Object):Object

指定されたオブジェクトを複製して返します。 Returns the copy of the specified object.

Parameters
target:Object対象のオブジェクトです。 The object to copy.

Returns
Object複製されたオブジェクトです。 The copied object.

Example
   

formatToString()method 
public static function formatToString(target:*, className:String, ... args):String

シンプルな toString() メソッドの実装を提供します。

Parameters
target:*実装したい対象です。
 
className:String対象のクラス名です。
 
... args出力に反映させたいプロパティ名です。

Returns
String生成されるストリングです。

Example
   

setProperties()method 
public static function setProperties(target:Object, parameters:Object):void

対象オブジェクトのプロパティを一括設定します。 Set the whole property of the object.

Parameters
target:Object一括設定したいオブジェクトです。 The object to set.
 
parameters:Object設定したいプロパティを含んだオブジェクトです。 The object that contains the property to setup.

Example
   

toQueryString()method 
public static function toQueryString(query:Object):String

指定されたオブジェクトのクエリーストリング表現を返します。 Returns the query string expression of the specified object.

Parameters
query:Object対象のオブジェクトです。 The object to get the query string.

Returns
Stringオブジェクトのクエリーストリング表現です。 The query string expression of the object.

Example
   

toString()method 
public static function toString(target:Object):String

指定されたオブジェクトのストリング表現を返します。 Returns the string expression of the specified object.

Parameters
target:Object対象のオブジェクトです。 The object to get the string expression.

Returns
Stringオブジェクトのストリング表現です。 The string expression of the object.

Example