Class Type
- java.lang.Object
-
- org.apache.jackrabbit.webdav.lock.Type
-
- All Implemented Interfaces:
XmlSerializable
public class Type extends Object implements XmlSerializable
TheTypeclass encapsulates the lock type as defined by RFC 2518.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static Typecreate(String localName, Namespace namespace)Create aTypeobject from the given localName and namespace.static TypecreateFromXml(Element lockType)Create aTypeobject from the given Xml element.booleanequals(Object obj)Returnstrueif this Type is equal to the given one.inthashCode()ElementtoXml(Document document)Returns the Xml representation of this lockType.
-
-
-
Field Detail
-
WRITE
public static final Type WRITE
-
-
Method Detail
-
toXml
public Element toXml(Document document)
Returns the Xml representation of this lockType.- Specified by:
toXmlin interfaceXmlSerializable- Parameters:
document- to be used as factory.- Returns:
- Xml representation
- See Also:
XmlSerializable.toXml(Document)
-
equals
public boolean equals(Object obj)
Returnstrueif this Type is equal to the given one.
-
createFromXml
public static Type createFromXml(Element lockType)
Create aTypeobject from the given Xml element.- Parameters:
lockType-- Returns:
Typeobject.
-
-