public class EPPValidateKeyValue extends java.lang.Object implements EPPCodecComponent
EPPValidateKeyValue
is used to hold key, value pairs along with an
optional "contactType" attribute for use in EPPValidateCheckCmd
and
EPPValidateKeyValue
. EPPValidateKeyValue
consists of a
required "key" and "value" attribute.EPPValidateCheckCmd
,
EPPValidateKeyValue
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the key value local name
|
static java.lang.String |
ELM_NAME
Constant for the key value tag
|
Constructor and Description |
---|
EPPValidateKeyValue()
Default constructor for
EPPValidateKeyValue . |
EPPValidateKeyValue(java.lang.String aKey,
java.lang.String aValue)
Constructor for
EPPValidateKeyValue that includes the required
attributes of the key and the value. |
EPPValidateKeyValue(java.lang.String aKey,
java.lang.String aValue,
java.lang.String aContactType)
Constructor for
EPPValidateKeyValue that includes all of the
attributes. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPValidateKeyValue . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPValidateKeyValue attributes from the aElement DOM
Element tree. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of the
EPPValidateKeyValue instance. |
boolean |
equals(java.lang.Object aObject)
Compare an instance of
EPPValidateKeyValue with this instance. |
java.lang.String |
getContactType()
Gets the contact type.
|
java.lang.String |
getKey()
Gets the key.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.lang.String |
getValue()
Gets the value.
|
boolean |
hasContactType()
Is the contact type defined?
|
void |
setContactType(java.lang.String aType)
Sets the contact type.
|
void |
setKey(java.lang.String aKey)
Sets the key.
|
void |
setValue(java.lang.String aValue)
Sets the value.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
public EPPValidateKeyValue()
EPPValidateKeyValue
.public EPPValidateKeyValue(java.lang.String aKey, java.lang.String aValue)
EPPValidateKeyValue
that includes the required
attributes of the key and the value.aKey
- Key associated with the valueaValue
- Value associated with the keypublic EPPValidateKeyValue(java.lang.String aKey, java.lang.String aValue, java.lang.String aContactType)
EPPValidateKeyValue
that includes all of the
attributes.aKey
- Key associated with the valueaValue
- Value associated with the keyaContactType
- Contact type associated with this key value pair.public java.lang.String getKey()
null
otherwise.public void setKey(java.lang.String aKey)
aKey
- The keypublic java.lang.String getValue()
null
otherwise.public void setValue(java.lang.String aValue)
aValue
- The valuepublic boolean hasContactType()
true
if the contact type is defined; false
otherwise.public java.lang.String getContactType()
null
otherwise.public void setContactType(java.lang.String aType)
aType
- The contact typepublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPValidateKeyValue
instance.encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element factory.EPPValidateKeyValue
instance.EPPEncodeException
- Unable to encode EPPValidateKeyValue
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPValidateKeyValue
attributes from the aElement DOM
Element tree.decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode EPPValidateKeyValue
from.EPPDecodeException
- Unable to decode aElement.public boolean equals(java.lang.Object aObject)
EPPValidateKeyValue
with this instance.equals
in class java.lang.Object
aObject
- Object to compare with.true
if equal; false
otherwise.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPValidateKeyValue
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPValidateKeyValue
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class java.lang.Object
String
if successful; ERROR
otherwise.public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.