Package com.verisign.epp.codec.coaext
Class EPPCoaExtValue
- java.lang.Object
-
- com.verisign.epp.codec.coaext.EPPCoaExtValue
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPCoaExtValue extends java.lang.Object implements EPPCodecComponent
EPPCodecComponent that encodes and decodes a COA Value Tag.Title: EPP 1.0 Client Object Attribute - Value
Description: The Value tag represents the value of a Client Object Attribute. It contains simply the Client Object Attribute value as text, and is only used in the company of a Key tag which identifies it.
Copyright: Copyright (c) 2011
Company: VeriSign
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_NAME
Constant for the COA value tag
-
Constructor Summary
Constructors Constructor Description EPPCoaExtValue()
Create an EPPCoaExtValue instanceEPPCoaExtValue(java.lang.String aValue)
Create a EPPCoaExtValue intance with the given value
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPCoaExtValue
.void
decode(org.w3c.dom.Element aElement)
Decode the EPPCoaExtValue componentorg.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML documentboolean
equals(java.lang.Object aObject)
implements a deepEPPCoaExtValue
compare.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.java.lang.String
getValue()
Returns the value to a key/value pair.void
setValue(java.lang.String aValue)
Sets the Value
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the COA value tag- See Also:
- Constant Field Values
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPCoaExtValue
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classjava.lang.Object
- Returns:
- clone of
EPPCoaExtValue
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Sets all this instance's data in the given XML document- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException
- Thrown if any errors prevent encoding.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode the EPPCoaExtValue component- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- DOM Element to decode- Throws:
EPPDecodeException
- On decoding error
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPCoaExtValue
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPCoaExtValue
instance to compare with- Returns:
- true if equal false otherwise
-
getValue
public java.lang.String getValue()
Returns the value to a key/value pair.- Returns:
- the value
-
setValue
public void setValue(java.lang.String aValue)
Sets the Value- Parameters:
aValue
- - The value to a key/value pair
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-