Package com.verisign.epp.codec.fee.v1_0
Class EPPFeeCheckResult
- java.lang.Object
-
- com.verisign.epp.codec.fee.v1_0.EPPFeeCheckResult
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPFeeCheckResult extends java.lang.Object implements EPPCodecComponent
EPPFeeCheckResultrepresents a fee result to a check.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPFeeCheckResult.static java.lang.StringELM_NAMEXML root tag forEPPFeeCheckResult.
-
Constructor Summary
Constructors Constructor Description EPPFeeCheckResult()Default constructor forEPPFeeCheckResult.EPPFeeCheckResult(java.lang.String aObjID, boolean aAvailable)Constructor forEPPFeeCheckResultthat only takes the identifier (domain name) and the available flag.EPPFeeCheckResult(java.lang.String aObjID, EPPFeeCommandData aCommand)Constructor forEPPFeeCheckResultthat takes the identifier (domain name) and a single command for an available fee.EPPFeeCheckResult(java.lang.String aObjID, java.lang.String aReason)Constructor forEPPFeeCheckResultthat takes the object identifier (domain name) and the reason that the fee data is unavailable.EPPFeeCheckResult(java.lang.String aObjID, java.lang.String aReason, java.lang.String aLanguage)Constructor forEPPFeeCheckResultthat takes the object identifier (domain name), the reason that the fee data is unavailable, and the language of the reason.EPPFeeCheckResult(java.lang.String aObjID, java.lang.String aClassification, java.lang.String aReason, java.lang.String aLanguage)Constructor forEPPFeeCheckResultthat takes all attributes.EPPFeeCheckResult(java.lang.String aObjID, java.util.List<EPPFeeCommandData> aCommands)Constructor forEPPFeeCheckResultthat takes the object identifier (domain name) and a list of commands for an available fee.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddCommand(EPPFeeCommandData aCommand)Adds a command to the list of commands.java.lang.Objectclone()Clone anEPPCodecComponentinstance.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 ofEPPFeeCheckResultwith this instance.java.lang.StringgetClassification()Gets the classification.java.util.List<EPPFeeCommandData>getCommands()Gets the list of commands if defined.java.lang.StringgetLanguage()Gets reason languagejava.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetObjID()Gets the object identifier value.java.lang.StringgetReason()Gets the reason value.booleanhasClassification()Is the classification defined?booleanhasCommands()Are the commands defined?booleanhasReason()Is the reason defined if the available attribute isfalse?booleanisAvailable()Is the fee information available? SeegetReason()to get the optional reason when available isfalse.voidsetAvailable(boolean aAvailable)Sets the fee information available value.voidsetClassification(java.lang.String aClassification)Sets the classification.voidsetCommands(java.util.List<EPPFeeCommandData> aCommands)Sets the list of commands.voidsetLanguage(java.lang.String aLanguage)Sets language attribute.voidsetObjID(java.lang.String aObjID)Sets the name value.voidsetReason(java.lang.String aReason)Sets the reason 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 forEPPFeeCheckResult.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPFeeCheckResult.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPFeeCheckResult
public EPPFeeCheckResult()
Default constructor forEPPFeeCheckResult.
-
EPPFeeCheckResult
public EPPFeeCheckResult(java.lang.String aObjID, boolean aAvailable)Constructor forEPPFeeCheckResultthat only takes the identifier (domain name) and the available flag.- Parameters:
aObjID- Object identifier. An example is the domain name for extension of a domain check response.aAvailable- Fee available flag. Iftrue, at least one fee command data element must be set and iffalsea reason should be set.
-
EPPFeeCheckResult
public EPPFeeCheckResult(java.lang.String aObjID, EPPFeeCommandData aCommand)Constructor forEPPFeeCheckResultthat takes the identifier (domain name) and a single command for an available fee.- Parameters:
aObjID- Object identifier. An example is the domain name for extension of a domain check response.aCommand- Command fee data
-
EPPFeeCheckResult
public EPPFeeCheckResult(java.lang.String aObjID, java.util.List<EPPFeeCommandData> aCommands)Constructor forEPPFeeCheckResultthat takes the object identifier (domain name) and a list of commands for an available fee.- Parameters:
aObjID- Object identifier. An example is the domain name for extension of a domain check response.aCommands- Command fee data
-
EPPFeeCheckResult
public EPPFeeCheckResult(java.lang.String aObjID, java.lang.String aReason)Constructor forEPPFeeCheckResultthat takes the object identifier (domain name) and the reason that the fee data is unavailable.- Parameters:
aObjID- Object identifier. An example is the domain name for extension of a domain check response.aReason- Reason that the fee data is unavailable.
-
EPPFeeCheckResult
public EPPFeeCheckResult(java.lang.String aObjID, java.lang.String aReason, java.lang.String aLanguage)Constructor forEPPFeeCheckResultthat takes the object identifier (domain name), the reason that the fee data is unavailable, and the language of the reason.- Parameters:
aObjID- Object identifier. An example is the domain name for extension of a domain check response.aReason- Reason that the fee data is unavailable.aLanguage- Language of theaReasonvalue.
-
EPPFeeCheckResult
public EPPFeeCheckResult(java.lang.String aObjID, java.lang.String aClassification, java.lang.String aReason, java.lang.String aLanguage)Constructor forEPPFeeCheckResultthat takes all attributes.- Parameters:
aObjID- Object identifier. An example is the domain name for extension of a domain check response.aClassification- Fee classification for object. Set tonullfor no classification.aReason- Reason that the fee data is unavailable.aLanguage- Language of theaReasonvalue.
-
-
Method Detail
-
getObjID
public java.lang.String getObjID()
Gets the object identifier value.- Returns:
- Object identifier value if defined;
nullotherwise.
-
setObjID
public void setObjID(java.lang.String aObjID)
Sets the name value.- Parameters:
aObjID- Object identifier value
-
hasClassification
public boolean hasClassification()
Is the classification defined?- Returns:
trueif the classification is defined;falseotherwise.
-
getClassification
public java.lang.String getClassification()
Gets the classification.- Returns:
- The classification value if defined;
nullotherwise.
-
setClassification
public void setClassification(java.lang.String aClassification)
Sets the classification.- Parameters:
aClassification- the classification to set
-
isAvailable
public boolean isAvailable()
Is the fee information available? SeegetReason()to get the optional reason when available isfalse.- Returns:
trueif the fee information is available;falseotherwise.
-
setAvailable
public void setAvailable(boolean aAvailable)
Sets the fee information available value. SeesetReason(String)to set the optional reason when available isfalse.- Parameters:
aAvailable-trueif the fee is available;falseotherwise.
-
hasCommands
public boolean hasCommands()
Are the commands defined?- Returns:
trueif the commands are defined;falseotherwise.
-
getCommands
public java.util.List<EPPFeeCommandData> getCommands()
Gets the list of commands if defined.- Returns:
- List of commands if defined; empty list otherwise.
-
addCommand
public void addCommand(EPPFeeCommandData aCommand)
Adds a command to the list of commands.- Parameters:
aCommand- The command to add.
-
setCommands
public void setCommands(java.util.List<EPPFeeCommandData> aCommands)
Sets the list of commands.- Parameters:
aCommands- The commands to set.
-
hasReason
public boolean hasReason()
Is the reason defined if the available attribute isfalse?- Returns:
trueif the reason is defined;falseotherwise.
-
getReason
public java.lang.String getReason()
Gets the reason value.- Returns:
- Reason if defined;
nullotherwise.
-
setReason
public void setReason(java.lang.String aReason)
Sets the reason value.- Parameters:
aReason- reason value
-
getLanguage
public java.lang.String getLanguage()
Gets reason language- Returns:
- Reason language
-
setLanguage
public void setLanguage(java.lang.String aLanguage)
Sets language attribute.- Parameters:
aLanguage- Sets reason language attribute.
-
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 encodingEPPFeeCheckResult
-
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 anEPPCodecComponentinstance.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of concrete
EPPFeeCheckResult - 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 ofEPPFeeCheckResultwith 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.
-
-