Class EPPRegistryContactStreet
java.lang.Object
com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
com.verisign.epp.codec.registry.v02.EPPRegistryContactStreet
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
The minimum and maximum length and the minimum and maximum number of the
<contact:street> elements defined in [RFC5733].
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML local name forEPPRegistryContactStreet.static final StringXML Element Name ofmaxEntryattribute.static final StringXML Element Name ofminEntryattribute.static final StringXML 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
ConstructorsConstructorDescriptionCreates 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(Integer aMin, Integer aMax, Integer aMinEntry, Integer aMaxEntry) Creates a newEPPRegistryContactStreetobject that takes both the minimum and maximum values asInteger's. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryContactStreet.voidDecode theEPPRegistryContactStreetattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryContactStreetinstance.booleanimplements a deepEPPRegistryContactStreetcompare.protected StringGets the maximum element local name.protected StringGets the minimum element local name.protected org.slf4j.LoggerGets theLoggerto use.Gets the maximum entry value, which defines the maximum number of <contact:street> elements.Gets the minimum entry value, which defines the minimum number of <contact:street> elements.protected StringGets the root element local name.voidsetMaxEntry(Integer aMaxEntry) Sets the maximum entry value, which defines the maximum number of <contact:street> elements.voidsetMinEntry(Integer aMinEntry) Sets the minimum entry value, which defines the minimum number of <contact:street> elements.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.protected voidValidate the state of theEPPRegistryContactStreetinstance.Methods inherited from class com.verisign.epp.codec.registry.v02.EPPRegistryAbstractMinMax
getMax, getMin, getNamespace, setMax, setMin
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPRegistryContactStreet.- See Also:
-
ELM_NAME
XML root tag forEPPRegistryContactStreet.- See Also:
-
ELM_MIN_ENTRY
XML Element Name ofminEntryattribute.- See Also:
-
ELM_MAX_ENTRY
XML Element Name ofmaxEntryattribute.- See Also:
-
-
Constructor Details
-
EPPRegistryContactStreet
public EPPRegistryContactStreet()Creates a newEPPRegistryContactStreetobject. -
EPPRegistryContactStreet
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 Details
-
encode
Encode 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
Decode 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
CloneEPPRegistryContactStreet.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPRegistryAbstractMinMax- Returns:
- clone of
EPPRegistryContactStreet - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
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
Gets the minimum entry value, which defines the minimum number of <contact:street> elements.- Returns:
- Minimum entry value if defined;
nullotherwise.
-
setMinEntry
Sets the minimum entry value, which defines the minimum number of <contact:street> elements.- Parameters:
aMinEntry- Minimum number of <contact:street> elements.
-
getMaxEntry
Gets the maximum entry value, which defines the maximum number of <contact:street> elements.- Returns:
- Maximum entry value if defined;
nullotherwise.
-
setMaxEntry
Sets the maximum entry value, which defines the maximum number of <contact:street> elements.- Parameters:
aMaxEntry- Maximum number of <contact:street> elements.
-
validateState
Validate 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
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPRegistryAbstractMinMax- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getRootName
Gets the root element local name.- Specified by:
getRootNamein classEPPRegistryAbstractMinMax- Returns:
- Root element local name.
-
getElmMin
Gets the minimum element local name.- Specified by:
getElmMinin classEPPRegistryAbstractMinMax- Returns:
- Minimum element local name.
-
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.
-