public class Type extends java.lang.Object implements XmlSerializable
Type
class encapsulates the lock type as defined by RFC 2518.Modifier and Type | Method and Description |
---|---|
static Type |
create(java.lang.String localName,
Namespace namespace)
Create a
Type object from the given localName and namespace. |
static Type |
createFromXml(org.w3c.dom.Element lockType)
Create a
Type object from the given Xml element. |
boolean |
equals(java.lang.Object obj)
Returns
true if this Type is equal to the given one. |
int |
hashCode() |
org.w3c.dom.Element |
toXml(org.w3c.dom.Document document)
Returns the Xml representation of this lock
Type . |
public static final Type WRITE
public org.w3c.dom.Element toXml(org.w3c.dom.Document document)
Type
.toXml
in interface XmlSerializable
document
- to be used as factory.XmlSerializable.toXml(Document)
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
true
if this Type is equal to the given one.equals
in class java.lang.Object
obj
- public static Type createFromXml(org.w3c.dom.Element lockType)
Type
object from the given Xml element.lockType
- Type
object.Copyright © 2010 - 2020 Adobe. All Rights Reserved