Package com.verisign.epp.codec.registry
Class EPPRegistryContactOrg
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryMinMaxLength
com.verisign.epp.codec.registry.EPPRegistryContactOrg
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
<registry:org> - The minimum and maximum length of the
<contact:org> element defined in RFC 5733 using the
<registry:minLength> and <registry:maxLength> child elements,
respectively.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML Element Name ofEPPRegistryContactOrgroot element.Fields inherited from class com.verisign.epp.codec.registry.EPPRegistryMinMaxLength
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH, elmMax, elmMin, max, min, rootName -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new EPPRegistryContactOrg object.EPPRegistryContactOrg(int min, int max) Creates a new EPPRegistryContactOrg object with min length and max length.EPPRegistryContactOrg(Integer min, Integer max) Creates a new EPPRegistryContactOrg object with min length and max length. -
Method Summary
Modifier and TypeMethodDescriptionbooleanimplements a deepEPPRegistryContactOrgcompare.protected voidValidate the state of theEPPRegistryContactOrginstance.Methods inherited from class com.verisign.epp.codec.registry.EPPRegistryMinMaxLength
clone, decode, encode, getElmMax, getElmMin, getMax, getMin, getNamespace, getRootName, setElmMax, setElmMin, setMax, setMin, setRootName, toString
-
Field Details
-
ELM_NAME
XML Element Name ofEPPRegistryContactOrgroot element.- See Also:
-
-
Constructor Details
-
EPPRegistryContactOrg
public EPPRegistryContactOrg()Creates a new EPPRegistryContactOrg object. -
EPPRegistryContactOrg
Creates a new EPPRegistryContactOrg object with min length and max length.- Parameters:
min- minimum length of the contact namemax- maximum length of the contact name
-
EPPRegistryContactOrg
public EPPRegistryContactOrg(int min, int max) Creates a new EPPRegistryContactOrg object with min length and max length.- Parameters:
min- minimum length of the contact namemax- maximum length of the contact name
-
-
Method Details
-
equals
implements a deepEPPRegistryContactOrgcompare.- Overrides:
equalsin classEPPRegistryMinMaxLength- Parameters:
aObject-EPPRegistryContactOrginstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
validateState
Validate the state of theEPPRegistryContactOrginstance. 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. throws EPPCodecException State error. This will contain the name of the attribute that is not valid.- Overrides:
validateStatein classEPPRegistryMinMaxLength- Throws:
EPPEncodeException- On invalid state
-