Package com.verisign.epp.codec.org
Class EPPOrgPostalDefinition
java.lang.Object
com.verisign.epp.codec.org.EPPOrgPostalDefinition
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Represents a org postal address definition. The child elements associated
with an
EPPOrgPostalDefinition include: - A localization type, represented by the
EPPOrgPostalDefinition.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(EPPOrgAddress)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
ConstructorsConstructorDescriptionEPPOrgPostalDefinitiondefault constructor.EPPOrgPostalDefinitionconstructor that takes the contact postal type as an argument.EPPOrgPostalDefinition(EPPOrgPostalDefinition.Type aType, String aName, EPPOrgAddress aAddress) EPPOrgPostalDefinitionconstructor that sets the required attributes with the parameters. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPOrgPostalDefinition.voidDecode theEPPOrgPostalDefinitionattributes from the aElement DOM Element tree.Encode a DOM Element tree from the attributes of theEPPOrgPostalDefinitioninstance.booleanimplements a deepEPPOrgPostalDefinitioncompare.Gets the contact addressgetName()Gets the contact nameReturns the XML namespace associated with theEPPCodecComponent.getType()Gets the contact postal type.voidsetAddress(EPPOrgAddress aAddress) Sets the contact addressvoidSets the contact name.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 forEPPOrgPostalDefinition.- See Also:
-
-
Constructor Details
-
EPPOrgPostalDefinition
public EPPOrgPostalDefinition()EPPOrgPostalDefinitiondefault constructor. -
EPPOrgPostalDefinition
EPPOrgPostalDefinitionconstructor that takes the contact postal type as an argument.- Parameters:
aType- Postal type
-
EPPOrgPostalDefinition
public EPPOrgPostalDefinition(EPPOrgPostalDefinition.Type aType, String aName, EPPOrgAddress aAddress) EPPOrgPostalDefinitionconstructor 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
-
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 theEPPOrgPostalDefinitioninstance.- 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 theEPPOrgPostalDefinitionattributes from the aElement DOM Element tree.- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root DOM Element to decodeEPPOrgPostalDefinitionfrom.- Throws:
EPPDecodeException- Unable to decode aElement
-
equals
implements a deepEPPOrgPostalDefinitioncompare. -
clone
CloneEPPOrgPostalDefinition.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPOrgPostalDefinition - 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.
-