org.apache.wink.webdav.model
Class Prop

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

public class Prop
extends java.lang.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  java.util.List<org.w3c.dom.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
 java.util.List<org.w3c.dom.Element> getAny()
          Gets the value of the any property.
 org.w3c.dom.Element getAnyByName(javax.xml.namespace.QName name)
          Get a proprietary property as an W3C element
 org.w3c.dom.Element getAnyByName(java.lang.String namespaceURI, java.lang.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(org.w3c.dom.Element element)
          Remove the specified proprietary property
 void removeAny(javax.xml.namespace.QName name)
          Remove the specified proprietary property
 void removeAny(java.lang.String namespaceURI, java.lang.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.
 org.w3c.dom.Element setProperty(javax.xml.namespace.QName name)
          Set a proprietary property, and return the Element representing it
 org.w3c.dom.Element setProperty(javax.xml.namespace.QName name, org.w3c.dom.Element content)
          Set a proprietary property, and return the Element representing it
 org.w3c.dom.Element setProperty(javax.xml.namespace.QName name, java.lang.String content)
          Set a proprietary property, and return the Element representing it
 org.w3c.dom.Element setProperty(java.lang.String namespaceURI, java.lang.String name)
          Set a proprietary property, and return the Element representing it
 org.w3c.dom.Element setProperty(java.lang.String namespaceURI, java.lang.String name, org.w3c.dom.Element child)
          Set a proprietary property, and return the Element representing it
 org.w3c.dom.Element setProperty(java.lang.String namespaceURI, java.lang.String name, java.lang.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 java.util.List<org.w3c.dom.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 java.util.List<org.w3c.dom.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 org.w3c.dom.Element getAnyByName(javax.xml.namespace.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 org.w3c.dom.Element getAnyByName(java.lang.String namespaceURI,
                                        java.lang.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(java.lang.String namespaceURI,
                      java.lang.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(javax.xml.namespace.QName name)
Remove the specified proprietary property

Parameters:
name - name of the property to remove

removeAny

public void removeAny(org.w3c.dom.Element element)
Remove the specified proprietary property

Parameters:
element - the Element instance to remove

setProperty

public org.w3c.dom.Element setProperty(javax.xml.namespace.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 org.w3c.dom.Element setProperty(javax.xml.namespace.QName name,
                                       java.lang.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 org.w3c.dom.Element setProperty(javax.xml.namespace.QName name,
                                       org.w3c.dom.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 org.w3c.dom.Element setProperty(java.lang.String namespaceURI,
                                       java.lang.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 org.w3c.dom.Element setProperty(java.lang.String namespaceURI,
                                       java.lang.String name,
                                       java.lang.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 org.w3c.dom.Element setProperty(java.lang.String namespaceURI,
                                       java.lang.String name,
                                       org.w3c.dom.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 The Apache Software Foundation. All Rights Reserved.