public class HierarchicalProperty extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,String> |
attributes |
protected List<HierarchicalProperty> |
children
Child properties.
|
protected QName |
name
Property name.
|
protected String |
value
Property value.
|
| Constructor and Description |
|---|
HierarchicalProperty(QName name)
Shortcut for XMLProperty(name, null).
|
HierarchicalProperty(QName name,
Calendar dateValue,
String formatPattern) |
HierarchicalProperty(QName name,
String value) |
HierarchicalProperty(String name,
String value,
String namespaceURI)
Constructor accepting String as property name, both prefixed (i.e.
|
| Modifier and Type | Method and Description |
|---|---|
HierarchicalProperty |
addChild(HierarchicalProperty prop)
Adds prop as a children to this property.
|
String |
getAttribute(String attributeName) |
HashMap<String,String> |
getAttributes() |
HierarchicalProperty |
getChild(int index)
Retrieves child property by 0 based index.
|
HierarchicalProperty |
getChild(QName name)
Retrieves child property by name.
|
List<HierarchicalProperty> |
getChildren() |
QName |
getName() |
String |
getStringName() |
String |
getValue() |
void |
setAttribute(QName attributeName,
String attributeValue)
sets the attribute
|
void |
setAttribute(String attributeName,
String attributeValue)
sets the attribute
|
void |
setValue(String value)
sets the property value
|
protected List<HierarchicalProperty> children
protected QName name
protected String value
public HierarchicalProperty(String name, String value, String namespaceURI)
name - property namevalue - property value (can be null)public HierarchicalProperty(QName name, String value)
name - value - public HierarchicalProperty(QName name, Calendar dateValue, String formatPattern)
name - dateValue - formatPattern - public HierarchicalProperty(QName name)
name - public HierarchicalProperty addChild(HierarchicalProperty prop)
prop - public List<HierarchicalProperty> getChildren()
public HierarchicalProperty getChild(QName name)
name - public HierarchicalProperty getChild(int index)
index - public QName getName()
public String getValue()
public void setValue(String value)
value - public void setAttribute(String attributeName, String attributeValue)
attributeName - attributeValue - public void setAttribute(QName attributeName, String attributeValue)
attributeName - attributeValue - public String getAttribute(String attributeName)
attributeName - public String getStringName()
Copyright © 2021 eXo Platform SAS. All Rights Reserved.