|
||||||||||
| 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 java.util.HashMap<java.lang.String,java.lang.String> |
attributes
|
protected java.util.List<HierarchicalProperty> |
children
|
protected javax.xml.namespace.QName |
name
|
protected java.lang.String |
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)
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 children property by 0 based index |
HierarchicalProperty |
getChild(javax.xml.namespace.QName name)
retrieves children property by name |
java.util.List<HierarchicalProperty> |
getChildren()
|
javax.xml.namespace.QName |
getName()
|
java.lang.String |
getValue()
|
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)
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 java.lang.String getAttribute(java.lang.String attributeName)
attributeName -
public java.util.HashMap<java.lang.String,java.lang.String> getAttributes()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||