Class EPPRegistryDomainName
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryDomainName
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
This class is encoded to the <registry:domainName> element inside the
<registry:domain> element. It represents policies for a domain name
label for a specific level, defined with the "level" attribute, with a
minimum value of "2" for the second level domain name label level. The
<registry:domainName> element contains the following child elements
- <registry:minLength> - An OPTIONAL minimum length of the domain
name label. Use
getMinLength()andsetMinLength(Integer)to get and set the element. - <registry:maxLength> - An OPTIONAL maximum length of the domain
name label. Use
getMaxLength()andsetMaxLength(Integer)to get and set the element. - <registry:alphaNumStart> - An OPTIONAL flag indicating whether the
label must start with an alphanumeric character with a default of "false".
Use
getAlphaNumStart()andsetAlphaNumStart(Boolean)to get and set the element. - <registry:alphaNumEnd> - An OPTIONAL flag indicating whether the
label must end with an alphanumeric character with a default value of
"false". Use
getAlphaNumEnd()andsetAlphaNumEnd(Boolean)to get and set the element. - <registry:aLabelSupported> - An OPTIONAL flag indicating whether
ASCII domain names are supported with a default value of "true". Use
getALabelSupported()andsetALabelSupported(Boolean)to get and set the element. - <registry:uLabelSupported> - An OPTIONAL flag indicating whether
non-ASCII domain names are supported with a default value of "false". Use
getULabelSupported()andsetULabelSupported(Boolean)to get and set the element. - <registry:nameRegex> - The OPTIONAL regular expression used to
validate the domain name label. Use
getNameRegex()andsetNameRegex(EPPRegistryRegex)to get and set the element. - <registry:reservedNames> - An OPTIONAL element that defines 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. Use
getReservedNames()andsetReservedNames(EPPRegistryReservedNames)to get and set the element.
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryDomainName.voidDecode theEPPRegistryDomainNameattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryDomainNameinstance.booleanimplements a deepEPPRegistryDomainNamecompare.Get whether ASCII domain names are supported.Get whether or not to allow domain name end with an alphanumeric character.Get whether or not to allow domain name start with an alphanumeric character.getLevel()Get the level of domain name.Get maximum number of characters in a domain name.Get minimum number of characters in a domain name.Get the regular expression that domain name must follow.Returns the XML namespace associated with theEPPCodecComponent.Get the instance ofEPPRegistryReservedNamesthat defines a set of reserved domain names.Get whether non-ASCII domain names are supported.booleanIs the domain name regular expression defined?voidsetALabelSupported(Boolean aALabelSupported) Set whether whether ASCII domain names are supported.voidsetAlphaNumEnd(Boolean alphaNumEnd) Set whether or not to allow domain name end with an alphanumeric character.voidsetAlphaNumStart(Boolean alphaNumStart) Set whether or not to allow domain name start with an alphanumeric character.voidSet the level of domain name.voidsetMaxLength(Integer maxLength) Set maximum number of characters in a domain name.voidsetMinLength(Integer minLength) Set minimum number of characters in a domain name.voidsetNameRegex(EPPRegistryRegex aNameRegex) Set the regular expression that domain name must follow.voidsetReservedNames(EPPRegistryReservedNames reservedNames) Set the instance ofEPPRegistryReservedNamesthat defines a set of reserved domain names.voidsetULabelSupported(Boolean aULabelSupported) Set whether non-ASCII domain names are supported.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryDomainName.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryDomainName.- See Also:
-
-
Constructor Details
-
EPPRegistryDomainName
public EPPRegistryDomainName()
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryDomainNameinstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryDomainNameinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryDomainNameinstance.
-
decode
Decode theEPPRegistryDomainNameattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPRegistryDomainNamefrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
implements a deepEPPRegistryDomainNamecompare. -
clone
CloneEPPRegistryDomainName.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPRegistryDomainName - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getLevel
Get the level of domain name.- Returns:
- level of domain name. Must be >= 2
-
setLevel
Set the level of domain name.- Parameters:
level- level of domain name. Must be >= 2
-
getMinLength
Get minimum number of characters in a domain name.- Returns:
- minimum number of characters in a domain name
-
setMinLength
Set minimum number of characters in a domain name.- Parameters:
minLength- minimum number of characters in a domain name
-
getMaxLength
Get maximum number of characters in a domain name.- Returns:
- maximum number of characters in a domain name
-
setMaxLength
Set maximum number of characters in a domain name.- Parameters:
maxLength- maximum number of characters in a domain name
-
getAlphaNumStart
Get whether or not to allow domain name start with an alphanumeric character.- Returns:
trueallow domain name start with an alphanumeric character.falsedo not allow domain name start with an alphanumeric character
-
setAlphaNumStart
Set whether or not to allow domain name start with an alphanumeric character.- Parameters:
alphaNumStart-trueallow domain name start with an alphanumeric character.falsedo not allow domain name start with an alphanumeric character
-
getAlphaNumEnd
Get whether or not to allow domain name end with an alphanumeric character.- Returns:
trueallow domain name end with an alphanumeric character.falsedo not allow domain name end with an alphanumeric character
-
setAlphaNumEnd
Set whether or not to allow domain name end with an alphanumeric character.- Parameters:
alphaNumEnd-trueallow domain name end with an alphanumeric character.falsedo not allow domain name end with an alphanumeric character
-
getALabelSupported
Get whether ASCII domain names are supported.- Returns:
trueif ASCII domain names are supported;falseotherwise.
-
setALabelSupported
Set whether whether ASCII domain names are supported.- Parameters:
aALabelSupported-trueASCII domain names are supported;falseotherwise.
-
getULabelSupported
Get whether non-ASCII domain names are supported.- Returns:
trueif non-ASCII domain names are supported;falseotherwise.
-
setULabelSupported
Set whether non-ASCII domain names are supported.- Parameters:
aULabelSupported-truenon-ASCII domain names are supported;falseotherwise.
-
hasNameRegex
public boolean hasNameRegex()Is the domain name regular expression defined?- Returns:
trueif the domain name regular expression is defined;falseotherwise.
-
getNameRegex
Get the regular expression that domain name must follow.- Returns:
- Regular expression if defined;
nullotherwise.
-
setNameRegex
Set the regular expression that domain name must follow.- Parameters:
aNameRegex- Regular expression for the domain name label. Set tonullto unset it.
-
getReservedNames
Get the instance ofEPPRegistryReservedNamesthat defines a set of reserved domain names.- Returns:
- instance of
EPPRegistryReservedNames
-
setReservedNames
Set the instance ofEPPRegistryReservedNamesthat defines a set of reserved domain names.- Parameters:
reservedNames- instance ofEPPRegistryReservedNames
-
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-