|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.webdav.util.DeadProperty
@Entity public class DeadProperty
represents a dead property of a VirtualFile.
DeadProperties store additional information provided by WebDAV
clients.
| Constructor Summary | |
|---|---|
protected |
DeadProperty()
Deprecated. |
|
DeadProperty(org.jdom.Element property)
creates a new dead property from the property XML. |
|
DeadProperty(java.lang.String name,
java.lang.String namespace)
creates an empty property with the given name and namespace URI. |
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object obj)
checks whether the given object is equal to this DeadProperty. |
DeadProperty |
extractPrototype()
extracts a prototype of the dead property. |
java.lang.Long |
getId()
|
java.lang.String |
getName()
returns the name of the IProperty. |
java.lang.String |
getNamespaceURI()
returns the namespace URI of the IProperty. |
org.jdom.Element |
getPropElement()
returns the property as a JDOM element. |
int |
hashCode()
computes the hash code of the dead property. |
void |
patch(DeadProperty prop)
patches the property with the given other property. |
void |
patch(org.jdom.Element prop)
patches the property with the given property XML. |
java.lang.String |
toString()
returns a string representation of the dead property. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
@Deprecated protected DeadProperty()
public DeadProperty(org.jdom.Element property)
property - the property XML
public DeadProperty(java.lang.String name,
java.lang.String namespace)
name - the namenamespace - the namespace URI| Method Detail |
|---|
public final java.lang.Long getId()
public final java.lang.String getNamespaceURI()
IPropertyIProperty.
getNamespaceURI in interface IPropertypublic final java.lang.String getName()
IPropertyIProperty.
getName in interface IPropertypublic final org.jdom.Element getPropElement()
IProperty
getPropElement in interface IProperty
public final void patch(org.jdom.Element prop)
throws VFIOException
The namespace URI and name of the XML's root element must match the
namespace URI and name of this DeadProperty.
prop - the XML
VFIOException - if the given XML does not match the properties name and/or
namespace
public final void patch(DeadProperty prop)
throws VFIOException
The namespace URI and name of the property must match the namespace URI
and name of this DeadProperty.
prop - the property
VFIOException - if the given property does not match the properties name
and/or namespacepublic final DeadProperty extractPrototype()
A prototype has no specific value and consists of an empty element with
the same name and namespace as this DeadProperty.
extractPrototype in interface IPropertypublic int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
DeadProperty.
The given object is considered equal, if it is a DeadProperty,
with the same namespace URI and prop-name, and thus suitable for
patching.
equals in class java.lang.Objectobj - the given object
true, if and only if, the given object is suitable for
patching. Otherwise false.patch(DeadProperty)public java.lang.String toString()
toString in class java.lang.Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||