Class CategoryDataType


  • public class CategoryDataType
    extends Object
    When used in an address book REPORT request, the CATDAV:category-data XML element specifies which parts of category object resources need to be returned in the response. If the CATDAV:category-data XML element doesn't contain any CATDAV:prop elements, category object resources will be returned in their entirety. Additionally a media type and version can be specified to request that the server return the data in that format if possible. Finally, when used in a category REPORT response, the CATDAV:category-data XML element specifies the content of a category object resource. NOTE: This schema type only applies to category-data used in CatDAV category-query requests.

    Java class for CategoryDataType complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="CategoryDataType">
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <sequence>
             <choice minOccurs="0">
               <element ref="{http://www.bedework.org/schemas/catdav-1.0}allprop"/>
               <element ref="{http://www.bedework.org/schemas/catdav-1.0}prop" maxOccurs="unbounded"/>
             </choice>
             <element ref="{http://www.bedework.org/schemas/category-1.0}categories" minOccurs="0"/>
           </sequence>
           <attribute name="content-type" type="{http://www.w3.org/2001/XMLSchema}string" default="application/xml+category" />
           <attribute name="version" type="{http://www.w3.org/2001/XMLSchema}string" default="1.0" />
         </restriction>
       </complexContent>
     </complexType>
     
    • Constructor Detail

      • CategoryDataType

        public CategoryDataType()
    • Method Detail

      • getAllprop

        public AllpropType getAllprop()
        Gets the value of the allprop property.
        Returns:
        possible object is AllpropType
      • setAllprop

        public void setAllprop​(AllpropType value)
        Sets the value of the allprop property.
        Parameters:
        value - allowed object is AllpropType
      • getProp

        public List<PropType> getProp()
        Gets the value of the prop property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the JAXB object. This is why there is not a set method for the prop property.

        For example, to add a new item, do as follows:

            getProp().add(newItem);
         

        Objects of the following type(s) are allowed in the list PropType

      • setCategories

        public void setCategories​(ArrayOfCategories value)
        Sets the value of the categories property.
        Parameters:
        value - allowed object is ArrayOfCategories
      • getContentType

        public String getContentType()
        Gets the value of the contentType property.
        Returns:
        possible object is String
      • setContentType

        public void setContentType​(String value)
        Sets the value of the contentType property.
        Parameters:
        value - allowed object is String
      • getVersion

        public String getVersion()
        Gets the value of the version property.
        Returns:
        possible object is String
      • setVersion

        public void setVersion​(String value)
        Sets the value of the version property.
        Parameters:
        value - allowed object is String