| Package | jp.nium.utils |
| Class | public final class ObjectUtil |
| Inheritance | ObjectUtil Object |
| Method | Defined By | ||
|---|---|---|---|
clone(target:Object):Object [static]
指定されたオブジェクトを複製して返します。
Returns the copy of the specified object.
| ObjectUtil | ||
length(target:Object):int [static]
指定されたオブジェクトに設定されているプロパティ数を返します。
Returns the number of the property of the specified object.
| ObjectUtil | ||
setProperties(target:Object, props: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 | ||
| clone | () | method |
public static function clone(target:Object):Object指定されたオブジェクトを複製して返します。 Returns the copy of the specified object.
Parameters
target:Object — 対象のオブジェクトです。
The object to copy.
|
Object —
複製されたオブジェクトです。
The copied object.
|
| length | () | method |
public static function length(target:Object):int指定されたオブジェクトに設定されているプロパティ数を返します。 Returns the number of the property of the specified object.
Parameters
target:Object — 対象のオブジェクトです。
The object to check.
|
int —
オブジェクトに設定されているプロパティ数です。
The property count of the object.
|
var o:Object = { a:"A", b:"B", c:"C" };
trace( ObjectUtil.length( o ) ); // 3
o.d = "D";
o.e = "E";
trace( ObjectUtil.length( o ) ); // 5
| setProperties | () | method |
public static function setProperties(target:Object, props:Object):void対象オブジェクトのプロパティを一括設定します。 Set the whole property of the object.
Parameters
target:Object — 一括設定したいオブジェクトです。
The object to set.
| |
props:Object — 設定したいプロパティを含んだオブジェクトです。
The object that contains the property to setup.
|
| 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.
|
String —
オブジェクトのクエリーストリング表現です。
The query string expression of the object.
|
var o:Object = { a:"A", b:"B", c:"C" };
trace( ObjectUtil.toQueryString( o ) ); // c=C&a=A&b=B
| 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.
|
String —
オブジェクトのストリング表現です。
The string expression of the object.
|
var o:Object = { a:"A", b:"B", c:"C" };
trace( ObjectUtil.toString( o ) ); // {c:"C", a:"A", b:"B"}