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.StringELM_LOCALNAMEXML local name forEPPRegistryContactStreet.static java.lang.StringELM_MAX_ENTRYXML Element Name ofmaxEntryattribute.static java.lang.StringELM_MIN_ENTRYXML Element Name ofminEntryattribute.static java.lang.StringELM_NAMEXML 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 newEPPRegistryContactStreetobject.EPPRegistryContactStreet(int aMin, int aMax, int aMinEntry, int aMaxEntry)Creates a newEPPRegistryContactStreetobject 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 newEPPRegistryContactStreetobject 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.Objectclone()CloneEPPRegistryContactStreet.voiddecode(org.w3c.dom.Element aElement)Decode theEPPRegistryContactStreetattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPRegistryContactStreetinstance.booleanequals(java.lang.Object aObject)implements a deepEPPRegistryContactStreetcompare.protected java.lang.StringgetElmMax()Gets the maximum element local name.protected java.lang.StringgetElmMin()Gets the minimum element local name.protected org.slf4j.LoggergetLogger()Gets theLoggerto use.java.lang.IntegergetMaxEntry()Gets the maximum entry value, which defines the maximum number of <contact:street> elements.java.lang.IntegergetMinEntry()Gets the minimum entry value, which defines the minimum number of <contact:street> elements.protected java.lang.StringgetRootName()Gets the root element local name.voidsetMaxEntry(java.lang.Integer aMaxEntry)Sets the maximum entry value, which defines the maximum number of <contact:street> elements.voidsetMinEntry(java.lang.Integer aMinEntry)Sets the minimum entry value, which defines the minimum number of <contact:street> elements.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.protected voidvalidateState()Validate the state of theEPPRegistryContactStreetinstance.-
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 ofminEntryattribute.- See Also:
- Constant Field Values
-
ELM_MAX_ENTRY
public static final java.lang.String ELM_MAX_ENTRY
XML Element Name ofmaxEntryattribute.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPRegistryContactStreet
public EPPRegistryContactStreet()
Creates a newEPPRegistryContactStreetobject.
-
EPPRegistryContactStreet
public EPPRegistryContactStreet(java.lang.Integer aMin, java.lang.Integer aMax, java.lang.Integer aMinEntry, java.lang.Integer aMaxEntry)Creates a newEPPRegistryContactStreetobject 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 newEPPRegistryContactStreetobject 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 EPPEncodeExceptionEncode a DOM Element tree from the attributes of theEPPRegistryContactStreetinstance.- Specified by:
encodein interfaceEPPCodecComponent- Overrides:
encodein classEPPRegistryAbstractMinMax- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryContactStreetinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryContactStreetinstance.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPRegistryContactStreetattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Overrides:
decodein classEPPRegistryAbstractMinMax- Parameters:
aElement- Root DOM Element to decodeEPPRegistryContactStreetfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPRegistryContactStreet.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPRegistryAbstractMinMax- Returns:
- clone of
EPPRegistryContactStreet - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPRegistryContactStreetcompare.- Overrides:
equalsin classEPPRegistryAbstractMinMax- Parameters:
aObject-EPPRegistryContactStreetinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
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;
nullotherwise.
-
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;
nullotherwise.
-
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 EPPEncodeExceptionValidate the state of theEPPRegistryContactStreetinstance. 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, theEPPCodecExceptionwill contain a description of the error.- Overrides:
validateStatein classEPPRegistryAbstractMinMax- Throws:
EPPEncodeException- Validation error
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPRegistryAbstractMinMax- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getRootName
protected java.lang.String getRootName()
Gets the root element local name.- Specified by:
getRootNamein classEPPRegistryAbstractMinMax- Returns:
- Root element local name.
-
getElmMin
protected java.lang.String getElmMin()
Gets the minimum element local name.- Specified by:
getElmMinin classEPPRegistryAbstractMinMax- Returns:
- Minimum element local name.
-
getElmMax
protected java.lang.String getElmMax()
Gets the maximum element local name.- Specified by:
getElmMaxin classEPPRegistryAbstractMinMax- Returns:
- Maximum element local name.
-
getLogger
protected org.slf4j.Logger getLogger()
Gets theLoggerto use.- Specified by:
getLoggerin classEPPRegistryAbstractMinMax- Returns:
Loggerinstance to use for logging.
-
-