Class DocViewTreeNode
java.lang.Object
org.apache.sling.feature.cpconverter.handlers.slinginitialcontent.DocViewTreeNode
Represents a serializable docview node inside a tree hierarchy.
-
Constructor Summary
ConstructorDescriptionDocViewTreeNode
(String parentPath, org.apache.jackrabbit.spi.Name name, Collection<org.apache.jackrabbit.vault.util.DocViewProperty2> properties) -
Method Summary
Modifier and TypeMethodDescriptionvoid
addChild
(DocViewTreeNode child) getPath
(org.apache.jackrabbit.spi.commons.conversion.NameResolver nameResolver) Collection<org.apache.jackrabbit.vault.util.DocViewProperty2>
void
write
(XMLStreamWriter writer, org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver nsResolver, Iterable<String> nsPrefixes)
-
Constructor Details
-
DocViewTreeNode
public DocViewTreeNode(String parentPath, org.apache.jackrabbit.spi.Name name, Collection<org.apache.jackrabbit.vault.util.DocViewProperty2> properties)
-
-
Method Details
-
addChild
-
write
public void write(XMLStreamWriter writer, org.apache.jackrabbit.spi.commons.namespace.NamespaceResolver nsResolver, Iterable<String> nsPrefixes) throws javax.jcr.NamespaceException, XMLStreamException - Throws:
javax.jcr.NamespaceException
XMLStreamException
-
getProperties
-
getPath
public String getPath(org.apache.jackrabbit.spi.commons.conversion.NameResolver nameResolver) throws javax.jcr.NamespaceException - Parameters:
nameResolver
-- Returns:
- the absolute JCR path (in qualified form) of the node represented by this class
- Throws:
javax.jcr.NamespaceException
-