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.String
ELM_NAME
Element tag name for the infData
-
Constructor Summary
Constructors Constructor Description EPPRgpExtInfData()
Instantiate a new instance of EPPRgpExtInfDataEPPRgpExtInfData(EPPRgpExtStatus aStatus)
Creates a new instance of theEPPRgpExtInfData
with a status element.EPPRgpExtInfData(java.util.Vector aStatuses)
Creates a new instance of theEPPRgpExtInfData
with aVector
of status elements.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description void
addStatus(EPPRgpExtStatus aStatus)
Adds the status of typeEPPRgpExtStatus
to theVector
of statuses.java.lang.Object
clone()
CloneEPPRgpExtInfData
.void
decode(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.Element
encode(org.w3c.dom.Document aDocument)
Append all data from this RGP inf data to the given DOM Documentboolean
equals(java.lang.Object aObject)
implements a deepEPPRgpExtInfData
compare.java.lang.String
getNamespace()
The namespace associated with this RGP inf data.EPPRgpExtStatus
getStatus()
Gets the first status if there is one;null
otherwise.java.util.Vector
getStatuses()
Gets theVector
of statuses of typeEPPRgpExtStatus
.void
setStatus(EPPRgpExtStatus aStatus)
Deprecated.void
setStatuses(java.util.Vector aStatuses)
Sets theVector
of 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 theEPPRgpExtInfData
with a status element.- Parameters:
aStatus
- Associated status element.
-
EPPRgpExtInfData
public EPPRgpExtInfData(java.util.Vector aStatuses)
Creates a new instance of theEPPRgpExtInfData
with aVector
of status elements.- Parameters:
aStatuses
-Vector
ofEPPRgpExtStatus
status elements. Only a non-null
value will be used.
-
-
Method Detail
-
getNamespace
public java.lang.String getNamespace()
The namespace associated with this RGP inf data.- Specified by:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- The namespace associated with RGP component
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Append all data from this RGP inf data to the given DOM Document- Specified by:
encode
in 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 EPPDecodeException
Populate the data of this instance with the data stored in the given Element of the DOM tree- Specified by:
decode
in 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 deepEPPRgpExtInfData
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPRgpExtInfData
instance to compare with- Returns:
- true if equal false otherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPRgpExtInfData
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in 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;null
otherwise.- Returns:
- First status of type
EPPRgpExtStatus
if set;null
otherwise.
-
setStatus
@Deprecated public void setStatus(EPPRgpExtStatus aStatus)
Deprecated.Adds the status of typeEPPRgpExtStatus
to theVector
of statuses.- Parameters:
aStatus
- Adds the status to the statuses
-
addStatus
public void addStatus(EPPRgpExtStatus aStatus)
Adds the status of typeEPPRgpExtStatus
to theVector
of statuses.- Parameters:
aStatus
- Status to add
-
getStatuses
public java.util.Vector getStatuses()
Gets theVector
of statuses of typeEPPRgpExtStatus
.- Returns:
- Non-
null
Vector
ofEPPRgpExtStatus
instances.
-
setStatuses
public void setStatuses(java.util.Vector aStatuses)
Sets theVector
of statuses of typeEPPRgpExtStatus
.- Parameters:
aStatuses
- Statuses to use. Ifnull
the parameter will be ignored.
-
-