Class EPPValidatePostalDefinition
java.lang.Object
com.verisign.epp.codec.validate.v02.EPPValidatePostalDefinition
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents a contact postal address definition. The child elements associated
with an
EPPValidatePostalDefinition include:- A localization type, represented by the
EPPValidatePostalDefinition.Typeenumeration. UsegetType()andsetType(Type)to get and set the attribute. - A name that contains the name of the org. Use
getName()andsetName(String)to get and set the attribute. - An address that contains address information associated with the org. Use
getAddress()andsetAddress(EPPValidateAddress)to get and set the attribute.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumLocalized type with one of the following values:
LOC- Localized form of data that MAY be represented in unrestricted UTF-8.INT- Internationalized form o data that MUST be represented in a subset of UTF-8 that can be represented in the 7-bit US-ASCII character set. -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionEPPValidatePostalDefinitiondefault constructor.EPPValidatePostalDefinitionconstructor that takes the contact postal type as an argument.EPPValidatePostalDefinition(EPPValidatePostalDefinition.Type aType, String aName, EPPValidateAddress aAddress) EPPValidatePostalDefinitionconstructor that sets the required attributes with the parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPValidatePostalDefinition.voidDecode theEPPValidatePostalDefinitionattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPValidatePostalDefinitioninstance.booleanimplements a deepEPPValidatePostalDefinitioncompare.Gets the contact addressgetName()Gets the contact nameReturns the XML namespace associated with theEPPCodecComponent.getOrg()Gets the contact orggetType()Gets the contact postal type.booleanhasOrg()Is the org defined?voidsetAddress(EPPValidateAddress aAddress) Sets the contact addressvoidSets the contact name.voidSets the contact org.voidSets the contact type.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
XML local name forEPPOrgDisclose.- See Also:
-
ELM_NAME
XML root tag forEPPValidatePostalDefinition.- See Also:
-
-
Constructor Details
-
EPPValidatePostalDefinition
public EPPValidatePostalDefinition()EPPValidatePostalDefinitiondefault constructor. -
EPPValidatePostalDefinition
EPPValidatePostalDefinitionconstructor that takes the contact postal type as an argument.- Parameters:
aType- Postal type
-
EPPValidatePostalDefinition
public EPPValidatePostalDefinition(EPPValidatePostalDefinition.Type aType, String aName, EPPValidateAddress aAddress) EPPValidatePostalDefinitionconstructor that sets the required attributes with the parameters.- Parameters:
aType- Postal typeaName- contact nameaAddress- contact address
-
-
Method Details
-
getType
Gets the contact postal type.- Returns:
- Contact postal type
-
setType
Sets the contact type.- Parameters:
aType- Contact postal type
-
getName
Gets the contact name- Returns:
- Contact Name if defined;
nullotherwise.
-
setName
Sets the contact name.- Parameters:
aName- Contact Name
-
hasOrg
public boolean hasOrg()Is the org defined?- Returns:
trueif the org is defined;falseotherwise.
-
getOrg
Gets the contact org- Returns:
- Contact Org if defined;
nullotherwise.
-
setOrg
Sets the contact org.- Parameters:
aOrg- Contact org
-
getAddress
Gets the contact address- Returns:
- Contact address if defined;
nullotherwise.
-
setAddress
Sets the contact address- Parameters:
aAddress- Contact address
-
encode
Encode a DOM Element tree from the attributes of theEPPValidatePostalDefinitioninstance.- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- DOM Document that is being built. Used as an Element factory.- Returns:
- Encoded DOM
Element - Throws:
EPPEncodeException- On encoding error
-
decode
Decode theEPPValidatePostalDefinitionattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPValidatePostalDefinitionfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
implements a deepEPPValidatePostalDefinitioncompare. -
clone
CloneEPPValidatePostalDefinition.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPValidatePostalDefinition - Throws:
CloneNotSupportedException- standard Object.clone exception
-
toString
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent. -
getNamespace
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-