Class Type
java.lang.Object
org.apache.jackrabbit.webdav.lock.Type
- All Implemented Interfaces:
XmlSerializable
The
Type class encapsulates the lock type as defined by RFC 2518.-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic TypeCreate aTypeobject from the given localName and namespace.static TypecreateFromXml(Element lockType) Create aTypeobject from the given Xml element.booleanReturnstrueif this Type is equal to the given one.inthashCode()Returns the Xml representation of this lockType.
-
Field Details
-
WRITE
-
-
Method Details
-
toXml
Returns the Xml representation of this lockType.- Specified by:
toXmlin interfaceXmlSerializable- Parameters:
document- to be used as factory.- Returns:
- Xml representation
- See Also:
-
hashCode
public int hashCode() -
equals
Returnstrueif this Type is equal to the given one. -
createFromXml
Create aTypeobject from the given Xml element.- Parameters:
lockType-- Returns:
Typeobject.
-
create
Create aTypeobject from the given localName and namespace.- Parameters:
localName-namespace-- Returns:
Typeobject.
-