Class EPPMaintenanceInfoResp
- java.lang.Object
-
- com.verisign.epp.codec.gen.EPPResponse
-
- com.verisign.epp.codec.maintenance.v1_0.EPPMaintenanceInfoResp
-
- All Implemented Interfaces:
EPPCodecComponent,EPPMessage,java.io.Serializable,java.lang.Cloneable
public class EPPMaintenanceInfoResp extends EPPResponse
Response information associated with aEPPMaintenanceInfoCmdof typeEPPMaintenanceInfoCmd.InfoType.id, which will only include a single element, and of typeEPPMaintenanceInfoCmd.InfoType.idthat can include a list of zero or more maintenances items (EPPMaintenanceListItem).- See Also:
EPPMaintenanceInfoCmd, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPMaintenanceInfoResp.InfoTypeThe type of the info response, which is either the details of an individual maintenance withmaintenanceof a list of maintenance items withlist.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPMaintenanceInfoResp.static java.lang.StringELM_NAMEXML 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
Constructors Constructor Description EPPMaintenanceInfoResp()EPPMaintenanceInfoRespdefault 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, java.util.List<EPPMaintenanceListItem> aListItems)EPPMaintenanceInfoRespconstructor that only takes the transaction identifier and the list of maintenance items, which will set theinfoTypetoEPPMaintenanceInfoResp.InfoType.list.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddListItem(EPPMaintenanceListItem aItem)Adds a maintenance item to the list of maintenance items.java.lang.Objectclone()CloneEPPMaintenanceInfoResp.protected voiddoDecode(org.w3c.dom.Element aElement)Decode theEPPMaintenanceInfoRespattributes from the aElement DOM Element tree.protected org.w3c.dom.ElementdoEncode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPMaintenanceInfoRespinstance.booleanequals(java.lang.Object aObject)Compare an instance ofEPPMaintenanceInfoRespwith this instance.EPPMaintenanceInfoResp.InfoTypegetInfoType()Gets theinfoTypefor the info response.java.util.List<EPPMaintenanceListItem>getListItems()Gets the list of maintenance items.EPPMaintenanceItemgetMaintenance()Gets the maintenance.java.lang.StringgetNamespace()Gets the EPP command namespace associated withEPPMaintenanceInfoResp.java.lang.StringgetType()Gets the EPP response type associated withEPPMaintenanceInfoResp.booleanhasListItems()Is there any maintenance list items set?booleanhastMaintenance()Is the maintenance defined?voidsetInfoType(EPPMaintenanceInfoResp.InfoType aInfoType)Sets theinfoTypefor the info response.voidsetListItems(java.util.List<EPPMaintenanceListItem> aListItmes)Sets the list of maintenance items.voidsetMaintenance(EPPMaintenanceItem aMaintenance)Sets the maintenance.java.lang.StringtoString()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 Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPMaintenanceInfoResp.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPMaintenanceInfoResp.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPMaintenanceInfoResp
public EPPMaintenanceInfoResp()
EPPMaintenanceInfoRespdefault constructor. TheinfoTypewill default toInfoType.list.
-
EPPMaintenanceInfoResp
public EPPMaintenanceInfoResp(EPPTransId aTransId)
EPPMaintenanceInfoRespconstructor that only takes the transaction identifier.- Parameters:
aTransId- Transaction Id associated with response.
-
EPPMaintenanceInfoResp
public EPPMaintenanceInfoResp(EPPTransId aTransId, EPPMaintenanceItem aMaintenance)
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
public EPPMaintenanceInfoResp(EPPTransId aTransId, java.util.List<EPPMaintenanceListItem> aListItems)
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 Detail
-
getInfoType
public EPPMaintenanceInfoResp.InfoType getInfoType()
Gets theinfoTypefor the info response.- Returns:
- the
infoTypefor the info response.
-
setInfoType
public void setInfoType(EPPMaintenanceInfoResp.InfoType aInfoType)
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
public EPPMaintenanceItem getMaintenance()
Gets the maintenance.- Returns:
- The maintenance if defined;
nullotherwise.
-
setMaintenance
public void setMaintenance(EPPMaintenanceItem aMaintenance)
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
public void addListItem(EPPMaintenanceListItem aItem)
Adds a maintenance item to the list of maintenance items.- Parameters:
aItem- maintenance item to add to the list of maintenance items.
-
getListItems
public java.util.List<EPPMaintenanceListItem> getListItems()
Gets the list of maintenance items.- Returns:
- The list of maintenance items if defined;
nullotherwise.
-
setListItems
public void setListItems(java.util.List<EPPMaintenanceListItem> aListItmes)
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
protected org.w3c.dom.Element doEncode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
protected void doDecode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPMaintenanceInfoRespattributes from the aElement DOM Element tree.- Overrides:
doDecodein classEPPResponse- Parameters:
aElement- Root DOM Element to decodeEPPMaintenanceInfoRespfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPMaintenanceInfoResp.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPResponse- Returns:
- clone of
EPPMaintenanceInfoResp - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
getType
public java.lang.String getType()
Gets the EPP response type associated withEPPMaintenanceInfoResp.- Overrides:
getTypein classEPPResponse- Returns:
EPPMaintenanceInfoResp.ELM_NAME
-
getNamespace
public java.lang.String getNamespace()
Gets the EPP command namespace associated withEPPMaintenanceInfoResp.- Specified by:
getNamespacein interfaceEPPCodecComponent- Specified by:
getNamespacein interfaceEPPMessage- Overrides:
getNamespacein classEPPResponse- Returns:
EPPMaintenanceMapFactory.NS
-
equals
public boolean equals(java.lang.Object aObject)
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
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPResponse- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
-