|
eXo WS :: Commons Utils 2.3.10-GA | |||||||||
| 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 HashMap<String,String> |
attributes
|
protected List<HierarchicalProperty> |
children
Child properties. |
protected QName |
name
Property name. |
protected String |
value
Property value. |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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 |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected List<HierarchicalProperty> children
protected QName name
protected String value
protected HashMap<String,String> attributes
| Constructor Detail |
|---|
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 - | Method Detail |
|---|
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 HashMap<String,String> getAttributes()
public String getStringName()
|
eXo WS :: Commons Utils 2.3.10-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||