org.apache.wink.webdav.model
Class Prop

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

public class Prop
extends Object

The prop XML element per the WebDAV specification [RFC 4918]

    Name:       prop
    Namespace:  DAV:
    Purpose:    Contains properties related to a resource.
    Description: The prop XML element is a generic container for
    properties defined on resources.  All elements inside a prop XML
    element MUST define properties related to the resource.  No other
    elements may be used inside of a prop element.
 
    <!ELEMENT prop ANY>
 
 


Field Summary
protected  List<Element> any
           
protected  Creationdate creationdate
           
protected  Displayname displayname
           
protected  Getcontentlanguage getcontentlanguage
           
protected  Getcontentlength getcontentlength
           
protected  Getcontenttype getcontenttype
           
protected  Getetag getetag
           
protected  Getlastmodified getlastmodified
           
protected  Lockdiscovery lockdiscovery
           
protected  Resourcetype resourcetype
           
protected  Supportedlock supportedlock
           
 
Constructor Summary
Prop()
           
 
Method Summary
 void copyTo(Prop dest)
          Performs a shallow copy of all elements in this Prop instance into the dest Prop instance
 List<Element> getAny()
          Gets the value of the any property.
 Element getAnyByName(QName name)
          Get a proprietary property as an W3C element
 Element getAnyByName(String namespaceURI, String name)
          Get a proprietary property as an W3C element
 Creationdate getCreationdate()
          Gets the value of the creationdate property.
 Displayname getDisplayname()
          Gets the value of the displayname property.
 Getcontentlanguage getGetcontentlanguage()
          Gets the value of the getcontentlanguage property.
 Getcontentlength getGetcontentlength()
          Gets the value of the getcontentlength property.
 Getcontenttype getGetcontenttype()
          Gets the value of the getcontenttype property.
 Getetag getGetetag()
          Gets the value of the getetag property.
 Getlastmodified getGetlastmodified()
          Gets the value of the getlastmodified property.
 Lockdiscovery getLockdiscovery()
          Gets the value of the lockdiscovery property.
 Resourcetype getResourcetype()
          Gets the value of the resourcetype property.
 Supportedlock getSupportedlock()
          Gets the value of the supportedlock property.
 void removeAny(Element element)
          Remove the specified proprietary property
 void removeAny(QName name)
          Remove the specified proprietary property
 void removeAny(String namespaceURI, String name)
          Remove the specified proprietary property
 void setCreationdate(Creationdate value)
          Sets the value of the creationdate property.
 void setDisplayname(Displayname value)
          Sets the value of the displayname property.
 void setGetcontentlanguage(Getcontentlanguage value)
          Sets the value of the getcontentlanguage property.
 void setGetcontentlength(Getcontentlength value)
          Sets the value of the getcontentlength property.
 void setGetcontenttype(Getcontenttype value)
          Sets the value of the getcontenttype property.
 void setGetetag(Getetag value)
          Sets the value of the getetag property.
 void setGetlastmodified(Getlastmodified value)
          Sets the value of the getlastmodified property.
 void setLockdiscovery(Lockdiscovery value)
          Sets the value of the lockdiscovery property.
 Element setProperty(QName name)
          Set a proprietary property, and return the Element representing it
 Element setProperty(QName name, Element content)
          Set a proprietary property, and return the Element representing it
 Element setProperty(QName name, String content)
          Set a proprietary property, and return the Element representing it
 Element setProperty(String namespaceURI, String name)
          Set a proprietary property, and return the Element representing it
 Element setProperty(String namespaceURI, String name, Element child)
          Set a proprietary property, and return the Element representing it
 Element setProperty(String namespaceURI, String name, String content)
          Set a proprietary property, and return the Element representing it
 void setResourcetype(Resourcetype value)
          Sets the value of the resourcetype property.
 void setSupportedlock(Supportedlock value)
          Sets the value of the supportedlock property.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

creationdate

protected Creationdate creationdate

displayname

protected Displayname displayname

getcontentlanguage

protected Getcontentlanguage getcontentlanguage

getcontentlength

protected Getcontentlength getcontentlength

getcontenttype

protected Getcontenttype getcontenttype

getetag

protected Getetag getetag

getlastmodified

protected Getlastmodified getlastmodified

lockdiscovery

protected Lockdiscovery lockdiscovery

resourcetype

protected Resourcetype resourcetype

supportedlock

protected Supportedlock supportedlock

any

protected List<Element> any
Constructor Detail

Prop

public Prop()
Method Detail

getCreationdate

public Creationdate getCreationdate()
Gets the value of the creationdate property.

Returns:
possible object is Creationdate

setCreationdate

public void setCreationdate(Creationdate value)
Sets the value of the creationdate property.

Parameters:
value - allowed object is Creationdate

getDisplayname

public Displayname getDisplayname()
Gets the value of the displayname property.

Returns:
possible object is Displayname

setDisplayname

public void setDisplayname(Displayname value)
Sets the value of the displayname property.

Parameters:
value - allowed object is Displayname

getGetcontentlanguage

public Getcontentlanguage getGetcontentlanguage()
Gets the value of the getcontentlanguage property.

Returns:
possible object is Getcontentlanguage

setGetcontentlanguage

public void setGetcontentlanguage(Getcontentlanguage value)
Sets the value of the getcontentlanguage property.

Parameters:
value - allowed object is Getcontentlanguage

getGetcontentlength

public Getcontentlength getGetcontentlength()
Gets the value of the getcontentlength property.

Returns:
possible object is Getcontentlength

setGetcontentlength

public void setGetcontentlength(Getcontentlength value)
Sets the value of the getcontentlength property.

Parameters:
value - allowed object is Getcontentlength

getGetcontenttype

public Getcontenttype getGetcontenttype()
Gets the value of the getcontenttype property.

Returns:
possible object is Getcontenttype

setGetcontenttype

public void setGetcontenttype(Getcontenttype value)
Sets the value of the getcontenttype property.

Parameters:
value - allowed object is Getcontenttype

getGetetag

public Getetag getGetetag()
Gets the value of the getetag property.

Returns:
possible object is Getetag

setGetetag

public void setGetetag(Getetag value)
Sets the value of the getetag property.

Parameters:
value - allowed object is Getetag

getGetlastmodified

public Getlastmodified getGetlastmodified()
Gets the value of the getlastmodified property.

Returns:
possible object is Getlastmodified

setGetlastmodified

public void setGetlastmodified(Getlastmodified value)
Sets the value of the getlastmodified property.

Parameters:
value - allowed object is Getlastmodified

getLockdiscovery

public Lockdiscovery getLockdiscovery()
Gets the value of the lockdiscovery property.

Returns:
possible object is Lockdiscovery

setLockdiscovery

public void setLockdiscovery(Lockdiscovery value)
Sets the value of the lockdiscovery property.

Parameters:
value - allowed object is Lockdiscovery

getResourcetype

public Resourcetype getResourcetype()
Gets the value of the resourcetype property.

Returns:
possible object is Resourcetype

setResourcetype

public void setResourcetype(Resourcetype value)
Sets the value of the resourcetype property.

Parameters:
value - allowed object is Resourcetype

getSupportedlock

public Supportedlock getSupportedlock()
Gets the value of the supportedlock property.

Returns:
possible object is Supportedlock

setSupportedlock

public void setSupportedlock(Supportedlock value)
Sets the value of the supportedlock property.

Parameters:
value - allowed object is Supportedlock

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


getAnyByName

public Element getAnyByName(QName name)
Get a proprietary property as an W3C element

Parameters:
name - the name of the property to get
Returns:
an Element instance representing the property, or null if no such property exists

getAnyByName

public Element getAnyByName(String namespaceURI,
                            String name)
Get a proprietary property as an W3C element

Parameters:
namespaceURI - the namespace of the property to get
name - the name of the property to get
Returns:
an Element instance representing the property, or null if no such property exists

removeAny

public void removeAny(String namespaceURI,
                      String name)
Remove the specified proprietary property

Parameters:
namespaceURI - the namespace of the property to remove
name - name of the property to remove

removeAny

public void removeAny(QName name)
Remove the specified proprietary property

Parameters:
name - name of the property to remove

removeAny

public void removeAny(Element element)
Remove the specified proprietary property

Parameters:
element - the Element instance to remove

setProperty

public Element setProperty(QName name)
Set a proprietary property, and return the Element representing it

Parameters:
name - the name of the property
Returns:
the Element representing the property

setProperty

public Element setProperty(QName name,
                           String content)
Set a proprietary property, and return the Element representing it

Parameters:
name - the name of the property
content - the text content of the property
Returns:
the Element representing the property

setProperty

public Element setProperty(QName name,
                           Element content)
Set a proprietary property, and return the Element representing it

Parameters:
name - the name of the property
content - the text content of the property
Returns:
the Element representing the property

setProperty

public Element setProperty(String namespaceURI,
                           String name)
Set a proprietary property, and return the Element representing it

Parameters:
namespaceURI - the namespace of the property
name - the name of the property
Returns:
the Element representing the property

setProperty

public Element setProperty(String namespaceURI,
                           String name,
                           String content)
Set a proprietary property, and return the Element representing it

Parameters:
namespaceURI - the namespace of the property
name - the name of the property
content - the text content of the property
Returns:
the Element representing the property

setProperty

public Element setProperty(String namespaceURI,
                           String name,
                           Element child)
Set a proprietary property, and return the Element representing it

Parameters:
namespaceURI - the namespace of the property
name - the name of the property
child - the child element of the property element
Returns:
the Element representing the property

copyTo

public void copyTo(Prop dest)
Performs a shallow copy of all elements in this Prop instance into the dest Prop instance

Parameters:
dest - the Prop instance to cop this instance into


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