Class XMLNode
- java.lang.Object
-
- org.apache.sling.feature.cpconverter.handlers.slinginitialcontent.xmlbuffer.XMLNode
-
public class XMLNode extends Object
Represents an XML node in the buffer to be written in a sling initial content package later
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addChildNode(@NotNull String name, @NotNull XMLNode xmlNode)
void
addProperty(@NotNull String name, int propertyType, @NotNull String value)
void
addProperty(@NotNull String name, int propertyType, @NotNull String[] values)
void
addProperty(@NotNull String name, @Nullable Object value)
@NotNull Map<String,XMLNode>
getChildren()
@Nullable String
getJcrNodeName()
@Nullable String[]
getMixinNodeTypes()
@NotNull String
getPath()
@NotNull String
getPrimaryNodeType()
@NotNull Map<String,String>
getVltXmlParsedProperties()
@NotNull String
getXmlElementName()
-
-
-
Method Detail
-
addProperty
public void addProperty(@NotNull @NotNull String name, int propertyType, @NotNull @NotNull String value)
-
addProperty
public void addProperty(@NotNull @NotNull String name, int propertyType, @NotNull @NotNull String[] values)
-
addChildNode
public void addChildNode(@NotNull @NotNull String name, @NotNull @NotNull XMLNode xmlNode)
-
addProperty
public void addProperty(@NotNull @NotNull String name, @Nullable @Nullable Object value) throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
-
getPath
@NotNull public @NotNull String getPath()
-
getXmlElementName
@NotNull public @NotNull String getXmlElementName()
-
getJcrNodeName
@Nullable public @Nullable String getJcrNodeName()
-
getPrimaryNodeType
@NotNull public @NotNull String getPrimaryNodeType()
-
getMixinNodeTypes
@Nullable public @Nullable String[] getMixinNodeTypes()
-
-