Package com.verisign.epp.codec.org
Class EPPOrgPostalDefinition
- java.lang.Object
-
- com.verisign.epp.codec.org.EPPOrgPostalDefinition
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPOrgPostalDefinition extends java.lang.Object implements EPPCodecComponent
Represents a org postal address definition. The child elements associated with anEPPOrgPostalDefinitioninclude:
- 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:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEPPOrgPostalDefinition.TypeLocalized 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 Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEXML local name forEPPOrgDisclose.static java.lang.StringELM_NAMEXML root tag forEPPOrgPostalDefinition.
-
Constructor Summary
Constructors Constructor Description EPPOrgPostalDefinition()EPPOrgPostalDefinitiondefault constructor.EPPOrgPostalDefinition(EPPOrgPostalDefinition.Type aType)EPPOrgPostalDefinitionconstructor that takes the contact postal type as an argument.EPPOrgPostalDefinition(EPPOrgPostalDefinition.Type aType, java.lang.String aName, EPPOrgAddress aAddress)EPPOrgPostalDefinitionconstructor that sets the required attributes with the parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPOrgPostalDefinition.voiddecode(org.w3c.dom.Element aElement)Decode theEPPOrgPostalDefinitionattributes from the aElement DOM Element tree.org.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Encode a DOM Element tree from the attributes of theEPPOrgPostalDefinitioninstance.booleanequals(java.lang.Object aObject)implements a deepEPPOrgPostalDefinitioncompare.EPPOrgAddressgetAddress()Gets the contact addressjava.lang.StringgetName()Gets the contact namejava.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.EPPOrgPostalDefinition.TypegetType()Gets the contact postal type.voidsetAddress(EPPOrgAddress aAddress)Sets the contact addressvoidsetName(java.lang.String aName)Sets the contact name.voidsetType(EPPOrgPostalDefinition.Type aType)Sets the contact type.java.lang.StringtoString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
-
-
Field Detail
-
ELM_LOCALNAME
public static final java.lang.String ELM_LOCALNAME
XML local name forEPPOrgDisclose.- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
XML root tag forEPPOrgPostalDefinition.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPOrgPostalDefinition
public EPPOrgPostalDefinition()
EPPOrgPostalDefinitiondefault constructor.
-
EPPOrgPostalDefinition
public EPPOrgPostalDefinition(EPPOrgPostalDefinition.Type aType)
EPPOrgPostalDefinitionconstructor that takes the contact postal type as an argument.- Parameters:
aType- Postal type
-
EPPOrgPostalDefinition
public EPPOrgPostalDefinition(EPPOrgPostalDefinition.Type aType, java.lang.String aName, EPPOrgAddress aAddress)
EPPOrgPostalDefinitionconstructor that sets the required attributes with the parameters.- Parameters:
aName- contact nameaType- Postal typeaAddress- contact address
-
-
Method Detail
-
getType
public EPPOrgPostalDefinition.Type getType()
Gets the contact postal type.- Returns:
- Contact postal type
-
setType
public void setType(EPPOrgPostalDefinition.Type aType)
Sets the contact type.- Parameters:
aType- Contact postal type
-
getName
public java.lang.String getName()
Gets the contact name- Returns:
- Contact Name if defined;
nullotherwise.
-
setName
public void setName(java.lang.String aName)
Sets the contact name.- Parameters:
aName- Contact Name
-
getAddress
public EPPOrgAddress getAddress()
Gets the contact address- Returns:
- Contact address if defined;
nullotherwise.
-
setAddress
public void setAddress(EPPOrgAddress aAddress)
Sets the contact address- Parameters:
aAddress- Contact address
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionEncode 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
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode 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
public boolean equals(java.lang.Object aObject)
implements a deepEPPOrgPostalDefinitioncompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPOrgPostalDefinitioninstance to compare with- Returns:
trueif the object is equal toaObject;falseotherwise.
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPOrgPostalDefinition.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPOrgPostalDefinition - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
toString
public java.lang.String toString()
Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.- Overrides:
toStringin classjava.lang.Object- Returns:
- Indented XML
Stringif successful;ERRORotherwise.
-
getNamespace
public java.lang.String getNamespace()
Returns the XML namespace associated with theEPPCodecComponent.- Specified by:
getNamespacein interfaceEPPCodecComponent- Returns:
- XML namespace for the
EPPCodecComponent.
-
-