Class HrefProperty

    • Constructor Detail

      • HrefProperty

        public HrefProperty​(DavPropertyName name,
                            java.lang.String value,
                            boolean isInvisibleInAllprop)
        Creates a new WebDAV property with the given DavPropertyName
        Parameters:
        name - the name of the property
        value - the value of the property
        isInvisibleInAllprop - A value of true, defines this property to be invisible in PROPFIND/allprop It will not be returned in a DAV:allprop PROPFIND request.
      • HrefProperty

        public HrefProperty​(DavPropertyName name,
                            java.lang.String[] value,
                            boolean isInvisibleInAllprop)
        Creates a new WebDAV property with the given DavPropertyName
        Parameters:
        name - the name of the property
        value - the value of the property
        isInvisibleInAllprop - A value of true, defines this property to be invisible in PROPFIND/allprop It will not be returned in a DAV:allprop PROPFIND request.
      • HrefProperty

        public HrefProperty​(DavProperty<?> prop)
        Create a new HrefProperty from the specified property. Please note, that the property must have a List value object, consisting of href Element entries.
        Parameters:
        prop -
    • Method Detail

      • toXml

        public org.w3c.dom.Element toXml​(org.w3c.dom.Document document)
        Returns an Xml element with the following form:
         <Z:name>
            <DAV:href>value</DAV:href/>
         </Z:name>
         
        where Z: represents the prefix of the namespace defined with the initial webdav property name.
        Specified by:
        toXml in interface XmlSerializable
        Overrides:
        toXml in class AbstractDavProperty<java.lang.String[]>
        Parameters:
        document -
        Returns:
        Xml representation
        See Also:
        DomUtil.hrefToXml(String,org.w3c.dom.Document)
      • getValue

        public java.lang.String[] getValue()
        Returns an array of String.
        Returns:
        an array of String.
        See Also:
        DavProperty.getValue()
      • getHrefs

        public java.util.List<java.lang.String> getHrefs()
        Return an list of String containing the text of those DAV:href elements that would be returned as child elements of this property on XmlSerializable.toXml(Document)
        Returns:
        list of href String