Class NodeTypeProperty

    • Constructor Detail

      • NodeTypeProperty

        public NodeTypeProperty​(DavPropertyName name,
                                String[] nodeTypeNames,
                                boolean isProtected)
      • NodeTypeProperty

        public NodeTypeProperty​(DavProperty<?> property)
        Create a new NodeTypeProperty from the specified general DavProperty object.
        property -
    • Method Detail

      • getNodeTypeNames

        public Set<String> getNodeTypeNames()
        Return a set of node type names present in this property.
        set of node type names
      • getValue

        public Set<String> getValue()
        Returns the value of this property which is a Set of nodetype names.
        Specified by:
        getValue in interface DavProperty<Set<String>>
        a Set of nodetype names (String).
      • toXml

        public Element toXml​(Document document)
        Description copied from class: AbstractDavProperty
        Return a XML element representation of this property. The value of the property will be added as text or as child element.
         new DavProperty("displayname", "WebDAV Directory").toXml
         gives a element like:
         <D:displayname>WebDAV Directory</D:displayname>
         new DavProperty("resourcetype", new Element("collection")).toXml
         gives a element like:
         Element[] customVals = { new Element("bla", customNamespace), new Element("bli", customNamespace) };
         new DavProperty("custom-property", customVals, customNamespace).toXml
         gives an element like
        Specified by:
        toXml in interface XmlSerializable
        toXml in class AbstractDavProperty<Set<String>>
        document - to be used as factory.
        a XML element of this property
        See Also: