Class EPPRegistrySupportedStatus
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistrySupportedStatus
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPRegistrySupportedStatus extends java.lang.Object implements EPPCodecComponent
This class holds aList
of supported status used inEPPRegistryDomain
,EPPRegistryHost
andEPPRegistryContact
, as per RFC 5731, 5732 and 5733, respectively.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
EPPRegistrySupportedStatus.Status
Constants for the supported statuses.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_LOCALNAME
XML local name forEPPRegistrySupportedStatus
.static java.lang.String
ELM_NAME
XML root tag forEPPRegistrySupportedStatus
.static java.lang.String
ELM_NAME_STATUS
XML Element Name ofstatus
attribute.
-
Constructor Summary
Constructors Constructor Description EPPRegistrySupportedStatus()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addStatus(java.lang.String status)
Add one status to an existingList
.java.lang.Object
clone()
CloneEPPRegistrySupportedStatus
.void
decode(org.w3c.dom.Element aElement)
Decode theEPPRegistrySupportedStatus
attributes from the aElement DOM Element tree.org.w3c.dom.Element
encode(org.w3c.dom.Document aDocument)
Encode a DOM Element tree from the attributes of theEPPRegistrySupportedStatus
instance.boolean
equals(java.lang.Object aObject)
implements a deepEPPRegistrySupportedStatus
compare.java.lang.String
getNamespace()
Returns the XML namespace associated with theEPPCodecComponent
.java.util.List
getStatuses()
Gets theList
of statuses.boolean
hasStatuses()
Is there any statuses set?void
setStatuses(java.util.List statuses)
Sets theList
of statuses.java.lang.String
toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistrySupportedStatus
.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistrySupportedStatus
.- See Also:
- Constant Field Values
-
ELM_NAME_STATUS
public static final java.lang.String ELM_NAME_STATUS
XML Element Name ofstatus
attribute.- See Also:
- Constant Field Values
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPRegistrySupportedStatus
instance.- Specified by:
encode
in interfaceEPPCodecComponent
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistrySupportedStatus
instance. - Throws:
EPPEncodeException
- - Unable to encodeEPPRegistrySupportedStatus
instance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPRegistrySupportedStatus
attributes from the aElement DOM Element tree.- Specified by:
decode
in interfaceEPPCodecComponent
- Parameters:
aElement
- Root DOM Element to decodeEPPRegistrySupportedStatus
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPRegistrySupportedStatus
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in 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 deepEPPRegistrySupportedStatus
compare.- Overrides:
equals
in classjava.lang.Object
- Parameters:
aObject
-EPPRegistrySupportedStatus
instance to compare with- Returns:
true
if this object is the same as the aObject argument;false
otherwise
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classjava.lang.Object
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
hasStatuses
public boolean hasStatuses()
Is there any statuses set?- Returns:
true
if there is at least one status set.
-
getStatuses
public java.util.List getStatuses()
Gets theList
of statuses.- Returns:
List
of statuses inString
-
setStatuses
public void setStatuses(java.util.List statuses)
Sets theList
of statuses.- Parameters:
statuses
-List
of 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:
getNamespace
in interfaceEPPCodecComponent
- Returns:
- XML namespace for the
EPPCodecComponent
.
-
-