Package com.verisign.epp.codec.gen
Class EPPValue
java.lang.Object
com.verisign.epp.codec.gen.EPPValue
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Identifies a client-provided element (including XML tag and value) that
caused a server error condition. The value can reference to the namespace URI
and namespace prefix for encoding the value. The
String value
needs to be set using XML with the specified namespace prefix. For example,
the URI could be "urn:ietf:params:xml:ns:domain-1.0", the prefix could be
"domain", and the value could be
<domain:name>example.com</domain:name>.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPValue.voiddecodeEPPValuefrom a DOM element tree.encodeEPPValueinto a DOM element tree.booleanimplements a deepEPPValuecompare.Gets the XML namespace URI of the client element.Gets the XML prefix of the client element.getValue()Gets XMLStringthat identifies a client-provided element (including XML tag and value) that caused a server error.voidsetNamespace(String aNamespace) Sets the XML namespace URI of the client element.voidSets the XML prefix of the client element.voidSets XMLStringthat identifies a client-provided element (including XML tag and value) that caused a server error.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Constructor Details
-
EPPValue
public EPPValue()Default constructor for serialization. Thevalueattribute must be set before callingencode. -
EPPValue
Allocates a newEPPValuewith only theStringvalue. The prefix is set tonulland the namespace is to the "urn:ietf:params:xml:ns:epp-1.0".- Parameters:
aValue- XMLStringthat identifies a client-provided element (including XML tag and value) that caused a server error.
-
EPPValue
Allocates a newEPPValuewith all attribute values.- Parameters:
aValue- XMLStringthat identifies a client-provided element (including XML tag and value) that caused a server error. For example, <domain:name>example.com</domain:name>.aPrefix- XML Namespace prefix. For example, "domain". Set tonullfor no namespace prefix.aNamespace- XML Namespace URI. For example, "urn:ietf:params:xml:ns:domain-1.0". If set tonullthe default of "urn:ietf:params:xml:ns:epp-1.0" is used.
-
-
Method Details
-
getValue
Gets XMLStringthat identifies a client-provided element (including XML tag and value) that caused a server error.- Returns:
- XML
Stringvalue using namespace prefix.
-
setValue
Sets XMLStringthat identifies a client-provided element (including XML tag and value) that caused a server error.- Parameters:
aValue- XMLStringthat identifies a client-provided element (including XML tag and value) that caused a server error. For example, <domain:name>example.com</domain:name>.
-
getPrefix
Gets the XML prefix of the client element. For example, "domain".- Returns:
- XML prefix if defined;
nullotherwise.
-
setPrefix
Sets the XML prefix of the client element. For example, "domain".- Parameters:
aPrefix- XML prefix to predefine in the <value> element. Set tonullto not predefine a namespace prefix.
-
getNamespace
Gets the XML namespace URI of the client element. For example, "urn:ietf:params:xml:ns:domain-1.0".- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace URI to predefine in the <value> element if
defined;
nullotherwise.
-
setNamespace
Sets the XML namespace URI of the client element. For example, "urn:ietf:params:xml:ns:domain-1.0".- Parameters:
aNamespace- ML namespace URI to predefine in the <value> element. Set tonullto not predefine a namespace.
-
encode
encodeEPPValueinto a DOM element tree.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document- Returns:
- <extValue> root element tree.
- Throws:
EPPEncodeException- Error encoding the DOM element tree.
-
decode
decodeEPPValuefrom a DOM element tree. TheaElementargument needs to be the "extValue" element.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- The "extValue" XML element.- Throws:
EPPDecodeException- Error decoding the DOM element tree.
-
equals
implements a deepEPPValuecompare. -
clone
CloneEPPValue.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- Deep copy clone of
EPPValue - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-