public class HierarchicalProperty extends Object
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<String,String> |
attributes
Property's attributes.
|
protected List<HierarchicalProperty> |
children
The list of property's children.
|
protected QName |
name
Property's name.
|
protected String |
value
Property's value.
|
| Constructor and Description |
|---|
HierarchicalProperty(QName name)
Shortcut for XMLProperty(name, null).
|
HierarchicalProperty(QName name,
Calendar dateValue,
String formatPattern)
Constructor accepting QName as property name and calendar as value.
|
HierarchicalProperty(QName name,
String value)
Constructor accepting QName as property name and String as value.
|
HierarchicalProperty(String name,
String value)
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 children property by 0 based index.
|
HierarchicalProperty |
getChild(QName name)
retrieves children property by name.
|
List<HierarchicalProperty> |
getChildren()
Returns this property children.
|
QName |
getName() |
String |
getValue() |
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)
name - property namevalue - property value (can be null)public HierarchicalProperty(QName name, String value)
name - property namevalue - property valuepublic HierarchicalProperty(QName name, Calendar dateValue, String formatPattern)
name - property namedateValue - property valueformatPattern - date format patternpublic HierarchicalProperty(QName name)
name - property namepublic HierarchicalProperty addChild(HierarchicalProperty prop)
prop - property namepublic List<HierarchicalProperty> getChildren()
public HierarchicalProperty getChild(QName name)
name - child namepublic HierarchicalProperty getChild(int index)
index - the index of childpublic QName getName()
public String getValue()
public void setValue(String value)
value - property valuepublic void setAttribute(String attributeName, String attributeValue)
attributeName - attribute nameattributeValue - attribute valuepublic String getAttribute(String attributeName)
attributeName - attribute nameCopyright © 2016 eXo Platform SAS. All Rights Reserved.