Interface ContentElement
-
- All Known Implementing Classes:
ContentElementImpl
public interface ContentElement
Represents a resource or node in the content hierarchy.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ContentElement
getChild(java.lang.String path)
Get child or descendantjava.util.Map<java.lang.String,ContentElement>
getChildren()
Get children of current resource.java.lang.String
getName()
java.util.Map<java.lang.String,java.lang.Object>
getProperties()
Properties of this resource.
-
-
-
Method Detail
-
getName
java.lang.String getName()
- Returns:
- Resource name. The root resource has no name (null).
-
getProperties
java.util.Map<java.lang.String,java.lang.Object> getProperties()
Properties of this resource.- Returns:
- Properties (keys, values)
-
getChildren
java.util.Map<java.lang.String,ContentElement> getChildren()
Get children of current resource. The Map preserves the ordering of children.- Returns:
- Children (child names, child objects)
-
getChild
ContentElement getChild(java.lang.String path)
Get child or descendant- Parameters:
path
- Relative path to address child or one of it's descendants (use "/" as hierarchy separator).- Returns:
- Child or null if no child found with this path
-
-