Class EPPValidateKeyValue
java.lang.Object
com.verisign.epp.codec.validate.v02.EPPValidateKeyValue
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
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.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPValidateKeyValue.EPPValidateKeyValue(String aKey, String aValue) Constructor forEPPValidateKeyValuethat includes the required attributes of the key and the value.EPPValidateKeyValue(String aKey, String aValue, String aContactType) Constructor forEPPValidateKeyValuethat includes all of the attributes. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPValidateKeyValue.voidDecode theEPPValidateKeyValueattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPValidateKeyValueinstance.booleanCompare an instance ofEPPValidateKeyValuewith this instance.Gets the contact type.getKey()Gets the key.Returns the XML namespace associated with theEPPCodecComponent.getValue()Gets the value.booleanIs the contact type defined?voidsetContactType(String aType) Sets the contact type.voidSets the key.voidSets the value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the key value local name- See Also:
-
ELM_NAME
Constant for the key value tag- See Also:
-
-
Constructor Details
-
EPPValidateKeyValue
public EPPValidateKeyValue()Default constructor forEPPValidateKeyValue. -
EPPValidateKeyValue
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
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 Details
-
getKey
Gets the key.- Returns:
- The key if defined;
nullotherwise.
-
setKey
Sets the key.- Parameters:
aKey- The key
-
getValue
Gets the value.- Returns:
- The value if defined;
nullotherwise.
-
setValue
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
Gets the contact type.- Returns:
- The contact type if defined;
nullotherwise.
-
setContactType
Sets the contact type.- Parameters:
aType- The contact type
-
encode
Encode 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
Decode 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
Compare an instance ofEPPValidateKeyValuewith this instance. -
clone
CloneEPPValidateKeyValue.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPValidateKeyValue - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-