Class XMLNode


  • public class XMLNode
    extends Object
    Represents an XML node in the buffer to be written in a sling initial content package later
    • Constructor Detail

      • XMLNode

        public XMLNode​(@NotNull
                       @NotNull VaultPackageAssembler packageAssembler,
                       @NotNull
                       @NotNull String basePath,
                       @NotNull
                       @NotNull String xmlElementName,
                       @Nullable
                       @Nullable String jcrNodeName,
                       @NotNull
                       @NotNull String primaryNodeType,
                       @Nullable
                       @Nullable String[] mixinNodeTypes)
    • 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()
      • getVltXmlParsedProperties

        @NotNull
        public @NotNull Map<String,​String> getVltXmlParsedProperties()