public class EPPRegistryContactStreet extends EPPRegistryAbstractMinMax
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ELM_LOCALNAME
XML local name for
EPPRegistryContactStreet . |
static java.lang.String |
ELM_MAX_ENTRY
XML Element Name of
maxEntry attribute. |
static java.lang.String |
ELM_MIN_ENTRY
XML Element Name of
minEntry attribute. |
static java.lang.String |
ELM_NAME
XML root tag for
EPPRegistryContactStreet . |
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH
Constructor and Description |
---|
EPPRegistryContactStreet()
Creates a new
EPPRegistryContactStreet object. |
EPPRegistryContactStreet(java.lang.Integer aMin,
java.lang.Integer aMax,
java.lang.Integer aMinEntry,
java.lang.Integer aMaxEntry)
Creates a new
EPPRegistryContactStreet object that takes both the
minimum and maximum values as Integer 's. |
EPPRegistryContactStreet(int aMin,
int aMax,
int aMinEntry,
int aMaxEntry)
Creates a new
EPPRegistryContactStreet object that takes both the
minimum and maximum values as int 's. |
Modifier and Type | Method and Description |
---|---|
java.lang.Object |
clone()
Clone
EPPRegistryContactStreet . |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPRegistryContactStreet 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
EPPRegistryContactStreet instance. |
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPRegistryContactStreet 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. |
java.lang.Integer |
getMaxEntry()
Gets the maximum entry value, which defines the maximum number of
<contact:street> elements.
|
java.lang.Integer |
getMinEntry()
Gets the minimum entry value, which defines the minimum number of
<contact:street> elements.
|
protected java.lang.String |
getRootName()
Gets the root element local name.
|
void |
setMaxEntry(java.lang.Integer aMaxEntry)
Sets the maximum entry value, which defines the maximum number of
<contact:street> elements.
|
void |
setMinEntry(java.lang.Integer aMinEntry)
Sets the minimum entry value, which defines the minimum number of
<contact:street> elements.
|
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
EPPRegistryContactStreet instance. |
getMax, getMin, getNamespace, setMax, setMin
public static final java.lang.String ELM_LOCALNAME
EPPRegistryContactStreet
.public static final java.lang.String ELM_NAME
EPPRegistryContactStreet
.public static final java.lang.String ELM_MIN_ENTRY
minEntry
attribute.public static final java.lang.String ELM_MAX_ENTRY
maxEntry
attribute.public EPPRegistryContactStreet()
EPPRegistryContactStreet
object.public EPPRegistryContactStreet(java.lang.Integer aMin, java.lang.Integer aMax, java.lang.Integer aMinEntry, java.lang.Integer aMaxEntry)
EPPRegistryContactStreet
object that takes both the
minimum and maximum values as Integer
's.aMin
- Minimum valueaMax
- Maximum valueaMinEntry
- Minimum number of <contact:street> elements.aMaxEntry
- Maximum number of <contact:street> elements.public EPPRegistryContactStreet(int aMin, int aMax, int aMinEntry, int aMaxEntry)
EPPRegistryContactStreet
object that takes both the
minimum and maximum values as int
's.aMin
- Minimum valueaMax
- Maximum valueaMinEntry
- Minimum number of <contact:street> elements.aMaxEntry
- Maximum number of <contact:street> elements.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPRegistryContactStreet
instance.encode
in interface EPPCodecComponent
encode
in class EPPRegistryAbstractMinMax
aDocument
- DOM Document that is being built. Used as an Element factory.EPPRegistryContactStreet
instance.EPPEncodeException
- - Unable to encode EPPRegistryContactStreet
instance.public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPRegistryContactStreet
attributes from the aElement
DOM Element tree.decode
in interface EPPCodecComponent
decode
in class EPPRegistryAbstractMinMax
aElement
- Root DOM Element to decode EPPRegistryContactStreet
from.EPPDecodeException
- Unable to decode aElementpublic java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPRegistryContactStreet
.clone
in interface EPPCodecComponent
clone
in class EPPRegistryAbstractMinMax
EPPRegistryContactStreet
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic boolean equals(java.lang.Object aObject)
EPPRegistryContactStreet
compare.equals
in class EPPRegistryAbstractMinMax
aObject
- EPPRegistryContactStreet
instance to compare withtrue
if this object is the same as the aObject argument;
false
otherwisepublic java.lang.Integer getMinEntry()
null
otherwise.public void setMinEntry(java.lang.Integer aMinEntry)
aMinEntry
- Minimum number of <contact:street> elements.public java.lang.Integer getMaxEntry()
null
otherwise.public void setMaxEntry(java.lang.Integer aMaxEntry)
aMaxEntry
- Maximum number of <contact:street> elements.protected void validateState() throws EPPEncodeException
EPPRegistryContactStreet
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
EPPCodecException
- Validation errorEPPEncodeException
public 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.protected 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.Copyright © VeriSign Inc. All Rights Reserved.