Class EPPMaintenanceInfoResp
java.lang.Object
com.verisign.epp.codec.gen.EPPResponse
com.verisign.epp.codec.maintenance.v1_0.EPPMaintenanceInfoResp
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,Serializable,Cloneable
Response information associated with a
EPPMaintenanceInfoCmd of type
EPPMaintenanceInfoCmd.InfoType.id, which will only include a single
element, and of type EPPMaintenanceInfoCmd.InfoType.id that can
include a list of zero or more maintenances items
(EPPMaintenanceListItem).- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumThe type of the info response, which is either the details of an individual maintenance withmaintenanceof a list of maintenance items withlist. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPMaintenanceInfoResp.static final StringXML root tag forEPPMaintenanceInfoResp.Fields 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
ConstructorsConstructorDescriptionEPPMaintenanceInfoRespdefault constructor.EPPMaintenanceInfoResp(EPPTransId aTransId) EPPMaintenanceInfoRespconstructor that only takes the transaction identifier.EPPMaintenanceInfoResp(EPPTransId aTransId, EPPMaintenanceItem aMaintenance) EPPMaintenanceInfoRespconstructor that only takes the transaction identifier and the maintenance, which will set theinfoTypetoInfoType#maintenance.EPPMaintenanceInfoResp(EPPTransId aTransId, List<EPPMaintenanceListItem> aListItems) EPPMaintenanceInfoRespconstructor that only takes the transaction identifier and the list of maintenance items, which will set theinfoTypetoEPPMaintenanceInfoResp.InfoType.list. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a maintenance item to the list of maintenance items.clone()CloneEPPMaintenanceInfoResp.protected voidDecode theEPPMaintenanceInfoRespattributes from the aElement DOM Element tree.protected ElementEncode a DOM Element tree from the attributes of theEPPMaintenanceInfoRespinstance.booleanCompare an instance ofEPPMaintenanceInfoRespwith this instance.Gets theinfoTypefor the info response.Gets the list of maintenance items.Gets the maintenance.Gets the EPP command namespace associated withEPPMaintenanceInfoResp.getType()Gets the EPP response type associated withEPPMaintenanceInfoResp.booleanIs there any maintenance list items set?booleanIs the maintenance defined?voidsetInfoType(EPPMaintenanceInfoResp.InfoType aInfoType) Sets theinfoTypefor the info response.voidsetListItems(List<EPPMaintenanceListItem> aListItmes) Sets the list of maintenance items.voidsetMaintenance(EPPMaintenanceItem aMaintenance) Sets the maintenance.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.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, hasExtension, hasExtensions, hasMessageQueue, hasMsgQueue, hasResultCode, isSuccess, setExtension, setExtensions, setMsgQueue, setResult, setResult, setResult, setResult, setResults, setTransId
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPMaintenanceInfoResp.- See Also:
-
ELM_NAME
XML root tag forEPPMaintenanceInfoResp.- See Also:
-
-
Constructor Details
-
EPPMaintenanceInfoResp
public EPPMaintenanceInfoResp()EPPMaintenanceInfoRespdefault constructor. TheinfoTypewill default toInfoType.list. -
EPPMaintenanceInfoResp
EPPMaintenanceInfoRespconstructor that only takes the transaction identifier.- Parameters:
aTransId- Transaction Id associated with response.
-
EPPMaintenanceInfoResp
EPPMaintenanceInfoRespconstructor that only takes the transaction identifier and the maintenance, which will set theinfoTypetoInfoType#maintenance.- Parameters:
aTransId- Transaction Id associated with command. Set tonullif a client transaction identifier is not desired.aMaintenance- Maintenance object
-
EPPMaintenanceInfoResp
EPPMaintenanceInfoRespconstructor that only takes the transaction identifier and the list of maintenance items, which will set theinfoTypetoEPPMaintenanceInfoResp.InfoType.list.- Parameters:
aTransId- Transaction Id associated with command. Set tonullif a client transaction identifier is not desired.aListItems- Maintenance list items
-
-
Method Details
-
getInfoType
Gets theinfoTypefor the info response.- Returns:
- the
infoTypefor the info response.
-
setInfoType
Sets theinfoTypefor the info response.- Parameters:
aInfoType- TheinfoTypefor the info response.
-
hastMaintenance
public boolean hastMaintenance()Is the maintenance defined?- Returns:
trueif the maintenance is defined;falseotherwise.
-
getMaintenance
Gets the maintenance.- Returns:
- The maintenance if defined;
nullotherwise.
-
setMaintenance
Sets the maintenance. When set to a non-nullvalue, theinfoTypeis set toInfoType.maintenance; otherwiseinfoTypeis set toInfoType.list.- Parameters:
aMaintenance- The maintenance.
-
hasListItems
public boolean hasListItems()Is there any maintenance list items set?- Returns:
trueif there is at least oneEPPMaintenanceListItemset;falseotherwise.
-
addListItem
Adds a maintenance item to the list of maintenance items.- Parameters:
aItem- maintenance item to add to the list of maintenance items.
-
getListItems
Gets the list of maintenance items.- Returns:
- The list of maintenance items if defined;
nullotherwise.
-
setListItems
Sets the list of maintenance items. When set to a non-nullvalue, theinfoTypeis set toInfoType.list; otherwiseinfoTypeis set toInfoType.maintenance.- Parameters:
aListItmes- the list items to set.
-
doEncode
Encode a DOM Element tree from the attributes of theEPPMaintenanceInfoRespinstance.- Overrides:
doEncodein classEPPResponse- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the EPPMaintenanceInfoResp instance.
- Throws:
EPPEncodeException- Unable to encode EPPMaintenanceInfoResp instance.
-
doDecode
Decode theEPPMaintenanceInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPMaintenanceInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPMaintenanceInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPMaintenanceInfoResp - Throws:
CloneNotSupportedException- standard Object.clone exception
-
getType
Gets the EPP response type associated withEPPMaintenanceInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPMaintenanceInfoResp.ELM_NAME
-
getNamespace
Gets the EPP command namespace associated withEPPMaintenanceInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPMaintenanceMapFactory.NS
-
equals
Compare an instance ofEPPMaintenanceInfoRespwith this instance.- Overrides:
equalsin classEPPResponse- Parameters:
aObject- Object to compare with.- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-