public class EPPRegistryDomainName extends java.lang.Object implements EPPCodecComponent
getMinLength()
and setMinLength(Integer)
to
get and set the element.getMaxLength()
and setMaxLength(Integer)
to
get and set the element.getAlphaNumStart()
and setAlphaNumStart(Boolean)
to get
and set the element.getAlphaNumEnd()
and setAlphaNumEnd(Boolean)
to get and set the element.getALabelSupported()
and setALabelSupported(Boolean)
to get
and set the element.getULabelSupported()
and setULabelSupported(Boolean)
to get
and set the element.getRegex()
and
setRegex(List)
to get and set the element.getReservedNames()
and
setReservedNames(EPPRegistryReservedNames)
to get and set the
element.EPPRegistryDomain
,
EPPRegistryReservedNames
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPRegistryDomainName . |
static java.lang.String |
ELM_NAME
XML root tag for
EPPRegistryDomainName . |
Constructor and Description |
---|
EPPRegistryDomainName() |
Modifier and Type | Method and Description |
---|---|
void |
addRegex(EPPRegistryRegex re)
Append one instance of
EPPRegistryRegex to the existing
List . |
java.lang.Object |
clone()
Clone
EPPRegistryDomainName . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryDomainName 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 the
EPPRegistryDomainName instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryDomainName compare. |
java.lang.Boolean |
getALabelSupported()
Get whether ASCII domain names are supported.
|
java.lang.Boolean |
getAlphaNumEnd()
Get whether or not to allow domain name end with an alphanumeric
character.
|
java.lang.Boolean |
getAlphaNumStart()
Get whether or not to allow domain name start with an alphanumeric
character.
|
java.lang.Integer |
getLevel()
Get the level of domain name.
|
java.lang.Integer |
getMaxLength()
Get maximum number of characters in a domain name.
|
java.lang.Integer |
getMinLength()
Get minimum number of characters in a domain name.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent . |
java.util.List |
getRegex()
Get the
List of EPPRegistryRegex regular expressions that
domain name must follow. |
EPPRegistryReservedNames |
getReservedNames()
Get the instance of
EPPRegistryReservedNames that defines a set of
reserved domain names. |
java.lang.Boolean |
getULabelSupported()
Get whether non-ASCII domain names are supported.
|
void |
setALabelSupported(java.lang.Boolean aALabelSupported)
Set whether whether ASCII domain names are supported.
|
void |
setAlphaNumEnd(java.lang.Boolean alphaNumEnd)
Set whether or not to allow domain name end with an alphanumeric
character.
|
void |
setAlphaNumStart(java.lang.Boolean alphaNumStart)
Set whether or not to allow domain name start with an alphanumeric
character.
|
void |
setLevel(java.lang.Integer level)
Set the level of domain name.
|
void |
setMaxLength(java.lang.Integer maxLength)
Set maximum number of characters in a domain name.
|
void |
setMinLength(java.lang.Integer minLength)
Set minimum number of characters in a domain name.
|
void |
setRegex(java.util.List regex)
Set the
List of EPPRegistryRegex regular expressions that
domain name must follow. |
void |
setReservedNames(EPPRegistryReservedNames reservedNames)
Set the instance of
EPPRegistryReservedNames that defines a set of
reserved domain names. |
void |
setULabelSupported(java.lang.Boolean aULabelSupported)
Set whether non-ASCII domain names are supported.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
public static final java.lang.String ELM_LOCALNAME
EPPRegistryDomainName
.public static final java.lang.String ELM_NAME
EPPRegistryDomainName
.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryDomainName
instance.encode
in interface EPPCodecComponent
aDocument
- DOM Document that is being built. Used as an Element factory.EPPRegistryDomainName
instance.EPPEncodeException
- - Unable to encode EPPRegistryDomainName
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPRegistryDomainName
attributes from the aElement DOM
Element tree.decode
in interface EPPCodecComponent
aElement
- Root DOM Element to decode EPPRegistryDomainName
from.EPPDecodeException
- Unable to decode aElementpublic boolean equals(java.lang.Object aObject)
EPPRegistryDomainName
compare.equals
in class java.lang.Object
aObject
- EPPRegistryDomainName
instance to compare withtrue
if this object is the same as the aObject argument;
false
otherwisepublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryDomainName
.clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPRegistryDomainName
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class java.lang.Object
String
if successful; ERROR
otherwise.public java.lang.Integer getLevel()
public void setLevel(java.lang.Integer level)
level
- level of domain name. Must be >= 2public java.lang.Integer getMinLength()
public void setMinLength(java.lang.Integer minLength)
minLength
- minimum number of characters in a domain namepublic java.lang.Integer getMaxLength()
public void setMaxLength(java.lang.Integer maxLength)
maxLength
- maximum number of characters in a domain namepublic java.lang.Boolean getAlphaNumStart()
true
allow domain name start with an alphanumeric
character. false
do not allow domain name start with an
alphanumeric characterpublic void setAlphaNumStart(java.lang.Boolean alphaNumStart)
alphaNumStart
- true
allow domain name start with an alphanumeric
character. false
do not allow domain name start with an
alphanumeric characterpublic java.lang.Boolean getAlphaNumEnd()
true
allow domain name end with an alphanumeric character.
false
do not allow domain name end with an alphanumeric
characterpublic void setAlphaNumEnd(java.lang.Boolean alphaNumEnd)
alphaNumEnd
- true
allow domain name end with an alphanumeric
character. false
do not allow domain name end with an
alphanumeric characterpublic java.lang.Boolean getALabelSupported()
true
if ASCII domain names are supported; false
otherwise.public void setALabelSupported(java.lang.Boolean aALabelSupported)
aALabelSupported
- true
ASCII domain names are supported; false
otherwise.public java.lang.Boolean getULabelSupported()
true
if non-ASCII domain names are supported; false
otherwise.public void setULabelSupported(java.lang.Boolean aULabelSupported)
aULabelSupported
- true
non-ASCII domain names are supported; false
otherwise.public java.util.List getRegex()
List
of EPPRegistryRegex
regular expressions that
domain name must follow.List
of EPPRegistryRegex
regular expressionspublic void addRegex(EPPRegistryRegex re)
EPPRegistryRegex
to the existing
List
.re
- instance of EPPRegistryRegex
public void setRegex(java.util.List regex)
List
of EPPRegistryRegex
regular expressions that
domain name must follow.regex
- List
of EPPRegistryRegex
regular expressionspublic EPPRegistryReservedNames getReservedNames()
EPPRegistryReservedNames
that defines a set of
reserved domain names.EPPRegistryReservedNames
public void setReservedNames(EPPRegistryReservedNames reservedNames)
EPPRegistryReservedNames
that defines a set of
reserved domain names.reservedNames
- instance of EPPRegistryReservedNames
public java.lang.String getNamespace()
EPPCodecComponent
.getNamespace
in interface EPPCodecComponent
EPPCodecComponent
.