|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.sdm.quasar.client.core.common.sysinfo.DefaultSystemInfoNode
A simple implementation of SystemInfoNode.
| Field Summary |
| Fields inherited from interface com.sdm.quasar.client.core.common.sysinfo.SystemInfoNode |
ID_ATTRIBUTE, ID_REF_ATTRIBUTE, VALUE_ATTRIBUTE |
| Constructor Summary | |
DefaultSystemInfoNode(java.lang.String type)
Creates a new DefaultSystemInfoNode. |
|
| Method Summary | |
SystemInfoNode |
createChild(java.lang.String type)
Creates a new child SystemInfoNode with the given type. |
SystemInfoNode |
findChildById(java.lang.String id,
boolean deep)
Returns the child SystemInfoNode for the id given. |
java.lang.String[] |
getAllAttributes()
Returns an array with all attribute names. |
java.lang.String |
getAttribute(java.lang.String name)
Returns the attribute value of the attribute with the given name. |
int |
getAttributeCount()
Returns the number of attributes of this SystemInfoNode. |
SystemInfoNode |
getChild(int index)
Returns the child SystemInfoNode at the given index. |
int |
getChildCount()
Returns the number of child SystemInformationNodes of this one. |
java.lang.String |
getId()
Returns the id attribute ( SystemInfoNode.ID_ATTRIBUTE value. |
java.lang.String |
getIdRef()
Returns the id attribute ( SystemInfoNode.ID_REF_ATTRIBUTE value. |
java.lang.String |
getType()
Returns the type of this SystemInfoNode. |
java.lang.String |
getValue()
Returns the id attribute ( SystemInfoNode.VALUE_ATTRIBUTE value. |
void |
remove()
Removes this SystemInfoNode from it's parent. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
Defines the attribute value of the attribute with the given name. |
void |
setId(java.lang.String value)
Sets the id attribute ( SystemInfoNode.ID_ATTRIBUTE to the given value. |
void |
setIdRef(java.lang.String value)
Sets the id-ref attribute ( SystemInfoNode.ID_REF_ATTRIBUTE to the given value. |
void |
setValue(java.lang.String value)
Sets the value attribute ( SystemInfoNode.VALUE_ATTRIBUTE to the given value. |
java.lang.String |
toString()
|
protected java.lang.String |
toString(java.lang.String ident)
Returns the string representation of the element. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public DefaultSystemInfoNode(java.lang.String type)
DefaultSystemInfoNode.
| Method Detail |
public java.lang.String getType()
SystemInfoNodeSystemInfoNode.
getType in interface SystemInfoNodeSystemInfoNode.getType()public int getChildCount()
SystemInfoNodeSystemInformationNodes of this one.
getChildCount in interface SystemInfoNodeSystemInfoNode.getChildCount()public SystemInfoNode getChild(int index)
SystemInfoNodeSystemInfoNode at the given index.
getChild in interface SystemInfoNodeindex - the child index (0 to SystemInfoNode.getChildCount(); order like
created)
SystemInfoNode at the given indexSystemInfoNode.getChild(int)public SystemInfoNode createChild(java.lang.String type)
SystemInfoNodeSystemInfoNode with the given type.
createChild in interface SystemInfoNodetype - the type of the SystemInfoNode to create
SystemInfoNodeSystemInfoNode.createChild(java.lang.String)public void remove()
SystemInfoNodeSystemInfoNode from it's parent.
remove in interface SystemInfoNodeSystemInfoNode.remove()public int getAttributeCount()
SystemInfoNodeSystemInfoNode.
getAttributeCount in interface SystemInfoNodeSystemInfoNode.getAttributeCount()public java.lang.String[] getAllAttributes()
SystemInfoNode
getAllAttributes in interface SystemInfoNodeSystemInfoNode.getAllAttributes()public java.lang.String getAttribute(java.lang.String name)
SystemInfoNode
getAttribute in interface SystemInfoNodename - the name of the attribute
null, if no attribute with the given name exists.SystemInfoNode.getAttribute(java.lang.String)
public void setAttribute(java.lang.String name,
java.lang.String value)
SystemInfoNode
setAttribute in interface SystemInfoNodename - the name of the attributevalue - the attribute value of the attribute with the given name.SystemInfoNode.setAttribute(java.lang.String, java.lang.String)public java.lang.String getId()
SystemInfoNodeSystemInfoNode.ID_ATTRIBUTE value.
getId in interface SystemInfoNodeSystemInfoNode.getId()public void setId(java.lang.String value)
SystemInfoNodeSystemInfoNode.ID_ATTRIBUTE to the given value.
setId in interface SystemInfoNodevalue - the value to setSystemInfoNode.setId(java.lang.String)public java.lang.String getIdRef()
SystemInfoNodeSystemInfoNode.ID_REF_ATTRIBUTE value.
getIdRef in interface SystemInfoNodeSystemInfoNode.getIdRef()public void setIdRef(java.lang.String value)
SystemInfoNodeSystemInfoNode.ID_REF_ATTRIBUTE to the given value.
setIdRef in interface SystemInfoNodevalue - the value to setSystemInfoNode.setIdRef(java.lang.String)public java.lang.String getValue()
SystemInfoNodeSystemInfoNode.VALUE_ATTRIBUTE value.
getValue in interface SystemInfoNodeSystemInfoNode.getValue()public void setValue(java.lang.String value)
SystemInfoNodeSystemInfoNode.VALUE_ATTRIBUTE to the given value.
setValue in interface SystemInfoNodevalue - the value to setSystemInfoNode.setValue(java.lang.String)
public SystemInfoNode findChildById(java.lang.String id,
boolean deep)
SystemInfoNodeSystemInfoNode for the id given. If
deep is true, this method will search
the whole subtree.
findChildById in interface SystemInfoNodeid - the id to look for (see SystemInfoNode.setId(String))deep - if true, search whole subtree
SystemInfoNode with the id or null,
if not foundSystemInfoNode.findChildById(java.lang.String, boolean)public java.lang.String toString()
Object.toString()protected java.lang.String toString(java.lang.String ident)
ident - the ident string used for hierarchical representation.
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||