|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.apache.wink.webdav.model.Prop
public class Prop
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 |
---|
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
protected List<Element> any
Constructor Detail |
---|
public Prop()
Method Detail |
---|
public Creationdate getCreationdate()
Creationdate
public void setCreationdate(Creationdate value)
value
- allowed object is Creationdate
public Displayname getDisplayname()
Displayname
public void setDisplayname(Displayname value)
value
- allowed object is Displayname
public Getcontentlanguage getGetcontentlanguage()
Getcontentlanguage
public void setGetcontentlanguage(Getcontentlanguage value)
value
- allowed object is Getcontentlanguage
public Getcontentlength getGetcontentlength()
Getcontentlength
public void setGetcontentlength(Getcontentlength value)
value
- allowed object is Getcontentlength
public Getcontenttype getGetcontenttype()
Getcontenttype
public void setGetcontenttype(Getcontenttype value)
value
- allowed object is Getcontenttype
public Getetag getGetetag()
Getetag
public void setGetetag(Getetag value)
value
- allowed object is Getetag
public Getlastmodified getGetlastmodified()
Getlastmodified
public void setGetlastmodified(Getlastmodified value)
value
- allowed object is Getlastmodified
public Lockdiscovery getLockdiscovery()
Lockdiscovery
public void setLockdiscovery(Lockdiscovery value)
value
- allowed object is Lockdiscovery
public Resourcetype getResourcetype()
Resourcetype
public void setResourcetype(Resourcetype value)
value
- allowed object is Resourcetype
public Supportedlock getSupportedlock()
Supportedlock
public void setSupportedlock(Supportedlock value)
value
- allowed object is Supportedlock
public List<Element> getAny()
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
public Element getAnyByName(QName name)
name
- the name of the property to get
public Element getAnyByName(String namespaceURI, String name)
namespaceURI
- the namespace of the property to getname
- the name of the property to get
public void removeAny(String namespaceURI, String name)
namespaceURI
- the namespace of the property to removename
- name of the property to removepublic void removeAny(QName name)
name
- name of the property to removepublic void removeAny(Element element)
element
- the Element instance to removepublic Element setProperty(QName name)
name
- the name of the property
public Element setProperty(QName name, String content)
name
- the name of the propertycontent
- the text content of the property
public Element setProperty(QName name, Element content)
name
- the name of the propertycontent
- the text content of the property
public Element setProperty(String namespaceURI, String name)
namespaceURI
- the namespace of the propertyname
- the name of the property
public Element setProperty(String namespaceURI, String name, String content)
namespaceURI
- the namespace of the propertyname
- the name of the propertycontent
- the text content of the property
public Element setProperty(String namespaceURI, String name, Element child)
namespaceURI
- the namespace of the propertyname
- the name of the propertychild
- the child element of the property element
public void copyTo(Prop dest)
dest
- the Prop instance to cop this instance into
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |