|
eXo JCR :: Component :: Webdav Service 1.15.11-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.services.jcr.webdav.resource.HierarchicalProperty
public class HierarchicalProperty
Created by The eXo Platform SAS .
DOM - like (but lighter) webdav property representation
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| 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 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. |
| 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)
name - property namevalue - property value (can be null)
public HierarchicalProperty(QName name,
String value)
name - property namevalue - property value
public HierarchicalProperty(QName name,
Calendar dateValue,
String formatPattern)
name - property namedateValue - property valueformatPattern - date format patternpublic HierarchicalProperty(QName name)
name - property name| Method Detail |
|---|
public HierarchicalProperty addChild(HierarchicalProperty prop)
prop - property name
public List<HierarchicalProperty> getChildren()
public HierarchicalProperty getChild(QName name)
name - child name
public HierarchicalProperty getChild(int index)
index - the index of child
public QName getName()
public String getValue()
public void setValue(String value)
value - property value
public void setAttribute(String attributeName,
String attributeValue)
attributeName - attribute nameattributeValue - attribute valuepublic String getAttribute(String attributeName)
attributeName - attribute name
public HashMap<String,String> getAttributes()
|
eXo JCR :: Component :: Webdav Service 1.15.11-GA | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||