Package com.verisign.epp.codec.registry
Class EPPRegistryDomainContact
java.lang.Object
com.verisign.epp.codec.registry.EPPRegistryMinMax
com.verisign.epp.codec.registry.EPPRegistryDomainContact
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Defines the miniumum and maximum numbers of contacts by contact type. The
contact type is defined with the required "type" attribute with the possible
values of "admin", "tech", and "billing". The <registry:contact>
element contains the following child elements
-
<registry:min> - The minimum number of contacts for the contact type.
Use
EPPRegistryMinMax.getMin()andEPPRegistryMinMax.setMin(Integer)to get and set this element. -
<registry:max> - The OPTIONAL maximum number of contacts for the
contact type. If this element is not defined, the maximum number is
unbounded. Use
EPPRegistryMinMax.getMax()andEPPRegistryMinMax.setMax(Integer)to get and set this element.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringXML attribute name for thetypeattribute.static final StringXML Element Name ofEPPRegistryDomainContactroot element.static final String"admin" contact typestatic final String"billing" contact typestatic final String"tech" contact typestatic SetFields inherited from class com.verisign.epp.codec.registry.EPPRegistryMinMax
ELM_MAX, ELM_MAX_LENGTH, ELM_MIN, ELM_MIN_LENGTH, elmMax, elmMin, max, min, rootName -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor of EPPRegistryDomainContact.EPPRegistryDomainContact(String type, int min, int max) Constructor an EPPRegistryDomainContact with type, min and max.EPPRegistryDomainContact(String type, Integer min, Integer max) Constructor an EPPRegistryDomainContact with type, min and max. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPRegistryDomainContact.voidDecode theEPPRegistryDomainContactattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPRegistryDomainContactinstance.booleanimplements a deepEPPRegistryDomainContactcompare.Return the root name of the XML element.getType()Get type of contact.voidSet type of contact.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.Methods inherited from class com.verisign.epp.codec.registry.EPPRegistryMinMax
getElmMax, getElmMin, getMax, getMin, getNamespace, setElmMax, setElmMin, setMax, setMin, setRootName
-
Field Details
-
ELM_NAME
XML Element Name ofEPPRegistryDomainContactroot element.- See Also:
-
ATTR_TYPE
XML attribute name for thetypeattribute.- See Also:
-
TYPE_ADMIN
"admin" contact type- See Also:
-
TYPE_BILLING
"billing" contact type- See Also:
-
TYPE_TECH
"tech" contact type- See Also:
-
VALID_TYPES
-
-
Constructor Details
-
EPPRegistryDomainContact
public EPPRegistryDomainContact()Default constructor of EPPRegistryDomainContact. All attributes are set to null. Must callsetType(String)andEPPRegistryMinMax.setMin(Integer)before callingencode(Document). -
EPPRegistryDomainContact
Constructor an EPPRegistryDomainContact with type, min and max.- Parameters:
type- type of contactmin- minimum number of contact entries.max- maximum number of contact entries.
-
EPPRegistryDomainContact
Constructor an EPPRegistryDomainContact with type, min and max.- Parameters:
type- type of contactmin- minimum number of contact entries.max- maximum number of contact entries.
-
-
Method Details
-
encode
Encode a DOM Element tree from the attributes of theEPPRegistryDomainContactinstance.- Specified by:
encodein interfaceEPPCodecComponent- Overrides:
encodein classEPPRegistryMinMax- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Element Root DOM Element representing the
EPPRegistryDomainContactinstance. - Throws:
EPPEncodeException- - Unable to encodeEPPRegistryDomainContactinstance.
-
decode
Decode theEPPRegistryDomainContactattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Overrides:
decodein classEPPRegistryMinMax- Parameters:
aElement- Root DOM Element to decodeEPPRegistryDomainContactfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
clone
CloneEPPRegistryDomainContact.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classEPPRegistryMinMax- Returns:
- clone of
EPPRegistryDomainContact - Throws:
CloneNotSupportedException- standard Object.clone exception
-
equals
implements a deepEPPRegistryDomainContactcompare.- Overrides:
equalsin classEPPRegistryMinMax- Parameters:
aObject-EPPRegistryDomainContactinstance to compare with- Returns:
trueif this object is the same as the aObject argument;falseotherwise
-
getRootName
Return the root name of the XML element.- Overrides:
getRootNamein classEPPRegistryMinMax- Returns:
EPPRegistryDomainContact.ELM_NAME
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classEPPRegistryMinMax- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getType
Get type of contact.- Returns:
- type of contact
-
setType
Set type of contact.- Parameters:
type- type of contact
-