|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.views.sdm.model.IlvDefaultSDMNode
public class IlvDefaultSDMNode
IlvDefaultSDMNode is a simple
implementation of the IlvSDMNode
interface that stores the node properties in memory.
This class can be subclassed to create SDM nodes with other built-in properties.
IlvDefaultSDMModel,
Serialized Form| Field Summary | |
|---|---|
static byte |
MOVE_DOWN
Action of shiftChild(IlvMutableSDMNode, byte) |
static byte |
MOVE_FIRST
Action of shiftChild(IlvMutableSDMNode, byte) |
static byte |
MOVE_LAST
Action of shiftChild(IlvMutableSDMNode, byte) |
static byte |
MOVE_UP
Action of shiftChild(IlvMutableSDMNode, byte) |
| Constructor Summary | |
|---|---|
IlvDefaultSDMNode(String tag)
Creates a new node of symbolic type tag. |
|
| Method Summary | |
|---|---|
void |
addChild(IlvMutableSDMNode child,
IlvMutableSDMNode before)
Adds a child to this object's submodel. |
Enumeration |
getChildren()
Returns the children of this data object, that is, the objects contained in the submodel attached to this object. |
int |
getChildrenCount()
Returns the number of children of this data object. |
String |
getID()
Returns the identifier of the object. |
IlvSDMNode |
getParent()
Returns the parent of this data object, that is, the object to which the submodel containing this object is attached. |
Object |
getProperty(String property)
Returns the value of a property of the data object, or null if
the property does not exist. |
String[] |
getPropertyNames()
Returns the names of all the properties of this object. |
String |
getTag()
Returns the symbolic type (or "tag") of the object. |
void |
removeChild(IlvMutableSDMNode child)
Removes a child from this object's submodel. |
void |
setID(String id)
Sets the identifier of the object. |
void |
setParent(IlvMutableSDMNode parent)
Sets the parent of this data object, that is, the object to which the submodel containing this object is attached. |
void |
setProperty(String property,
Object value)
Stores a property in this object's property table. |
void |
shiftChild(IlvMutableSDMNode child,
byte action)
Moves a child up or down in the children list. |
String |
toString()
Returns a String containing the tag and the ID of the object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final byte MOVE_FIRST
shiftChild(IlvMutableSDMNode, byte)
public static final byte MOVE_LAST
shiftChild(IlvMutableSDMNode, byte)
public static final byte MOVE_UP
shiftChild(IlvMutableSDMNode, byte)
public static final byte MOVE_DOWN
shiftChild(IlvMutableSDMNode, byte)
| Constructor Detail |
|---|
public IlvDefaultSDMNode(String tag)
tag.
tag - The symbolic type of the object.| Method Detail |
|---|
public String getTag()
getTag in interface IlvSDMNodepublic void setID(String id)
setID in interface IlvMutableSDMNodeid - The new identifier.public String getID()
getID in interface IlvSDMNode
public void addChild(IlvMutableSDMNode child,
IlvMutableSDMNode before)
addChild in interface IlvMutableSDMNodechild - The child to add.before - The object before which the new child must
be inserted, or null if the new child must
be appended to the list of children.
public void shiftChild(IlvMutableSDMNode child,
byte action)
child - the childaction - one of MOVE_DOWN, MOVE_UP,
MOVE_FIRST, or MOVE_LAST.public void removeChild(IlvMutableSDMNode child)
removeChild in interface IlvMutableSDMNodechild - The child to remove.public Enumeration getChildren()
getChildren in interface IlvSDMNodeIlvSDMNodes.public int getChildrenCount()
public void setParent(IlvMutableSDMNode parent)
setParent in interface IlvMutableSDMNodeparent - The parent to set.public IlvSDMNode getParent()
getParent in interface IlvSDMNode
public void setProperty(String property,
Object value)
setProperty in interface IlvMutableSDMNodeproperty - The name of the property.value - The value of the property.public Object getProperty(String property)
null if
the property does not exist.
getProperty in interface IlvSDMNodeproperty - The name of the property.public String[] getPropertyNames()
getPropertyNames in interface IlvSDMNodepublic String toString()
String containing the tag and the ID of the object.
toString in class Object
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||