Class OptionsInfo

    • Constructor Summary

      Constructors 
      Constructor Description
      OptionsInfo​(java.lang.String[] entriesLocalNames)
      Create a new OptionsInfo with the specified entries.
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean containsElement​(java.lang.String localName, Namespace namespace)
      Returns true if a child element with the given name and namespace is present.
      static OptionsInfo createFromXml​(org.w3c.dom.Element optionsElement)
      Build an OptionsInfo object from the root element present in the request body.
      org.w3c.dom.Element toXml​(org.w3c.dom.Document document)
      Returns the xml representation of the implementing object as Element.
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • OptionsInfo

        public OptionsInfo​(java.lang.String[] entriesLocalNames)
        Create a new OptionsInfo with the specified entries. Each entry will be converted to an empty Xml element when calling toXml. As namespace DeltaVConstants.NAMESPACE is used.
        Parameters:
        entriesLocalNames -
    • Method Detail

      • containsElement

        public boolean containsElement​(java.lang.String localName,
                                       Namespace namespace)
        Returns true if a child element with the given name and namespace is present.
        Parameters:
        localName -
        namespace -
        Returns:
        true if such a child element exists in the options element.
      • toXml

        public org.w3c.dom.Element toXml​(org.w3c.dom.Document document)
        Description copied from interface: XmlSerializable
        Returns the xml representation of the implementing object as Element. The given Document is used as factory and represents the owner document of the returned DOM element.
        Specified by:
        toXml in interface XmlSerializable
        Parameters:
        document -
        Returns:
        a w3c element representing this object
        See Also:
        XmlSerializable.toXml(Document)
      • createFromXml

        public static OptionsInfo createFromXml​(org.w3c.dom.Element optionsElement)
                                         throws DavException
        Build an OptionsInfo object from the root element present in the request body.
        Parameters:
        optionsElement -
        Returns:
        Throws:
        DavException - if the optionsElement is null or not a DAV:options element.