Class ResourceType

    • Field Detail

      • DEFAULT_RESOURCE

        public static final int DEFAULT_RESOURCE
        The default resource type
        See Also:
        Constant Field Values
      • COLLECTION

        public static final int COLLECTION
        The collection resource type
        See Also:
        Constant Field Values
      • VERSION_HISTORY

        public static final int VERSION_HISTORY
        The version-history resource type
        See Also:
        Constant Field Values
    • Constructor Detail

      • ResourceType

        public ResourceType​(int resourceType)
        Create a single-valued resource type property
      • ResourceType

        public ResourceType​(int[] resourceTypes)
        Create a multi-valued resource type property
    • Method Detail

      • getValue

        public Set<XmlSerializable> getValue()
        Returns a Set of resource types each implementing the XmlSerializable interface.
        Returns:
        a Set of resource types representing this property.
        See Also:
        DavProperty.getValue()
      • getResourceTypes

        public int[] getResourceTypes()
        Returns the resource types specified with the constructor.
        Returns:
        resourceTypes
      • registerResourceType

        public static int registerResourceType​(String name,
                                               Namespace namespace)
        Register an additional resource type
        Parameters:
        name -
        namespace -
        Returns:
        int to be used for creation of a new ResourceType property that contains this type.
        Throws:
        IllegalArgumentException - if the given element is null or if the registration fails for another reason.