Class HierarchicalProperty
java.lang.Object
org.exoplatform.services.jcr.webdav.resource.HierarchicalProperty
Created by The eXo Platform SAS .
DOM - like (but lighter) webdav property representation
DOM - like (but lighter) webdav property representation
- Version:
- $Id: $
- Author:
- Gennady Azarenkov
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionHierarchicalProperty(String name, String value) Constructor accepting String as property name, both prefixed (i.e.HierarchicalProperty(QName name) Shortcut for XMLProperty(name, null).HierarchicalProperty(QName name, String value) Constructor accepting QName as property name and String as value.HierarchicalProperty(QName name, Calendar dateValue, String formatPattern) Constructor accepting QName as property name and calendar as value. -
Method Summary
Modifier and TypeMethodDescriptionaddChild(HierarchicalProperty prop) adds prop as a children to this property.getAttribute(String attributeName) getChild(int index) retrieves children property by 0 based index.retrieves children property by name.Returns this property children.getName()getValue()voidsetAttribute(String attributeName, String attributeValue) sets the attribute.voidsets the property value.
-
Field Details
-
children
The list of property's children. -
name
Property's name. -
value
Property's value. -
attributes
Property's attributes.
-
-
Constructor Details
-
HierarchicalProperty
Constructor accepting String as property name, both prefixed (i.e. prefix:local) and not (i.e. local) are accepted.- Parameters:
name- property namevalue- property value (can be null)
-
HierarchicalProperty
Constructor accepting QName as property name and String as value.- Parameters:
name- property namevalue- property value
-
HierarchicalProperty
Constructor accepting QName as property name and calendar as value.- Parameters:
name- property namedateValue- property valueformatPattern- date format pattern
-
HierarchicalProperty
Shortcut for XMLProperty(name, null).- Parameters:
name- property name
-
-
Method Details
-
addChild
adds prop as a children to this property.- Parameters:
prop- property name- Returns:
- added property
-
getChildren
Returns this property children.- Returns:
- child properties of this property
-
getChild
retrieves children property by name.- Parameters:
name- child name- Returns:
- property or null if not found
-
getChild
retrieves children property by 0 based index.- Parameters:
index- the index of child- Returns:
- child with current index
-
getName
- Returns:
- property name
-
getValue
- Returns:
- property value
-
setValue
sets the property value.- Parameters:
value- property value
-
setAttribute
sets the attribute.- Parameters:
attributeName- attribute nameattributeValue- attribute value
-
getAttribute
- Parameters:
attributeName- attribute name- Returns:
- attribute attribute
-
getAttributes
- Returns:
- all attributes
-