public class Type extends Object implements XmlSerializable
Type class encapsulates the lock type as defined by RFC 2518.| Modifier and Type | Method and Description |
|---|---|
static Type |
create(String localName,
Namespace namespace)
Create a
Type object from the given localName and namespace. |
static Type |
createFromXml(Element lockType)
Create a
Type object from the given Xml element. |
boolean |
equals(Object obj)
Returns
true if this Type is equal to the given one. |
int |
hashCode() |
Element |
toXml(Document document)
Returns the Xml representation of this lock
Type. |
public static final Type WRITE
public Element toXml(Document document)
Type.toXml in interface XmlSerializabledocument - to be used as factory.XmlSerializable.toXml(Document)public boolean equals(Object obj)
true if this Type is equal to the given one.public static Type createFromXml(Element lockType)
Type object from the given Xml element.lockType - Type object.Copyright © 2004–2022 The Apache Software Foundation. All rights reserved.