org.apache.wink.webdav.model
Class Resourcetype

java.lang.Object
  extended by org.apache.wink.webdav.model.Resourcetype

public class Resourcetype
extends Object

The resourcetype Property per the WebDAV specification [RFC 4918]

    Name:       resourcetype
    Namespace:  DAV:
    Purpose:    Specifies the nature of the resource.
    Description: The resourcetype property MUST be defined on all DAV
    compliant resources.  The default value is empty.
 
    <!ELEMENT resourcetype ANY >
 


Field Summary
protected  List<Element> any
           
protected  Collection collection
           
 
Constructor Summary
Resourcetype()
           
 
Method Summary
 List<Element> getAny()
          Gets the value of the any property.
 Collection getCollection()
          Gets the value of the collection property.
 void setCollection(Collection value)
          Sets the value of the collection property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

collection

protected Collection collection

any

protected List<Element> any
Constructor Detail

Resourcetype

public Resourcetype()
Method Detail

getCollection

public Collection getCollection()
Gets the value of the collection property.

Returns:
possible object is Collection

setCollection

public void setCollection(Collection value)
Sets the value of the collection property.

Parameters:
value - allowed object is Collection

getAny

public List<Element> getAny()
Gets the value of the any 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 any property.

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

 getAny().add(newItem);
 

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



Copyright © 2009-2012 The Apache Software Foundation. All Rights Reserved.