public class EPPRegistryDomainContact extends EPPRegistryAbstractMinMax
EPPRegistryAbstractMinMax.getMin()
and EPPRegistryAbstractMinMax.setMin(Integer)
to get and set this
element.EPPRegistryAbstractMinMax.getMax()
and EPPRegistryAbstractMinMax.setMax(Integer)
to get and set
this element.EPPRegistryDomain
,
Serialized FormModifier and Type | Class and Description |
---|---|
static class |
EPPRegistryDomainContact.Type
Possible values for the
sharePolicy attribute. |
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ATTR_TYPE
XML attribute name for the
type attribute. |
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPRegistryDomainContact . |
static java.lang.String |
ELM_NAME
XML root tag for
EPPRegistryDomainContact . |
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH
Constructor and Description |
---|
EPPRegistryDomainContact()
Default constructor of
EPPRegistryDomainContact . |
EPPRegistryDomainContact(EPPRegistryDomainContact.Type aType,
java.lang.Integer aMin,
java.lang.Integer aMax)
Creates a new
EPPRegistryDomainContact object that takes the types
and both the minimum and maximum values as Integer 's. |
EPPRegistryDomainContact(EPPRegistryDomainContact.Type aType,
int aMin,
int aMax)
Creates a new
EPPRegistryDomainContact object that takes the types
and both the minimum and maximum values as int 's. |
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. |
protected java.lang.String |
getElmMax()
Gets the maximum element local name.
|
protected java.lang.String |
getElmMin()
Gets the minimum element local name.
|
protected org.apache.log4j.Logger |
getLogger()
Gets the
Logger to use. |
protected java.lang.String |
getRootName()
Gets the root element local name.
|
EPPRegistryDomainContact.Type |
getType()
Gets the type of contact.
|
void |
setType(EPPRegistryDomainContact.Type aType)
Sets the type of contact.
|
java.lang.String |
toString()
Implementation of
Object.toString , which will result in an
indented XML String representation of the concrete
EPPCodecComponent . |
protected void |
validateState()
Validate the state of the
EPPRegistryDomainContact instance. |
getMax, getMin, getNamespace, setMax, setMin
public static final java.lang.String ELM_LOCALNAME
EPPRegistryDomainContact
.public static final java.lang.String ELM_NAME
EPPRegistryDomainContact
.public static final java.lang.String ATTR_TYPE
type
attribute.public EPPRegistryDomainContact()
EPPRegistryDomainContact
. All attributes
are set to null. Must call setType(EPPRegistryDomainContact.Type)
and EPPRegistryAbstractMinMax.setMin(Integer)
before calling encode(Document)
.public EPPRegistryDomainContact(EPPRegistryDomainContact.Type aType, java.lang.Integer aMin, java.lang.Integer aMax)
EPPRegistryDomainContact
object that takes the types
and both the minimum and maximum values as Integer
's.aType
- type of contactaMin
- minimum number of contact entries.aMax
- maximum number of contact entries.public EPPRegistryDomainContact(EPPRegistryDomainContact.Type aType, int aMin, int aMax)
EPPRegistryDomainContact
object that takes the types
and both the minimum and maximum values as int
's.aType
- type of contactaMin
- minimum number of contact entries.aMax
- 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 EPPRegistryAbstractMinMax
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 EPPRegistryAbstractMinMax
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 EPPRegistryAbstractMinMax
EPPRegistryDomainContact
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryDomainContact
compare.equals
in class EPPRegistryAbstractMinMax
aObject
- EPPRegistryDomainContact
instance to compare withtrue
if this object is the same as the aObject argument;
false
otherwisepublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.toString
in class EPPRegistryAbstractMinMax
String
if successful; ERROR
otherwise.public EPPRegistryDomainContact.Type getType()
null
otherwise.public void setType(EPPRegistryDomainContact.Type aType)
aType
- The type of contactprotected java.lang.String getRootName()
getRootName
in class EPPRegistryAbstractMinMax
protected java.lang.String getElmMin()
getElmMin
in class EPPRegistryAbstractMinMax
protected java.lang.String getElmMax()
getElmMax
in class EPPRegistryAbstractMinMax
protected org.apache.log4j.Logger getLogger()
Logger
to use.getLogger
in class EPPRegistryAbstractMinMax
Logger
instance to use for logging.protected void validateState() throws EPPEncodeException
EPPRegistryDomainContact
instance. A
valid state means that all of the required attributes have been set. If
validateState returns without an exception, the state is valid. If the
state is not valid, the EPPCodecException
will contain a
description of the error.validateState
in class EPPRegistryAbstractMinMax
EPPEncodeException
- Validation error