|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.verisign.epp.codec.registry.EPPRegistryMinMax
com.verisign.epp.codec.registry.EPPRegistryDomainContact
public class EPPRegistryDomainContact
Defines the miniumum and maximum numbers of contacts by contact type. The
contact type is defined with the required "type" attribute with the possible
values of "admin", "tech", and "billing". The <registry:contact>
element contains the following child elements
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 Form| Field Summary | |
|---|---|
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
|
| Fields inherited from class com.verisign.epp.codec.registry.EPPRegistryMinMax |
|---|
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH, elmMax, elmMin, max, min, rootName |
| Constructor Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.verisign.epp.codec.registry.EPPRegistryMinMax |
|---|
getElmMax, getElmMin, getMax, getMin, setElmMax, setElmMin, setMax, setMin, setRootName |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
EPPRegistryDomainContact instance.
encode in interface EPPCodecComponentencode in class EPPRegistryMinMaxaDocument - 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 EPPCodecComponentdecode in class EPPRegistryMinMaxaElement - Root DOM Element to decode EPPRegistryDomainContact
from.
EPPDecodeException - Unable to decode aElement
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPRegistryDomainContact.
clone in interface EPPCodecComponentclone in class EPPRegistryMinMaxEPPRegistryDomainContact
java.lang.CloneNotSupportedException - standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryDomainContact compare.
equals in class EPPRegistryMinMaxaObject - EPPRegistryDomainContact instance to compare with
true if this object is the same as the aObject argument;
false otherwisepublic java.lang.String getRootName()
getRootName in class EPPRegistryMinMaxEPPRegistryDomainContact.ELM_NAMEpublic java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.
toString in class EPPRegistryMinMaxString if successful;
ERROR otherwise.public java.lang.String getType()
public void setType(java.lang.String type)
type - type of contact
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||