Package com.verisign.epp.codec.org
Class EPPOrgCheckResult
- java.lang.Object
-
- com.verisign.epp.codec.org.EPPOrgCheckResult
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPOrgCheckResult extends java.lang.Object implements EPPCodecComponent
EPPOrgCheckResultis 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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPOrgCheckResult.static java.lang.StringELM_NAMEXML root tag forEPPOrgCheckResult.
-
Constructor Summary
Constructors Constructor Description EPPOrgCheckResult()Default constructor forEPPOrgCheckResult.EPPOrgCheckResult(java.lang.String aOrgId, boolean aAvailable)Constructor forEPPOrgCheckResultthat takes org identifier and whether the org identifier is available.EPPOrgCheckResult(java.lang.String aOrgId, java.lang.String aReason)Constructor forEPPOrgCheckResultthat is used for unavailable org identifiers providing the reason the org identifier is not available.EPPOrgCheckResult(java.lang.String aOrgId, java.lang.String aReason, java.lang.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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()clone anEPPCodecComponent.voiddecode(org.w3c.dom.Element aElement)decode a DOM element tree to initialize the instance attributes.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)encode instance into a DOM element tree.booleanequals(java.lang.Object aObject)Compare an instance ofEPPOrgCheckResultwith this instance.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetOrgId()Gets the org identifier.java.lang.StringgetReason()Gets the reason that the org identifier is not available.java.lang.StringgetReasonLang()Gets the reason language value.booleanhasReason()Is the reason defined?booleanhasReasonLang()Is the reason language defined?booleanisAvailable()Is the org identifier available?voidsetAvailable(boolean aAvailable)Sets the org identifier is available.voidsetOrgId(java.lang.String aOrgId)Sets the org identifier.voidsetReason(java.lang.String aReason)Sets the reason that the org identifier is not available.voidsetReasonLang(java.lang.String aReasonLang)Sets the reason language 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
XML local name forEPPOrgCheckResult.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPOrgCheckResult.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPOrgCheckResult
public EPPOrgCheckResult()
Default constructor forEPPOrgCheckResult.
-
EPPOrgCheckResult
public EPPOrgCheckResult(java.lang.String aOrgId, boolean aAvailable)Constructor forEPPOrgCheckResultthat takes org identifier and whether the org identifier is available.- Parameters:
aOrgId- The org identifieraAvailable- Is the org identifier available?
-
EPPOrgCheckResult
public EPPOrgCheckResult(java.lang.String aOrgId, java.lang.String aReason)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
public EPPOrgCheckResult(java.lang.String aOrgId, java.lang.String aReason, java.lang.String aReasonLang)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 Detail
-
getOrgId
public java.lang.String getOrgId()
Gets the org identifier.- Returns:
- The org identifier if defined;
nullotherwise.
-
setOrgId
public void setOrgId(java.lang.String aOrgId)
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
public java.lang.String getReason()
Gets the reason that the org identifier is not available.- Returns:
- Reason that the org identifier is not available if defined;
nullotherwise.
-
setReason
public void setReason(java.lang.String aReason)
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
public java.lang.String getReasonLang()
Gets the reason language value.- Returns:
- Reason language if defined;
nullotherwise.
-
setReasonLang
public void setReasonLang(java.lang.String aReasonLang)
Sets the reason language value.- Parameters:
aReasonLang- Reason language for reason value.
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionencode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptiondecode 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
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionclone anEPPCodecComponent.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of concrete
EPPOrgCheckResult - 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.
-
equals
public boolean equals(java.lang.Object aObject)
Compare an instance ofEPPOrgCheckResultwith this instance.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject- Object to compare with.- Returns:
trueif equal;falseotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-