|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |
java.lang.Objectcom.fiverworks.xone.model.XoneObject
Xoneのクラス(XoneClass)、インスタンス(XoneInstance)、Anyインスタンス(XoneAnyInstance)のスーパークラスです。
フィールドの概要 | |
protected String |
className
|
protected com.fiverworks.xone.model.XoneMap |
elements
|
protected String |
hint
|
protected com.fiverworks.xone.model.XoneMap |
lists
|
protected String |
name
|
protected String |
path
|
protected static ResourceBundle |
rb
|
protected String |
type
|
static String |
XONE_NULL
nullを示す文字列 |
メソッドの概要 | |
void |
adaptClass(XoneClass xc)
このオブジェクトに新たにクラスを適用します。 |
void |
adaptClass(XoneClass xc,
String name)
このオブジェクトに新たにクラスを適用します。 |
void |
addAllElementLists(XoneElementList[] lists)
エレメントリストを追加します。 |
void |
addAllElements(XoneElement[] elements)
エレメントを追加します。 |
XoneElement |
addElement(String name,
String type)
エレメントを追加します。 |
XoneElement |
addElement(String name,
String type,
String value)
エレメントを追加します。 |
XoneElement |
addElement(String name,
String type,
String[] values)
エレメントを追加します。 |
XoneElement |
addElement(XoneElement element)
エレメントを追加します。 |
XoneElementList |
addElementList(String listName)
エレメントリストを追加します。 |
XoneElementList |
addElementList(XoneElementList list)
エレメントリストを追加します。 |
Object |
clone()
オブジェクトのコピーを返します。 |
int |
compareTo(Object o)
指定されたオブジェクトと比較します。 |
boolean |
containsElement(String name)
エレメントが含まれているかどうかを返します。 |
boolean |
containsElement(XoneElement element)
エレメントが含まれているかどうかを返します。 |
boolean |
containsElementList(String listName)
エレメントリストが含まれているかどうかを返します。 |
boolean |
containsElementList(XoneElementList list)
エレメントリストが含まれているかどうかを返します。 |
Iterator |
elementIterator()
エレメントのイテレータを取得します。 |
Iterator |
elementListIterator()
エレメントリストのイテレータを取得します。 |
Iterator |
elementListNameIterator()
エレメントリストの名前のイテレータを取得します。 |
int |
elementListSize()
エレメントリストの数を取得します。 |
Iterator |
elementNameIterator()
エレメントの名前のイテレータを取得します。 |
int |
elementSize()
エレメントの数を取得します。 |
XoneElementList[] |
getAllElementLists()
すべてのエレメントリストを取得します。 |
XoneElement[] |
getAllElements()
すべてのエレメントを取得します。 |
String |
getClassName()
オブジェクトのクラス名を取得します。 |
XoneElement |
getElement(String name)
エレメントを取得します。 |
XoneElementList |
getElementList(String listName)
エレメントリストを取得します。 |
String |
getElementType(String name)
エレメントの型を取得します。 |
String |
getElementValue(String name)
エレメントの値を取得します。 |
Object |
getElementValueAsType(String name)
エレメントの値をその型に対応するObjectで取得します。 |
String |
getHint()
hintを取得します。 |
String |
getName()
オブジェクト名を取得します。 |
String |
getParent()
オブジェクトの親フォルダ名を返します。 |
String |
getPath()
オブジェクトのパスを返します。 |
String |
getRestriction(String name)
エレメントの制約式を取得します。 |
String |
getRestrictionMessage(String name)
エレメントの制約式のメッセージを取得します。 |
String |
getSerializedElements()
エレメントおよびエレメントリストのシリアライズされた表現を返します(システムの内部で使用)。 |
String |
getType()
オブジェクトのタイプを返します。 |
boolean |
isAnyInstance()
オブジェクトがAnyインスタンスかどうか調べます。 |
boolean |
isClass()
オブジェクトがクラスかどうか調べます。 |
boolean |
isInstance()
オブジェクトがインスタンスかどうか調べます。 |
boolean |
isValid()
評価して正しいかどうか返します。 |
boolean |
isValidationEnabled()
評価が可能かどうか返します。 |
void |
removeAllElementLists()
すべてのエレメントリストを削除します。 |
void |
removeAllElements()
すべてのエレメントを削除します。 |
XoneElement |
removeElement(String name)
エレメントを削除します。 |
XoneElement |
removeElement(XoneElement element)
エレメントを削除します。 |
XoneElementList |
removeElementList(String listName)
エレメントリストを削除します。 |
XoneElementList |
removeElementList(XoneElementList list)
エレメントリストを削除します。 |
void |
setClassName(String className)
クラス名をセットします。 |
void |
setElementValue(String name,
String value)
エレメントの値をセットします。 |
void |
setElementValue(String name,
String[] values)
エレメントの値をセットします。 |
void |
setHint(String hint)
hintを設定します。 |
void |
setName(String name)
オブジェクト名をセットします。 |
String |
toString()
オブジェクトの文字列表現を返します。 |
ValidateResult[] |
validate()
評価した結果を返します。 |
クラス java.lang.Object から継承したメソッド |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
フィールドの詳細 |
protected static final ResourceBundle rb
protected com.fiverworks.xone.model.XoneMap elements
protected com.fiverworks.xone.model.XoneMap lists
protected String type
protected String className
protected String name
protected String path
protected String hint
public static final String XONE_NULL
メソッドの詳細 |
public XoneElement addElement(String name, String type)
name
- エレメント名type
- エレメントの型
XoneRuntimeException
public XoneElement addElement(String name, String type, String value)
value
- エレメントの値name
- エレメント名type
- エレメントの型
XoneRuntimeException
public XoneElement addElement(String name, String type, String[] values)
values
- エレメントの値name
- エレメント名type
- エレメントの型
XoneRuntimeException
public XoneElement addElement(XoneElement element)
element
- 追加するエレメント
XoneRuntimeException
public void addAllElements(XoneElement[] elements)
elements
- 追加するエレメント
XoneRuntimeException
public XoneElement removeElement(String name)
name
- 削除するエレメント名
XoneRuntimeException
public XoneElement removeElement(XoneElement element)
element
- 削除するエレメント
XoneRuntimeException
public void removeAllElements()
XoneRuntimeException
public XoneElement getElement(String name)
name
- 取得するエレメント名
public String getElementType(String name)
name
- 取得するエレメント名
public String getElementValue(String name)
name
- 取得するエレメント名
public Object getElementValueAsType(String name)
例:エレメントabcの型がXoneModel.INT_ARRAYの場合 Integer[] ia = (Integer[])xo.getElementValueAsType("abc");エレメントの型がプリミティブ型でない場合は、String型になります。
name
- 取得するエレメント名
public void setElementValue(String name, String value)
name
- 取得するエレメント名value
- エレメントの値
XoneRuntimeException
- nameのエレメントが存在しない場合、あるいはvalueが不正な場合public void setElementValue(String name, String[] values)
values
- エレメントの値name
- 取得するエレメント名
XoneRuntimeException
- nameのエレメントが存在しない場合、あるいはvaluesが不正な場合public XoneElement[] getAllElements()
public boolean containsElement(String name)
name
- エレメント名
public boolean containsElement(XoneElement element)
element
- エレメント
public Iterator elementNameIterator()
public Iterator elementIterator()
public int elementSize()
public XoneElementList addElementList(String listName)
listName
- エレメントリスト名
XoneRuntimeException
public XoneElementList addElementList(XoneElementList list)
list
- エレメントリスト
XoneRuntimeException
public void addAllElementLists(XoneElementList[] lists)
lists
- エレメントリスト
XoneRuntimeException
public XoneElementList removeElementList(String listName)
listName
- エレメントリスト名
XoneRuntimeException
public XoneElementList removeElementList(XoneElementList list)
list
- エレメントリスト
XoneRuntimeException
public void removeAllElementLists()
XoneRuntimeException
public XoneElementList getElementList(String listName)
listName
- エレメントリスト名
public boolean containsElementList(String listName)
listName
- エレメントリスト名
public boolean containsElementList(XoneElementList list)
list
- エレメントリスト
public XoneElementList[] getAllElementLists()
public Iterator elementListNameIterator()
public Iterator elementListIterator()
public int elementListSize()
public boolean isValidationEnabled()
public ValidateResult[] validate()
XoneRuntimeException
public boolean isValid()
XoneRuntimeException
public String getRestriction(String name)
name
- 取得するエレメント名
public String getRestrictionMessage(String name)
name
- 取得するエレメント名
public String getType()
public boolean isInstance()
public boolean isAnyInstance()
public boolean isClass()
public String getClassName()
public void setClassName(String className)
className
- クラス名
XoneRuntimeException
public String getName()
public void setName(String name)
name
- セットする名前
XoneRuntimeException
public String toString()
public String getSerializedElements()
public String getPath()
public String getParent()
public Object clone()
XoneRuntimeException
- このオブジェクトがインスタンスで、クラスが見つからない場合public void adaptClass(XoneClass xc)
xc
- 適用するクラス
XoneRuntimeException
public void adaptClass(XoneClass xc, String name)
name
- 新しいインスタンスの名前xc
- 適用するクラス
XoneRuntimeException
- このオブジェクトがインスタンスで、クラスが見つからない場合public String getHint()
public void setHint(String hint)
hint
- hintの新しい値。public int compareTo(Object o)
Comparable
内の compareTo
o
- 比較するオブジェクト
|
||||||||||
前のクラス 次のクラス | フレームあり フレームなし | |||||||||
概要: 入れ子 | フィールド | コンストラクタ | メソッド | 詳細: フィールド | コンストラクタ | メソッド |