Class Type
- java.lang.Object
-
- org.apache.jackrabbit.webdav.lock.Type
-
- All Implemented Interfaces:
XmlSerializable
public class Type extends Object implements XmlSerializable
TheType
class 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 Type
create(String localName, Namespace namespace)
Create aType
object from the given localName and namespace.static Type
createFromXml(Element lockType)
Create aType
object from the given Xml element.boolean
equals(Object obj)
Returnstrue
if this Type is equal to the given one.int
hashCode()
Element
toXml(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:
toXml
in interfaceXmlSerializable
- Parameters:
document
- to be used as factory.- Returns:
- Xml representation
- See Also:
XmlSerializable.toXml(Document)
-
equals
public boolean equals(Object obj)
Returnstrue
if this Type is equal to the given one.
-
createFromXml
public static Type createFromXml(Element lockType)
Create aType
object from the given Xml element.- Parameters:
lockType
-- Returns:
Type
object.
-
-