Package com.verisign.epp.codec.rgpext
Class EPPRgpExtInfData
- java.lang.Object
-
- com.verisign.epp.codec.rgpext.EPPRgpExtInfData
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRgpExtInfData extends java.lang.Object implements EPPCodecComponent
The EPPRgpExtInfData is the EPPCodecComponent that knows how to encode and decode RGP infData elements from/to XML and object instance.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_NAMEElement tag name for the infData
-
Constructor Summary
Constructors Constructor Description EPPRgpExtInfData()Instantiate a new instance of EPPRgpExtInfDataEPPRgpExtInfData(EPPRgpExtStatus aStatus)Creates a new instance of theEPPRgpExtInfDatawith a status element.EPPRgpExtInfData(java.util.Vector aStatuses)Creates a new instance of theEPPRgpExtInfDatawith aVectorof status elements.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description voidaddStatus(EPPRgpExtStatus aStatus)Adds the status of typeEPPRgpExtStatusto theVectorof statuses.java.lang.Objectclone()CloneEPPRgpExtInfData.voiddecode(org.w3c.dom.Element aElement)Populate the data of this instance with the data stored in the given Element of the DOM treeorg.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Append all data from this RGP inf data to the given DOM Documentbooleanequals(java.lang.Object aObject)implements a deepEPPRgpExtInfDatacompare.java.lang.StringgetNamespace()The namespace associated with this RGP inf data.EPPRgpExtStatusgetStatus()Gets the first status if there is one;nullotherwise.java.util.VectorgetStatuses()Gets theVectorof statuses of typeEPPRgpExtStatus.voidsetStatus(EPPRgpExtStatus aStatus)Deprecated.voidsetStatuses(java.util.Vector aStatuses)Sets theVectorof statuses of typeEPPRgpExtStatus.
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
Element tag name for the infData- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRgpExtInfData
public EPPRgpExtInfData()
Instantiate a new instance of EPPRgpExtInfData
-
EPPRgpExtInfData
public EPPRgpExtInfData(EPPRgpExtStatus aStatus)
Creates a new instance of theEPPRgpExtInfDatawith a status element.- Parameters:
aStatus- Associated status element.
-
EPPRgpExtInfData
public EPPRgpExtInfData(java.util.Vector aStatuses)
Creates a new instance of theEPPRgpExtInfDatawith aVectorof status elements.- Parameters:
aStatuses-VectorofEPPRgpExtStatusstatus elements. Only a non-nullvalue will be used.
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
The namespace associated with this RGP inf data.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- The namespace associated with RGP component
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionAppend all data from this RGP inf data to the given DOM Document- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- The DOM Document to append data to- Returns:
- Encoded DOM
Element - Throws:
EPPEncodeException- Thrown when errors occur during the encode attempt or if the instance is invalid.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionPopulate the data of this instance with the data stored in the given Element of the DOM tree- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- The root element of the report fragment of XML- Throws:
EPPDecodeException- Thrown if any errors occur during decoding.
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRgpExtInfDatacompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRgpExtInfDatainstance to compare with- Returns:
- true if equal false otherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRgpExtInfData.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRgpExtInfData - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
getStatus
public EPPRgpExtStatus getStatus()
Gets the first status if there is one;nullotherwise.- Returns:
- First status of type
EPPRgpExtStatusif set;nullotherwise.
-
setStatus
@Deprecated public void setStatus(EPPRgpExtStatus aStatus)
Deprecated.Adds the status of typeEPPRgpExtStatusto theVectorof statuses.- Parameters:
aStatus- Adds the status to the statuses
-
addStatus
public void addStatus(EPPRgpExtStatus aStatus)
Adds the status of typeEPPRgpExtStatusto theVectorof statuses.- Parameters:
aStatus- Status to add
-
getStatuses
public java.util.Vector getStatuses()
Gets theVectorof statuses of typeEPPRgpExtStatus.- Returns:
- Non-
nullVectorofEPPRgpExtStatusinstances.
-
setStatuses
public void setStatuses(java.util.Vector aStatuses)
Sets theVectorof statuses of typeEPPRgpExtStatus.- Parameters:
aStatuses- Statuses to use. Ifnullthe parameter will be ignored.
-
-