Class EPPBalanceInfoResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.balance.v04.EPPBalanceInfoResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
A concrete
EPPResponse that knows how to encode/decode Balance Info
response from/to XML and object instance.- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPBalanceInfoResp.static final StringThe poll data XML tag nameFields inherited from class com.verisign.epp.codec.gen.EPPResponse
ELM_EXTENSION, ELM_MESSAGE_QUEUE, ELM_MESSAGE_QUEUE_QDATE, ELM_RESPONSE_DATA, extensions, TRANSFER_CLIENT_APPROVED, TRANSFER_CLIENT_CANCELLED, TRANSFER_CLIENT_REJECTED, TRANSFER_PENDING, TRANSFER_SERVER_APPROVED, TRANSFER_SERVER_CANCELLED -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructorEPPBalanceInfoResp(EPPTransId aTransId, EPPBalance aBalance) EPPBalanceInfoRespthat takes a single balance, where there must be at least one balance set.EPPBalanceInfoResp(EPPTransId aTransId, List<EPPBalance> aBalances) EPPBalanceInfoRespthat takes all balances. -
Method Summary
Modifier and TypeMethodDescriptionvoidaddBalance(EPPBalance aBalance) Adds a balance to the list of balances.clone()CloneEPPLowBalancePollResponse.voidPopulates the data of this instance from the given XML Element which is part of a DOM DocumentPut all data contained in this poll response into the given XML documentbooleanimplements a deepEPPBalanceInfoRespcompare.Gets the list of balances.Returns the XML namespace associated with theEPPResponse.booleanAre the balances defined?voidsetBalances(List<EPPBalance> aBalances) Sets the list of balances for the info response.Methods inherited from class com.verisign.epp.codec.gen.EPPResponse
addExtension, decode, encode, findDuplicateExtNamespaces, findExtNamespaces, findExtNamespaceSuffixes, findUnsupportedExtNamespaces, findUnsupportedExtNamespaceSuffixes, getExtension, getExtension, getExtensions, getMessageQueue, getMsgQueue, getMsgQueueCount, getMsgQueueDate, getMsgQueueMsg, getQDate, getResult, getResults, getTransId, getType, hasExtension, hasExtensions, hasMessageQueue, hasMsgQueue, hasResultCode, isSuccess, setExtension, setExtensions, setMsgQueue, setResult, setResult, setResult, setResult, setResults, setTransId, toString
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPBalanceInfoResp.- See Also:
-
ELM_NAME
The poll data XML tag name- See Also:
-
-
Constructor Details
-
EPPBalanceInfoResp
public EPPBalanceInfoResp()Default constructor -
EPPBalanceInfoResp
EPPBalanceInfoRespthat takes a single balance, where there must be at least one balance set.- Parameters:
aTransId- Transaction identifier information (server and optional client)
-
EPPBalanceInfoResp
EPPBalanceInfoRespthat takes all balances.- Parameters:
aTransId- Transaction identifier information (server and optional client)
-
-
Method Details
-
getNamespace
Returns the XML namespace associated with theEPPResponse.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
- XML namespace for the
EPPResponse.
-
doEncode
Put all data contained in this poll response into the given XML document- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- the DOM Document to attach data to.- Returns:
- the element that is a parent of the poll data
- Throws:
EPPEncodeException- Thrown if any errors occur during the encode process
-
doDecode
Populates the data of this instance from the given XML Element which is part of a DOM Document- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- the element that is a parent of the poll data- Throws:
EPPDecodeException- thrown if any errors occur during the decode operation
-
equals
implements a deepEPPBalanceInfoRespcompare.- Overrides:
equalsin classEPPResponse- Parameters:
aObject-EPPBalanceInfoRespinstance to compare with- Returns:
- true if equal false otherwise
-
clone
CloneEPPLowBalancePollResponse.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPLowBalancePollResponse - Throws:
CloneNotSupportedException- standard Object.clone exception
-
hasBalances
public boolean hasBalances()Are the balances defined?- Returns:
trueif the balances are defined;falseotherwise.
-
getBalances
Gets the list of balances.- Returns:
- The list of
EPPBalanceobjects
-
addBalance
Adds a balance to the list of balances.- Parameters:
aBalance- Balance to add to the list of balances.
-
setBalances
Sets the list of balances for the info response.- Parameters:
aBalances- The list of balances
-