Class DavPropertyName

    • Method Detail

      • create

        public static DavPropertyName create​(java.lang.String name,
                                             Namespace namespace)
        Creates a new DavPropertyName with the given name and Namespace.
        Parameters:
        name - The local name of the new property name
        namespace - The namespace of the new property name
        Returns:
        The WebDAV property name
      • create

        public static DavPropertyName create​(java.lang.String name)
        Creates a new DavPropertyName with the given local name and the default WebDAV namespace.
        Parameters:
        name - The local name of the new property name
        Returns:
        The WebDAV property name
      • createFromXml

        public static DavPropertyName createFromXml​(org.w3c.dom.Element nameElement)
        Create a new DavPropertyName with the name and namespace of the given Xml element.
        Parameters:
        nameElement -
        Returns:
        DavPropertyName instance
      • getName

        public java.lang.String getName()
        Return the name of this DavPropertyName.
        Returns:
        name
      • getNamespace

        public Namespace getNamespace()
        Return the namespace of this DavPropertyName.
        Returns:
        namespace
      • hashCode

        public int hashCode()
        Computes the hash code using this properties name and namespace.
        Overrides:
        hashCode in class java.lang.Object
        Returns:
        the hash code
      • equals

        public boolean equals​(java.lang.Object obj)
        Checks if this property has the same name and namespace as the given one.
        Overrides:
        equals in class java.lang.Object
        Parameters:
        obj - the object to compare to
        Returns:
        true if the 2 objects are equal; false otherwise
      • toString

        public java.lang.String toString()
        Returns a string representation of this property suitable for debugging
        Overrides:
        toString in class java.lang.Object
        Returns:
        a human readable string representation
      • toXml

        public org.w3c.dom.Element toXml​(org.w3c.dom.Document document)
        Creates a element with the name and namespace of this DavPropertyName.
        Specified by:
        toXml in interface XmlSerializable
        Parameters:
        document -
        Returns:
        A element with the name and namespace of this DavPropertyName.