Class SupportedMethodSetProperty

java.lang.Object
org.apache.jackrabbit.webdav.property.AbstractDavProperty<String[]>
org.apache.jackrabbit.webdav.version.SupportedMethodSetProperty
All Implemented Interfaces:
DavConstants, DavProperty<String[]>, PropEntry, DeltaVConstants, XmlSerializable

public class SupportedMethodSetProperty extends AbstractDavProperty<String[]> implements DeltaVConstants
The SupportedMethodSetProperty
  • Constructor Details

    • SupportedMethodSetProperty

      public SupportedMethodSetProperty(String[] methods)
      Create a new SupportedMethodSetProperty property.
      Parameters:
      methods - that are supported by the resource having this property.
  • Method Details

    • getValue

      public String[] getValue()
      Description copied from interface: DavProperty
      Returns the value of this property
      Specified by:
      getValue in interface DavProperty<String[]>
      Returns:
      the value of this property
    • 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:
       <D:resourcetype><D:collection/></D:resourcetype>
      
       Element[] customVals = { new Element("bla", customNamespace), new Element("bli", customNamespace) };
       new DavProperty("custom-property", customVals, customNamespace).toXml
       gives an element like
       <Z:custom-property>
          <Z:bla/>
          <Z:bli/>
       </Z:custom-property>
       
      Specified by:
      toXml in interface XmlSerializable
      Overrides:
      toXml in class AbstractDavProperty<String[]>
      Parameters:
      document -
      Returns:
      a XML element of this property
      See Also: