Class EPPValidateKeyValue
- java.lang.Object
-
- com.verisign.epp.codec.validate.v02.EPPValidateKeyValue
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPValidateKeyValue extends java.lang.Object implements EPPCodecComponent
EPPValidateKeyValueis used to hold key, value pairs along with an optional "contactType" attribute for use inEPPValidateCheckCmdandEPPValidateKeyValue.EPPValidateKeyValueconsists of a required "key" and "value" attribute.- See Also:
EPPValidateCheckCmd,EPPValidateKeyValue, Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEConstant for the key value local namestatic java.lang.StringELM_NAMEConstant for the key value tag
-
Constructor Summary
Constructors Constructor Description EPPValidateKeyValue()Default constructor forEPPValidateKeyValue.EPPValidateKeyValue(java.lang.String aKey, java.lang.String aValue)Constructor forEPPValidateKeyValuethat includes the required attributes of the key and the value.EPPValidateKeyValue(java.lang.String aKey, java.lang.String aValue, java.lang.String aContactType)Constructor forEPPValidateKeyValuethat includes all of the attributes.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPValidateKeyValue.voiddecode(org.w3c.dom.Element aElement)Decode theEPPValidateKeyValueattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPValidateKeyValueinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPValidateKeyValuewith this instance.java.lang.StringgetContactType()Gets the contact type.java.lang.StringgetKey()Gets the key.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetValue()Gets the value.booleanhasContactType()Is the contact type defined?voidsetContactType(java.lang.String aType)Sets the contact type.voidsetKey(java.lang.String aKey)Sets the key.voidsetValue(java.lang.String aValue)Sets the value.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
Constant for the key value local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the key value tag- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPValidateKeyValue
public EPPValidateKeyValue()
Default constructor forEPPValidateKeyValue.
-
EPPValidateKeyValue
public EPPValidateKeyValue(java.lang.String aKey, java.lang.String aValue)Constructor forEPPValidateKeyValuethat includes the required attributes of the key and the value.- Parameters:
aKey- Key associated with the valueaValue- Value associated with the key
-
EPPValidateKeyValue
public EPPValidateKeyValue(java.lang.String aKey, java.lang.String aValue, java.lang.String aContactType)Constructor forEPPValidateKeyValuethat includes all of the attributes.- Parameters:
aKey- Key associated with the valueaValue- Value associated with the keyaContactType- Contact type associated with this key value pair.
-
-
Method Detail
-
getKey
public java.lang.String getKey()
Gets the key.- Returns:
- The key if defined;
nullotherwise.
-
setKey
public void setKey(java.lang.String aKey)
Sets the key.- Parameters:
aKey- The key
-
getValue
public java.lang.String getValue()
Gets the value.- Returns:
- The value if defined;
nullotherwise.
-
setValue
public void setValue(java.lang.String aValue)
Sets the value.- Parameters:
aValue- The value
-
hasContactType
public boolean hasContactType()
Is the contact type defined?- Returns:
trueif the contact type is defined;falseotherwise.
-
getContactType
public java.lang.String getContactType()
Gets the contact type.- Returns:
- The contact type if defined;
nullotherwise.
-
setContactType
public void setContactType(java.lang.String aType)
Sets the contact type.- Parameters:
aType- The contact type
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPValidateKeyValueinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPValidateKeyValueinstance. - Throws:
EPPEncodeException- Unable to encodeEPPValidateKeyValueinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPValidateKeyValueattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPValidateKeyValuefrom.- Throws:
EPPDecodeException- Unable to decode aElement.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPValidateKeyValuewith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPValidateKeyValue.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPValidateKeyValue - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-