Class EPPMaintenanceInfoResp

    • Field Detail

      • ELM_LOCALNAME

        public static final java.lang.String ELM_LOCALNAME
        XML local name for EPPMaintenanceInfoResp.
        See Also:
        Constant Field Values
      • ELM_NAME

        public static final java.lang.String ELM_NAME
        XML root tag for EPPMaintenanceInfoResp.
        See Also:
        Constant Field Values
    • Constructor Detail

      • EPPMaintenanceInfoResp

        public EPPMaintenanceInfoResp()
        EPPMaintenanceInfoResp default constructor. The will default to InfoType.list.
      • EPPMaintenanceInfoResp

        public EPPMaintenanceInfoResp​(EPPTransId aTransId)
        EPPMaintenanceInfoResp constructor that only takes the transaction identifier.
        Parameters:
        aTransId - Transaction Id associated with response.
      • EPPMaintenanceInfoResp

        public EPPMaintenanceInfoResp​(EPPTransId aTransId,
                                      EPPMaintenanceItem aMaintenance)
        EPPMaintenanceInfoResp constructor that only takes the transaction identifier and the maintenance, which will set the infoType to InfoType#maintenance.
        Parameters:
        aTransId - Transaction Id associated with command. Set to null if a client transaction identifier is not desired.
        aMaintenance - Maintenance object
      • EPPMaintenanceInfoResp

        public EPPMaintenanceInfoResp​(EPPTransId aTransId,
                                      java.util.List<EPPMaintenanceListItem> aListItems)
        EPPMaintenanceInfoResp constructor that only takes the transaction identifier and the list of maintenance items, which will set the infoType to EPPMaintenanceInfoResp.InfoType.list.
        Parameters:
        aTransId - Transaction Id associated with command. Set to null if a client transaction identifier is not desired.
        aListItems - Maintenance list items
    • Method Detail

      • setInfoType

        public void setInfoType​(EPPMaintenanceInfoResp.InfoType aInfoType)
        Sets the infoType for the info response.
        Parameters:
        aInfoType - The infoType for the info response.
      • hastMaintenance

        public boolean hastMaintenance()
        Is the maintenance defined?
        Returns:
        true if the maintenance is defined; false otherwise.
      • getMaintenance

        public EPPMaintenanceItem getMaintenance()
        Gets the maintenance.
        Returns:
        The maintenance if defined; null otherwise.
      • setMaintenance

        public void setMaintenance​(EPPMaintenanceItem aMaintenance)
        Sets the maintenance. When set to a non-null value, the infoType is set to InfoType.maintenance; otherwise infoType is set to InfoType.list.
        Parameters:
        aMaintenance - The maintenance.
      • hasListItems

        public boolean hasListItems()
        Is there any maintenance list items set?
        Returns:
        true if there is at least one EPPMaintenanceListItem set; false otherwise.
      • 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; null otherwise.
      • setListItems

        public void setListItems​(java.util.List<EPPMaintenanceListItem> aListItmes)
        Sets the list of maintenance items. When set to a non-null value, the infoType is set to InfoType.list; otherwise infoType is set to InfoType.maintenance.
        Parameters:
        aListItmes - the list items to set.
      • doEncode

        protected org.w3c.dom.Element doEncode​(org.w3c.dom.Document aDocument)
                                        throws EPPEncodeException
        Encode a DOM Element tree from the attributes of the EPPMaintenanceInfoResp instance.
        Overrides:
        doEncode in class EPPResponse
        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 EPPDecodeException
        Decode the EPPMaintenanceInfoResp attributes from the aElement DOM Element tree.
        Overrides:
        doDecode in class EPPResponse
        Parameters:
        aElement - Root DOM Element to decode EPPMaintenanceInfoResp from.
        Throws:
        EPPDecodeException - Unable to decode aElement
      • clone

        public java.lang.Object clone()
                               throws java.lang.CloneNotSupportedException
        Clone EPPMaintenanceInfoResp.
        Specified by:
        clone in interface EPPCodecComponent
        Overrides:
        clone in class EPPResponse
        Returns:
        clone of EPPMaintenanceInfoResp
        Throws:
        java.lang.CloneNotSupportedException - standard Object.clone exception
      • getType

        public java.lang.String getType()
        Gets the EPP response type associated with EPPMaintenanceInfoResp.
        Overrides:
        getType in class EPPResponse
        Returns:
        EPPMaintenanceInfoResp.ELM_NAME
      • equals

        public boolean equals​(java.lang.Object aObject)
        Compare an instance of EPPMaintenanceInfoResp with this instance.
        Overrides:
        equals in class EPPResponse
        Parameters:
        aObject - Object to compare with.
        Returns:
        true if this object is the same as the aObject argument; false otherwise
      • toString

        public java.lang.String toString()
        Implementation of Object.toString, which will result in an indented XML String representation of the concrete EPPCodecComponent.
        Overrides:
        toString in class EPPResponse
        Returns:
        Indented XML String if successful; ERROR otherwise.