Class EPPRegistryContactStreet
- java.lang.Object
-
- com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
-
- com.verisign.epp.codec.registry.v02.EPPRegistryContactStreet
-
- All Implemented Interfaces:
EPPCodecComponent
,java.io.Serializable
,java.lang.Cloneable
public class EPPRegistryContactStreet extends EPPRegistryAbstractMinMax
The minimum and maximum length and the minimum and maximum number of the <contact:street> elements defined in [RFC5733].- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ELM_LOCALNAME
XML local name forEPPRegistryContactStreet
.static java.lang.String
ELM_MAX_ENTRY
XML Element Name ofmaxEntry
attribute.static java.lang.String
ELM_MIN_ENTRY
XML Element Name ofminEntry
attribute.static java.lang.String
ELM_NAME
XML root tag forEPPRegistryContactStreet
.-
Fields inherited from class com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH
-
-
Constructor Summary
Constructors Constructor Description EPPRegistryContactStreet()
Creates a newEPPRegistryContactStreet
object.EPPRegistryContactStreet(int aMin, int aMax, int aMinEntry, int aMaxEntry)
Creates a newEPPRegistryContactStreet
object that takes both the minimum and maximum values asint
's.EPPRegistryContactStreet(java.lang.Integer aMin, java.lang.Integer aMax, java.lang.Integer aMinEntry, java.lang.Integer aMaxEntry)
Creates a newEPPRegistryContactStreet
object that takes both the minimum and maximum values asInteger
's.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Object
clone()
CloneEPPRegistryContactStreet
.void
decode(org.w3c.dom.Element aElement)
Decode theEPPRegistryContactStreet
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 theEPPRegistryContactStreet
instance.boolean
equals(java.lang.Object aObject)
implements a deepEPPRegistryContactStreet
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.slf4j.Logger
getLogger()
Gets theLogger
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 ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.protected void
validateState()
Validate the state of theEPPRegistryContactStreet
instance.-
Methods inherited from class com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
getMax, getMin, getNamespace, setMax, setMin
-
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPRegistryContactStreet
.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPRegistryContactStreet
.- See Also:
- Constant Field Values
-
ELM_MIN_ENTRY
public static final java.lang.String ELM_MIN_ENTRY
XML Element Name ofminEntry
attribute.- See Also:
- Constant Field Values
-
ELM_MAX_ENTRY
public static final java.lang.String ELM_MAX_ENTRY
XML Element Name ofmaxEntry
attribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryContactStreet
public EPPRegistryContactStreet()
Creates a newEPPRegistryContactStreet
object.
-
EPPRegistryContactStreet
public EPPRegistryContactStreet(java.lang.Integer aMin, java.lang.Integer aMax, java.lang.Integer aMinEntry, java.lang.Integer aMaxEntry)
Creates a newEPPRegistryContactStreet
object that takes both the minimum and maximum values asInteger
's.- Parameters:
aMin
- Minimum valueaMax
- Maximum valueaMinEntry
- Minimum number of <contact:street> elements.aMaxEntry
- Maximum number of <contact:street> elements.
-
EPPRegistryContactStreet
public EPPRegistryContactStreet(int aMin, int aMax, int aMinEntry, int aMaxEntry)
Creates a newEPPRegistryContactStreet
object that takes both the minimum and maximum values asint
's.- Parameters:
aMin
- Minimum valueaMax
- Maximum valueaMinEntry
- Minimum number of <contact:street> elements.aMaxEntry
- Maximum number of <contact:street> elements.
-
-
Method Detail
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
Encode a DOM Element tree from the attributes of theEPPRegistryContactStreet
instance.- Specified by:
encode
in interfaceEPPCodecComponent
- Overrides:
encode
in classEPPRegistryAbstractMinMax
- Parameters:
aDocument
- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryContactStreet
instance. - Throws:
EPPEncodeException
- - Unable to encodeEPPRegistryContactStreet
instance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
Decode theEPPRegistryContactStreet
attributes from the aElement DOM Element tree.- Specified by:
decode
in interfaceEPPCodecComponent
- Overrides:
decode
in classEPPRegistryAbstractMinMax
- Parameters:
aElement
- Root DOM Element to decodeEPPRegistryContactStreet
from.- Throws:
EPPDecodeException
- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedException
CloneEPPRegistryContactStreet
.- Specified by:
clone
in interfaceEPPCodecComponent
- Overrides:
clone
in classEPPRegistryAbstractMinMax
- Returns:
- clone of
EPPRegistryContactStreet
- Throws:
java.lang.CloneNotSupportedException
- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryContactStreet
compare.- Overrides:
equals
in classEPPRegistryAbstractMinMax
- Parameters:
aObject
-EPPRegistryContactStreet
instance to compare with- Returns:
true
if this object is the same as the aObject argument;false
otherwise
-
getMinEntry
public java.lang.Integer getMinEntry()
Gets the minimum entry value, which defines the minimum number of <contact:street> elements.- Returns:
- Minimum entry value if defined;
null
otherwise.
-
setMinEntry
public void setMinEntry(java.lang.Integer aMinEntry)
Sets the minimum entry value, which defines the minimum number of <contact:street> elements.- Parameters:
aMinEntry
- Minimum number of <contact:street> elements.
-
getMaxEntry
public java.lang.Integer getMaxEntry()
Gets the maximum entry value, which defines the maximum number of <contact:street> elements.- Returns:
- Maximum entry value if defined;
null
otherwise.
-
setMaxEntry
public void setMaxEntry(java.lang.Integer aMaxEntry)
Sets the maximum entry value, which defines the maximum number of <contact:street> elements.- Parameters:
aMaxEntry
- Maximum number of <contact:street> elements.
-
validateState
protected void validateState() throws EPPEncodeException
Validate the state of theEPPRegistryContactStreet
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, theEPPCodecException
will contain a description of the error.- Overrides:
validateState
in classEPPRegistryAbstractMinMax
- Throws:
EPPEncodeException
- Validation error
-
toString
public java.lang.String toString()
Implementation ofObject.toString
, which will result in an indented XMLString
representation of the concreteEPPCodecComponent
.- Overrides:
toString
in classEPPRegistryAbstractMinMax
- Returns:
- Indented XML
String
if successful;ERROR
otherwise.
-
getRootName
protected java.lang.String getRootName()
Gets the root element local name.- Specified by:
getRootName
in classEPPRegistryAbstractMinMax
- Returns:
- Root element local name.
-
getElmMin
protected java.lang.String getElmMin()
Gets the minimum element local name.- Specified by:
getElmMin
in classEPPRegistryAbstractMinMax
- Returns:
- Minimum element local name.
-
getElmMax
protected java.lang.String getElmMax()
Gets the maximum element local name.- Specified by:
getElmMax
in classEPPRegistryAbstractMinMax
- Returns:
- Maximum element local name.
-
getLogger
protected org.slf4j.Logger getLogger()
Gets theLogger
to use.- Specified by:
getLogger
in classEPPRegistryAbstractMinMax
- Returns:
Logger
instance to use for logging.
-
-