Package com.verisign.epp.codec.registry
Class EPPRegistrySupportedStatus
- java.lang.Object
-
- com.verisign.epp.codec.registry.EPPRegistrySupportedStatus
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistrySupportedStatus extends java.lang.Object implements EPPCodecComponent
This class holds aListof supported status used inEPPRegistryDomain,EPPRegistryHostandEPPRegistryContact, as per RFC 5731, 5732 and 5733, respectively.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classEPPRegistrySupportedStatus.StatusDefines constants for statuses.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_NAMEXML Element Name ofEPPRegistrySupportedStatusroot element.static java.lang.StringELM_NAME_STATUSXML Element Name ofstatusattribute.
-
Constructor Summary
Constructors Constructor Description EPPRegistrySupportedStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddStatus(java.lang.String status)Add one status to an existingList.java.lang.Objectclone()CloneEPPRegistrySupportedStatus.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistrySupportedStatusattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistrySupportedStatusinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistrySupportedStatuscompare.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.util.ListgetStatuses()Gets theListof statuses.voidsetStatuses(java.util.List statuses)Sets theListof statuses.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML Element Name ofEPPRegistrySupportedStatusroot element.- See Also:
- Constant Field Values
-
ELM_NAME_STATUS
public static final java.lang.String ELM_NAME_STATUS
XML Element Name ofstatusattribute.- See Also:
- Constant Field Values
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistrySupportedStatusinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistrySupportedStatusinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistrySupportedStatusinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistrySupportedStatusattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistrySupportedStatusfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistrySupportedStatus.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistrySupportedStatus - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistrySupportedStatuscompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistrySupportedStatusinstance 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 classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getStatuses
public java.util.List getStatuses()
Gets theListof statuses.- Returns:
Listof statuses inString
-
setStatuses
public void setStatuses(java.util.List statuses)
Sets theListof statuses.- Parameters:
statuses-Listof statuses inString
-
addStatus
public void addStatus(java.lang.String status)
Add one status to an existingList.- Parameters:
status- statusString
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-