|
JADE Java Persistence API 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jadeworld.jade.rootschema.Object
com.jadeworld.jade.rootschema.JadeDynamicObject
public class JadeDynamicObject
The transient JadeDynamicObject class implements the structure and behavior of dynamic objects. A JADE dynamic object is a self-describing object whose attributes are determined at run time. The JadeDynamicObject class has two fixed attributes: type and name, which you can use to determine the runtime type of a dynamic object.
| Field Summary |
|---|
| Fields inherited from class com.jadeworld.jade.rootschema.Object |
|---|
oid |
| Constructor Summary | |
|---|---|
JadeDynamicObject()
Creates a new instance of JadeDynamicObject |
|
| Method Summary | |
|---|---|
boolean |
addProperty(java.lang.String propertyName,
java.lang.String propertyType)
Adds the property with the specified name and type to the receiver at run time. |
void |
clear()
Clears the contents of the receiver at run time, by deleting all user-defined properties added by calling the addProperty method and all values set by calling the setPropertyValue method. |
void |
clearValues()
Clears the contents of values assigned to the receiver using the setPropertyValue method to set the value to null. |
JadeDynamicObjectArray |
getChildren()
Returns the array of dynamic child objects. |
java.lang.String |
getName()
Returns the runtime name of the JadeDynamicObject instance in textual format. |
JadeDynamicObject |
getParent()
Returns the parent of this dynamic object. |
int |
getPropertyCount()
Returns the number of dynamically defined properties for the receiver. |
java.lang.String |
getPropertyName(int index)
Returns a string containing the name of the property at the relative index specified in the index parameter. |
java.lang.String |
getPropertyType(java.lang.String name)
Returns a string containing the name of the JADE type of the property specified in the name parameter. |
java.lang.String |
getPropertyTypeByIndex(int index)
Returns a string containing the name of the JADE type of the property at the relative index specified in the index parameter. |
java.lang.Object |
getPropertyValue(java.lang.String name)
Returns the value of the property specified in the name parameter. |
java.lang.Object |
getPropertyValueByIndex(int index)
Returns the value of the property at the relative index specified in the index parameter. |
int |
getType()
Returns the runtime type of the JadeDynamicObject instance. |
void |
setName(java.lang.String name)
Sets the runtime name of the JadeDynamicObject. |
void |
setParent(JadeDynamicObject parent)
Set the parent of this dynamic object, which automatically adds this instance to the children property of the parent object instance. |
void |
setPropertyValue(java.lang.String name,
java.lang.Object value)
Sets the value of the property specified in the name parameter to the value specified in the value parameter at run time. |
void |
setPropertyValueByIndex(int index,
java.lang.Object value)
Sets the value of the property of the property at the relative index specified in the index parameter. |
void |
setType(int type)
Sets the runtime type of the JadeDynamicObject instance. |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JadeDynamicObject()
| Method Detail |
|---|
public java.lang.String getName()
getName in class Objectpublic void setName(java.lang.String name)
name - The JadeDynamicObject name propertypublic int getType()
public void setType(int type)
type - The JadeDynamicObject type valuepublic JadeDynamicObjectArray getChildren()
public JadeDynamicObject getParent()
public void setParent(JadeDynamicObject parent)
parent - The JadeDynamicObject parent property value.
public boolean addProperty(java.lang.String propertyName,
java.lang.String propertyType)
propertyName - The name of the property to be added.propertyType - The JADEe type of the property to be added.
public void clear()
public void clearValues()
public java.lang.String getPropertyName(int index)
index - The property index.
public java.lang.String getPropertyType(java.lang.String name)
name - The property name.
public java.lang.String getPropertyTypeByIndex(int index)
index - The property index.
public java.lang.Object getPropertyValue(java.lang.String name)
getPropertyValue in class Objectname - The name of the property.
public java.lang.Object getPropertyValueByIndex(int index)
index - The property index.
public int getPropertyCount()
public void setPropertyValue(java.lang.String name,
java.lang.Object value)
name - The property name.value - The corresponding property value to set.
public void setPropertyValueByIndex(int index,
java.lang.Object value)
index - The property index.value - The corresponding property value to set.
|
JADE Java Persistence API 1.0 |
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||