|
Copyright @ 2002 SAP. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
This class represents a child element of a structured property of a development component. The PropertyElement class allows to build simple DOM-like trees by adding children to PropertyElement instances. Note, currently properties with "mixed" values, i.e. that consist of text fragments with interspersed tags, are not supported.
| Method Summary | |
PropertyElement |
addChild(java.lang.String childName)
Adds a new child to this element. |
PropertyElement |
addChild(java.lang.String childName,
java.lang.String value)
Adds a new child to this element. |
int |
countChildren()
Returns the number of children of this element. |
void |
emptyChildren()
Removes all children of this element. |
PropertyElement |
firstChild()
Returns the first child of this element. |
Attribute[] |
getAttributes()
|
PropertyElement |
getChild(java.lang.String childName)
Returns the child specified by its name. |
java.util.Iterator |
getChildren()
Returns the children of this element. |
java.lang.String |
getChildValue(java.lang.String childName)
Returns the value of a child of this element specified by its name. |
java.lang.String[] |
getChildValues()
Returns the simple values of all children of this element. |
java.lang.String |
getName()
Returns the name of this property element. |
java.lang.String |
getNamespace()
|
java.lang.String |
getNamespacePrefix()
|
PropertyElement |
getParent()
Returns the parent of this element. |
java.lang.String |
getQName()
|
java.lang.String |
getValue()
Returns the simple value of this property element, or null if the element has children, or no value has been defined for the element. |
PropertyElement |
lastChild()
Returns the last child of this element. |
PropertyElement |
next()
Returns the successor of this element. |
void |
setAttribute(java.lang.String name,
java.lang.String value)
|
void |
setAttributes(java.util.List attributes)
|
void |
setName(java.lang.String name)
Sets the name of this property element. |
void |
setNamespace(java.lang.String namespaceURI)
|
void |
setNamespace(java.lang.String prefix,
java.lang.String namespaceURI)
|
void |
setValue(java.lang.String value)
Sets the simple value of this property element. |
| Method Detail |
public java.lang.String getName()
public void setName(java.lang.String name)
name - the new name of this element.public java.lang.String getQName()
public java.lang.String getNamespacePrefix()
public java.lang.String getNamespace()
public void setNamespace(java.lang.String namespaceURI)
namespaceURI -
public void setNamespace(java.lang.String prefix,
java.lang.String namespaceURI)
prefix - namespaceURI - public java.lang.String getValue()
public void setValue(java.lang.String value)
value - the new value of this element.public Attribute[] getAttributes()
public void setAttribute(java.lang.String name,
java.lang.String value)
name - value - public void setAttributes(java.util.List attributes)
attributes - public int countChildren()
public PropertyElement firstChild()
public PropertyElement lastChild()
public PropertyElement next()
public PropertyElement getParent()
public java.util.Iterator getChildren()
public void emptyChildren()
public PropertyElement addChild(java.lang.String childName)
childName - the name of the child element to add.
public PropertyElement addChild(java.lang.String childName,
java.lang.String value)
childName - the name of the child element to add.value - the initial simple value of the new child.public PropertyElement getChild(java.lang.String childName)
childName - the name of the child.public java.lang.String getChildValue(java.lang.String childName)
childName - the name of the child.public java.lang.String[] getChildValues()
|
Copyright @ 2002 SAP. All Rights Reserved. | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||