Class EPPRegistryReservedNames
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryReservedNames
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPRegistryReservedNames extends java.lang.Object implements EPPCodecComponent
EPPRegistryReservedNamesdefines the set of reserved domain names starting from that label level. The reserved names can refer to values with more than one level which is relative to the level of the parent <registry:domainName> element.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPRegistryReservedNames.static java.lang.StringELM_NAMEXML root tag forEPPRegistryReservedNames.
-
Constructor Summary
Constructors Constructor Description EPPRegistryReservedNames()Default constructor.EPPRegistryReservedNames(java.lang.String aReservedNameURI)EPPRegistryReservedNamesconstructor that takes the external reserved name URI.EPPRegistryReservedNames(java.util.List<java.lang.String> aReservedNames)EPPRegistryReservedNamesconstructor that takes the list of reserved names.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddReservedName(java.lang.String aReservedName)Add a reserved name relative to the zone to the list of reserved names.java.lang.Objectclone()CloneEPPRegistryZoneInfo.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryReservedNamesattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryReservedNamesinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryReservedNamescompare.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.util.List<java.lang.String>getReservedNames()Gets the reserved names.java.lang.StringgetReservedNameURI()Gets the URI to an externally defined list of reserved domain names relative to the level of the zone.booleanhasReservedNames()Is the reserved name list defined?booleanhasReservedNameURI()Is the reserved name URI defined?voidsetReservedNames(java.util.List<java.lang.String> aReservedNames)Sets the reserved names.voidsetReservedNameURI(java.lang.String aReservedNameURI)Sets the URI to an externally defined list of reserved domain names relative to the level of the zone.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryReservedNames.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryReservedNames.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryReservedNames
public EPPRegistryReservedNames()
Default constructor.
-
EPPRegistryReservedNames
public EPPRegistryReservedNames(java.util.List<java.lang.String> aReservedNames)
EPPRegistryReservedNamesconstructor that takes the list of reserved names.- Parameters:
aReservedNames- List of reserved names relative to the level of the zone.
-
EPPRegistryReservedNames
public EPPRegistryReservedNames(java.lang.String aReservedNameURI)
EPPRegistryReservedNamesconstructor that takes the external reserved name URI.- Parameters:
aReservedNameURI- URI to an externally defined list of reserved domain names relative to the level of the zone. Set tonullto clear the URI.
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistryReservedNamesinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryReservedNamesinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryReservedNamesinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryReservedNamesattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryReservedNamesfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryReservedNamescompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPRegistryReservedNamesinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryZoneInfo.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPRegistryZoneInfo - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
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.
-
hasReservedNames
public boolean hasReservedNames()
Is the reserved name list defined?- Returns:
trueif the reserved name list is defined;falseotherwise.
-
getReservedNames
public java.util.List<java.lang.String> getReservedNames()
Gets the reserved names.- Returns:
- Reserved names if defined;
nullotherwise.
-
setReservedNames
public void setReservedNames(java.util.List<java.lang.String> aReservedNames)
Sets the reserved names.- Parameters:
aReservedNames- List of reserved names relative to the zone.
-
addReservedName
public void addReservedName(java.lang.String aReservedName)
Add a reserved name relative to the zone to the list of reserved names.- Parameters:
aReservedName- Reserved name to add to the list of reserved names.
-
hasReservedNameURI
public boolean hasReservedNameURI()
Is the reserved name URI defined?- Returns:
trueif the reserved name URI is defined;falseotherwise.
-
getReservedNameURI
public java.lang.String getReservedNameURI()
Gets the URI to an externally defined list of reserved domain names relative to the level of the zone.- Returns:
- URI to an externally defined list of reserved domain names
relative to the level of the zone if defined;
nullotherwise.
-
setReservedNameURI
public void setReservedNameURI(java.lang.String aReservedNameURI)
Sets the URI to an externally defined list of reserved domain names relative to the level of the zone.- Parameters:
aReservedNameURI- URI to an externally defined list of reserved domain names relative to the level of the zone. Set tonullto clear the URI.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-