|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.common.util.HierarchicalProperty
public class HierarchicalProperty
Created by The eXo Platform SAS .
DOM - like (but lighter) property
representation
| Field Summary | |
|---|---|
protected java.util.HashMap<java.lang.String,java.lang.String> |
attributes
|
protected java.util.List<HierarchicalProperty> |
children
Child properties. |
protected javax.xml.namespace.QName |
name
Property name. |
protected java.lang.String |
value
Property value. |
| Constructor Summary | |
|---|---|
HierarchicalProperty(javax.xml.namespace.QName name)
Shortcut for XMLProperty(name, null). |
|
HierarchicalProperty(javax.xml.namespace.QName name,
java.util.Calendar dateValue,
java.lang.String formatPattern)
|
|
HierarchicalProperty(javax.xml.namespace.QName name,
java.lang.String value)
|
|
HierarchicalProperty(java.lang.String name,
java.lang.String value,
java.lang.String namespaceURI)
Constructor accepting String as property name, both prefixed (i.e. |
|
| Method Summary | |
|---|---|
HierarchicalProperty |
addChild(HierarchicalProperty prop)
Adds prop as a children to this property. |
java.lang.String |
getAttribute(java.lang.String attributeName)
|
java.util.HashMap<java.lang.String,java.lang.String> |
getAttributes()
|
HierarchicalProperty |
getChild(int index)
Retrieves child property by 0 based index. |
HierarchicalProperty |
getChild(javax.xml.namespace.QName name)
Retrieves child property by name. |
java.util.List<HierarchicalProperty> |
getChildren()
|
javax.xml.namespace.QName |
getName()
|
java.lang.String |
getStringName()
|
java.lang.String |
getValue()
|
void |
setAttribute(javax.xml.namespace.QName attributeName,
java.lang.String attributeValue)
sets the attribute |
void |
setAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
sets the attribute |
void |
setValue(java.lang.String value)
sets the property value |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected java.util.List<HierarchicalProperty> children
protected javax.xml.namespace.QName name
protected java.lang.String value
protected java.util.HashMap<java.lang.String,java.lang.String> attributes
| Constructor Detail |
|---|
public HierarchicalProperty(java.lang.String name,
java.lang.String value,
java.lang.String namespaceURI)
name - property namevalue - property value (can be null)
public HierarchicalProperty(javax.xml.namespace.QName name,
java.lang.String value)
name - value -
public HierarchicalProperty(javax.xml.namespace.QName name,
java.util.Calendar dateValue,
java.lang.String formatPattern)
name - dateValue - formatPattern - public HierarchicalProperty(javax.xml.namespace.QName name)
name - | Method Detail |
|---|
public HierarchicalProperty addChild(HierarchicalProperty prop)
prop -
public java.util.List<HierarchicalProperty> getChildren()
public HierarchicalProperty getChild(javax.xml.namespace.QName name)
name -
public HierarchicalProperty getChild(int index)
index -
public javax.xml.namespace.QName getName()
public java.lang.String getValue()
public void setValue(java.lang.String value)
value -
public void setAttribute(java.lang.String attributeName,
java.lang.String attributeValue)
attributeName - attributeValue -
public void setAttribute(javax.xml.namespace.QName attributeName,
java.lang.String attributeValue)
attributeName - attributeValue - public java.lang.String getAttribute(java.lang.String attributeName)
attributeName -
public java.util.HashMap<java.lang.String,java.lang.String> getAttributes()
public java.lang.String getStringName()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||