Packagejp.progression.scenes
Classpublic class SceneId
InheritanceSceneId Inheritance Object

SceneId クラスは、Progression が管理するシーンオブジェクト構造上の特定のシーンを表すモデルクラスです。

View the examples



Public Properties
 PropertyDefined By
  length : int
[read-only] シーンパスの深度を取得します。
SceneId
  path : String
[read-only] シーンパスを取得します。
SceneId
  query : Query
[read-only] シーンパスに関連付けられているクエリを Object 表現で取得します。
SceneId
Public Methods
 MethodDefined By
  
SceneId(scenePath:String, query:Object = null)
新しい SceneId インスタンスを作成します。 Creates a new SceneId object.
SceneId
  
SceneId インスタンスのコピーを作成して、各プロパティの値を元のプロパティの値と一致するように設定します。 Duplicates an instance of an SceneId subclass.
SceneId
  
contains(sceneId:SceneId):Boolean
指定されたシーン識別子が、自身の表すシーンパスの子シーンオブジェクトを指しているかどうかを返します。
SceneId
  
equals(sceneId:SceneId, matchQuery:Boolean = false):Boolean
指定されたシーン識別子が、自身の表すシーンパスと同一かどうかを返します。
SceneId
  
getNameByIndex(index:int):String
指定位置にあるシーンの名前を返します。
SceneId
  
slice(startIndex:int = 0, endIndex:int = 16777215):SceneId
シーン識別子の保存するシーンパスの指定された範囲のエレメントを取り出して、新しいシーン識別子を返します。 この操作で元のシーン識別子は変更されません。
SceneId
  
toString():String
指定されたオブジェクトのストリング表現を返します。 Returns the string representation of the specified object.
SceneId
  
transfer(path:String):SceneId
指定された絶対シーンパスもしくは相対シーンパスを使用して移動後のシーン識別子を返します。 この操作で元のシーン識別子は変更されません。
SceneId
  
validate(path:String):Boolean
[static] シーンパスの書式が正しいかどうかを返します。
SceneId
Property Detail
lengthproperty
length:int  [read-only]

シーンパスの深度を取得します。


Implementation
    public function get length():int
pathproperty 
path:String  [read-only]

シーンパスを取得します。


Implementation
    public function get path():String
queryproperty 
query:Query  [read-only]

シーンパスに関連付けられているクエリを Object 表現で取得します。


Implementation
    public function get query():Query
Constructor Detail
SceneId()Constructor
public function SceneId(scenePath:String, query:Object = null)

新しい SceneId インスタンスを作成します。 Creates a new SceneId object.

Parameters
scenePath:Stringシーン識別子に変換するシーンパス、または URL を表すストリングです。
 
query:Object (default = null)設定したいプロパティを含んだオブジェクトです。
Method Detail
clone()method
public function clone():SceneId

SceneId インスタンスのコピーを作成して、各プロパティの値を元のプロパティの値と一致するように設定します。 Duplicates an instance of an SceneId subclass.

Returns
SceneId元のオブジェクトと同じプロパティ値を含む新しい SceneId インスタンスです。 A new SceneId object that is identical to the original.
contains()method 
public function contains(sceneId:SceneId):Boolean

指定されたシーン識別子が、自身の表すシーンパスの子シーンオブジェクトを指しているかどうかを返します。

Parameters

sceneId:SceneIdテストするシーン識別子です。

Returns
Boolean子シーンオブジェクトを指していれば true に、それ以外の場合は false になります。
equals()method 
public function equals(sceneId:SceneId, matchQuery:Boolean = false):Boolean

指定されたシーン識別子が、自身の表すシーンパスと同一かどうかを返します。

Parameters

sceneId:SceneIdテストするシーン識別子です。
 
matchQuery:Boolean (default = false)テストにクエリの値を含めるかどうかです。

Returns
Boolean同一のシーンパスを指していれば true に、それ以外の場合は false になります。
getNameByIndex()method 
public function getNameByIndex(index:int):String

指定位置にあるシーンの名前を返します。

Parameters

index:int取得した名前のあるシーンの位置です。

Returns
String指定位置にあるシーンの名前です。
slice()method 
public function slice(startIndex:int = 0, endIndex:int = 16777215):SceneId

シーン識別子の保存するシーンパスの指定された範囲のエレメントを取り出して、新しいシーン識別子を返します。 この操作で元のシーン識別子は変更されません。

Parameters

startIndex:int (default = 0)スライスの始点のインデックスを示す数値です。
 
endIndex:int (default = 16777215)スライスの終点のインデックスを示す数値です。このパラメータを省略すると、スライスには配列の最初から最後までのすべてのエレメントが取り込まれます。endIndex が負の数値の場合、終点は配列の末尾から開始します。つまり、-1 が最後のエレメントです。

Returns
SceneId元のシーンパスから取り出した一連のエレメントから成るシーン識別子です。
toString()method 
public function toString():String

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

Returns
Stringオブジェクトのストリング表現です。 A string representation of the object.
transfer()method 
public function transfer(path:String):SceneId

指定された絶対シーンパスもしくは相対シーンパスを使用して移動後のシーン識別子を返します。 この操作で元のシーン識別子は変更されません。

Parameters

path:String移動先のシーンパスです。

Returns
SceneId移動後のシーン識別子です。
validate()method 
public static function validate(path:String):Boolean

シーンパスの書式が正しいかどうかを返します。

Parameters

path:String書式を調べるシーンパスです。

Returns
Boolean書式が正しければ true に、それ以外の場合は false になります。
Examples