public class EPPRegistryDomainContact extends EPPRegistryMinMax
EPPRegistryMinMax.getMin()
and EPPRegistryMinMax.setMin(Integer)
to get and set this
element.EPPRegistryMinMax.getMax()
and EPPRegistryMinMax.setMax(Integer)
to get and set
this element.EPPRegistryDomain
,
Serialized FormModifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_TYPE
XML attribute name for the
type attribute. |
static java.lang.String |
ELM_NAME
XML Element Name of
EPPRegistryDomainContact root element. |
static java.lang.String |
TYPE_ADMIN
"admin" contact type
|
static java.lang.String |
TYPE_BILLING
"billing" contact type
|
static java.lang.String |
TYPE_TECH
"tech" contact type
|
static java.util.Set |
VALID_TYPES |
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH, elmMax, elmMin, max, min, rootName
Constructor and Description |
---|
EPPRegistryDomainContact()
Default constructor of EPPRegistryDomainContact.
|
EPPRegistryDomainContact(java.lang.String type,
java.lang.Integer min,
java.lang.Integer max)
Constructor an EPPRegistryDomainContact with type, min and max.
|
EPPRegistryDomainContact(java.lang.String type,
int min,
int max)
Constructor an EPPRegistryDomainContact with type, min and max.
|
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPRegistryDomainContact . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryDomainContact 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
EPPRegistryDomainContact instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryDomainContact compare. |
java.lang.String |
getRootName()
Return the root name of the XML element.
|
java.lang.String |
getType()
Get type of contact.
|
void |
setType(java.lang.String type)
Set type of contact.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
getElmMax, getElmMin, getMax, getMin, getNamespace, setElmMax, setElmMin, setMax, setMin, setRootName
public static final java.lang.String ELM_NAME
EPPRegistryDomainContact
root element.public static final java.lang.String ATTR_TYPE
type
attribute.public static final java.lang.String TYPE_ADMIN
public static final java.lang.String TYPE_BILLING
public static final java.lang.String TYPE_TECH
public static java.util.Set VALID_TYPES
public EPPRegistryDomainContact()
setType(String)
and EPPRegistryMinMax.setMin(Integer)
before calling encode(Document)
.public EPPRegistryDomainContact(java.lang.String type, java.lang.Integer min, java.lang.Integer max)
type
- type of contactmin
- minimum number of contact entries.max
- maximum number of contact entries.public EPPRegistryDomainContact(java.lang.String type, int min, int max)
type
- type of contactmin
- minimum number of contact entries.max
- maximum number of contact entries.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryDomainContact
instance.encode
in interface EPPCodecComponent
encode
in class EPPRegistryMinMax
aDocument
- DOM Document that is being built. Used as an Element factory.EPPRegistryDomainContact
instance.EPPEncodeException
- - Unable to encode EPPRegistryDomainContact
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPRegistryDomainContact
attributes from the aElement
DOM Element tree.decode
in interface EPPCodecComponent
decode
in class EPPRegistryMinMax
aElement
- Root DOM Element to decode EPPRegistryDomainContact
from.EPPDecodeException
- Unable to decode aElementpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryDomainContact
.clone
in interface EPPCodecComponent
clone
in class EPPRegistryMinMax
EPPRegistryDomainContact
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryDomainContact
compare.equals
in class EPPRegistryMinMax
aObject
- EPPRegistryDomainContact
instance to compare withtrue
if this object is the same as the aObject argument;
false
otherwisepublic java.lang.String getRootName()
getRootName
in class EPPRegistryMinMax
EPPRegistryDomainContact.ELM_NAME
public java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class EPPRegistryMinMax
String
if successful;
ERROR
otherwise.public java.lang.String getType()
public void setType(java.lang.String type)
type
- type of contactCopyright © VeriSign Inc. All Rights Reserved.