Package com.verisign.epp.codec.org
Class EPPOrgCheckResult
java.lang.Object
com.verisign.epp.codec.org.EPPOrgCheckResult
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
EPPOrgCheckResult is used to represent the for the check of
an individual org. The org information includes the org
identifier, whether the org identifier is available, and optionally the
reason that the org identifier is not available.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPOrgCheckResult.EPPOrgCheckResult(String aOrgId, boolean aAvailable) Constructor forEPPOrgCheckResultthat takes org identifier and whether the org identifier is available.EPPOrgCheckResult(String aOrgId, String aReason) Constructor forEPPOrgCheckResultthat is used for unavailable org identifiers providing the reason the org identifier is not available.EPPOrgCheckResult(String aOrgId, String aReason, String aReasonLang) Constructor forEPPOrgCheckResultthat is used for unavailable org identifiers providing the reason the org identifier is not available with the reason language. -
Method Summary
Modifier and TypeMethodDescriptionclone()clone anEPPCodecComponent.voiddecode a DOM element tree to initialize the instance attributes.encode instance into a DOM element tree.booleanCompare an instance ofEPPOrgCheckResultwith this instance.Returns the XML namespace associated with theEPPCodecComponent.getOrgId()Gets the org identifier.Gets the reason that the org identifier is not available.Gets the reason language value.booleanIs the reason defined?booleanIs the reason language defined?booleanIs the org identifier available?voidsetAvailable(boolean aAvailable) Sets the org identifier is available.voidSets the org identifier.voidSets the reason that the org identifier is not available.voidsetReasonLang(String aReasonLang) Sets the reason language value.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPOrgCheckResult.- See Also:
-
ELM_NAME
XML root tag forEPPOrgCheckResult.- See Also:
-
-
Constructor Details
-
EPPOrgCheckResult
public EPPOrgCheckResult()Default constructor forEPPOrgCheckResult. -
EPPOrgCheckResult
Constructor forEPPOrgCheckResultthat takes org identifier and whether the org identifier is available.- Parameters:
aOrgId- The org identifieraAvailable- Is the org identifier available?
-
EPPOrgCheckResult
Constructor forEPPOrgCheckResultthat is used for unavailable org identifiers providing the reason the org identifier is not available.- Parameters:
aOrgId- The org identifieraReason- Reason that the org identifier is not available.
-
EPPOrgCheckResult
Constructor forEPPOrgCheckResultthat is used for unavailable org identifiers providing the reason the org identifier is not available with the reason language.- Parameters:
aOrgId- The org identifieraReason- Reason that the org identifier is not available.aReasonLang- Reason language for reason value.
-
-
Method Details
-
getOrgId
Gets the org identifier.- Returns:
- The org identifier if defined;
nullotherwise.
-
setOrgId
Sets the org identifier.- Parameters:
aOrgId- The org identifier
-
isAvailable
public boolean isAvailable()Is the org identifier available?- Returns:
trueif the org identifier is available;falseotherwise.
-
setAvailable
public void setAvailable(boolean aAvailable) Sets the org identifier is available.- Parameters:
aAvailable-trueif the org identifier is available;falseotherwise.
-
hasReason
public boolean hasReason()Is the reason defined?- Returns:
trueif the reason is defined;falseotherwise.
-
getReason
Gets the reason that the org identifier is not available.- Returns:
- Reason that the org identifier is not available if defined;
nullotherwise.
-
setReason
Sets the reason that the org identifier is not available.- Parameters:
aReason- Reason that the org identifier is not available. Set tonullto clear the reason.
-
hasReasonLang
public boolean hasReasonLang()Is the reason language defined?- Returns:
trueif the reason language is defined;falseotherwise.
-
getReasonLang
Gets the reason language value.- Returns:
- Reason language if defined;
nullotherwise.
-
setReasonLang
Sets the reason language value.- Parameters:
aReasonLang- Reason language for reason value.
-
encode
encode instance into a DOM element tree. A DOM Document is passed as an argument and functions as a factory for DOM objects. The root element associated with the instance is created and each instance attribute is appended as a child node.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document, which acts is an Element factory- Returns:
- Element Root element associated with the object
- Throws:
EPPEncodeException- Error encodingEPPOrgCheckResult
-
decode
decode a DOM element tree to initialize the instance attributes. TheaElementargument represents the root DOM element and is used to traverse the DOM nodes for instance attribute values.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement-Elementto decode- Throws:
EPPDecodeException- Error decodingElement
-
clone
clone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of concrete
EPPOrgCheckResult - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
equals
Compare an instance ofEPPOrgCheckResultwith this instance. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-