|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.registry.EPPRegistryDomainName
public class EPPRegistryDomainName
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
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.getOnlyDnsChars()
and
setOnlyDnsChars(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 FormConstructor Summary | |
---|---|
EPPRegistryDomainName()
|
Method Summary | |
---|---|
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 |
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.Boolean |
getOnlyDnsChars()
Get whether to limit only DNS characters in the domain name. |
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. |
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 |
setOnlyDnsChars(java.lang.Boolean onlyDnsChars)
Set whether to limit only DNS characters in the 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. |
java.lang.String |
toString()
Implementation of Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public EPPRegistryDomainName()
Method Detail |
---|
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 with
true
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 getOnlyDnsChars()
true
allow only DNS characters (alphanumeric and '-') in
the domain name. false
allow non-DNS characters in the
domain namepublic void setOnlyDnsChars(java.lang.Boolean onlyDnsChars)
onlyDnsChars
- true
allow only DNS characters (alphanumeric and '-')
in the domain name. false
allow non-DNS characters in
the domain namepublic 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
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |