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 voidaddChildNode(@NotNull String name, @NotNull XMLNode xmlNode)voidaddProperty(@NotNull String name, int propertyType, @NotNull String value)voidaddProperty(@NotNull String name, int propertyType, @NotNull String[] values)voidaddProperty(@NotNull String name, @Nullable Object value)@NotNull Map<String,XMLNode>getChildren()@Nullable StringgetJcrNodeName()@Nullable String[]getMixinNodeTypes()@NotNull StringgetPath()@NotNull StringgetPrimaryNodeType()@NotNull Map<String,String>getVltXmlParsedProperties()@NotNull StringgetXmlElementName()
-
-
-
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()
-
-