Package com.verisign.epp.codec.launch
Class EPPLaunchCodeMark
- java.lang.Object
-
- com.verisign.epp.codec.launch.EPPLaunchCodeMark
-
- All Implemented Interfaces:
EPPCodecComponent,java.io.Serializable,java.lang.Cloneable
public class EPPLaunchCodeMark extends java.lang.Object implements EPPCodecComponent
Class for an address within anEPPMarkContact.- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringELM_LOCALNAMEConstant for the local namestatic java.lang.StringELM_NAMEConstant for the tag name
-
Constructor Summary
Constructors Constructor Description EPPLaunchCodeMark()Default constructor forEPPLaunchCodeMark.EPPLaunchCodeMark(EPPMark aMark)Constructor that takes just the mark attribute of theEPPLaunchCodeMark.EPPLaunchCodeMark(java.lang.String aCode)Constructor that takes just the code attribute of theEPPLaunchCodeMark.EPPLaunchCodeMark(java.lang.String aCode, EPPMark aMark)Constructor that takes both the code and mark attributes of theEPPLaunchCodeMark.EPPLaunchCodeMark(java.lang.String aCode, java.lang.String aValidatorId)Constructor that takes just the code attribute of theEPPLaunchCodeMarkand the validator identifier of the code.EPPLaunchCodeMark(java.lang.String aCode, java.lang.String aValidatorId, EPPMark aMark)Constructor that takes both the code, code validator identifier, and mark attributes of theEPPLaunchCodeMark.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectclone()CloneEPPLaunchCodeMark.voiddecode(org.w3c.dom.Element aElement)Decode theEPPMarkcomponentorg.w3c.dom.Elementencode(org.w3c.dom.Document aDocument)Sets all this instance's data in the given XML documentbooleanequals(java.lang.Object aObject)implements a deepEPPLaunchCodeMarkcompare.java.lang.StringgetCode()Gets the mark code used to validate the mark information.EPPMarkgetMark()Gets the mark information.java.lang.StringgetNamespace()Returns the XML namespace associated with theEPPCodecComponent.java.lang.StringgetValidatorId()Gets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator that thecodeoriginates from.booleanhasCode()Is the mark code set?booleanhasCodeMark()Is both the mark code and mark set?booleanhasMark()Is the mark set?booleanhasValidatorId()Is the Validator Identifier defined?voidsetCode(java.lang.String aCode)Sets the mark code used to validate the mark information.voidsetMark(EPPMark aMark)Sets the mark information.voidsetValidatorId(java.lang.String aValidatorId)Sets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator that thecodeoriginates from.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
Constant for the local name- See Also:
- Constant Field Values
-
ELM_NAME
public static final java.lang.String ELM_NAME
Constant for the tag name- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EPPLaunchCodeMark
public EPPLaunchCodeMark()
Default constructor forEPPLaunchCodeMark.
-
EPPLaunchCodeMark
public EPPLaunchCodeMark(java.lang.String aCode)
Constructor that takes just the code attribute of theEPPLaunchCodeMark.- Parameters:
aCode- Mark code
-
EPPLaunchCodeMark
public EPPLaunchCodeMark(java.lang.String aCode, java.lang.String aValidatorId)Constructor that takes just the code attribute of theEPPLaunchCodeMarkand the validator identifier of the code.- Parameters:
aCode- Mark codeaValidatorId- Identifier of the Trademark Validator thataCodeoriginated from.
-
EPPLaunchCodeMark
public EPPLaunchCodeMark(EPPMark aMark)
Constructor that takes just the mark attribute of theEPPLaunchCodeMark.- Parameters:
aMark- Mark information
-
EPPLaunchCodeMark
public EPPLaunchCodeMark(java.lang.String aCode, EPPMark aMark)Constructor that takes both the code and mark attributes of theEPPLaunchCodeMark.- Parameters:
aCode- Mark codeaMark- Mark information
-
EPPLaunchCodeMark
public EPPLaunchCodeMark(java.lang.String aCode, java.lang.String aValidatorId, EPPMark aMark)Constructor that takes both the code, code validator identifier, and mark attributes of theEPPLaunchCodeMark.- Parameters:
aCode- Mark codeaValidatorId- Identifier of the Trademark Validator thataCodeoriginated from.aMark- Mark information
-
-
Method Detail
-
clone
public java.lang.Object clone() throws java.lang.CloneNotSupportedExceptionCloneEPPLaunchCodeMark.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classjava.lang.Object- Returns:
- clone of
EPPLaunchCodeMark - Throws:
java.lang.CloneNotSupportedException- standard Object.clone exception
-
encode
public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeExceptionSets all this instance's data in the given XML document- Specified by:
encodein interfaceEPPCodecComponent- Parameters:
aDocument- a DOM Document to attach data to.- Returns:
- The root element of this component.
- Throws:
EPPEncodeException- Thrown if any errors prevent encoding.
-
decode
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeExceptionDecode theEPPMarkcomponent- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root element of theEPPMark- Throws:
EPPDecodeException- Error decoding theEPPMark
-
equals
public boolean equals(java.lang.Object aObject)
implements a deepEPPLaunchCodeMarkcompare.- Overrides:
equalsin classjava.lang.Object- Parameters:
aObject-EPPLaunchCodeMarkinstance to compare with- Returns:
- true if equal false otherwise
-
hasCodeMark
public boolean hasCodeMark()
Is both the mark code and mark set?- Returns:
trueif the mark code and mark are set;falseotherwise.
-
hasCode
public boolean hasCode()
Is the mark code set?- Returns:
trueif the mark code is set;falseotherwise.
-
getCode
public java.lang.String getCode()
Gets the mark code used to validate the mark information.- Returns:
- The mark code if defined;
nullotherwise.
-
setCode
public void setCode(java.lang.String aCode)
Sets the mark code used to validate the mark information.- Parameters:
aCode- The mark code
-
getValidatorId
public java.lang.String getValidatorId()
Gets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator that thecodeoriginates from.- Returns:
- The Validator Identifier if defined; otherwise
null.
-
setValidatorId
public void setValidatorId(java.lang.String aValidatorId)
Sets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator that thecodeoriginates from.- Parameters:
aValidatorId- Validator Identifier
-
hasValidatorId
public boolean hasValidatorId()
Is the Validator Identifier defined?- Returns:
trueif the Validator Identifier is defined;falseotherwise.
-
hasMark
public boolean hasMark()
Is the mark set?- Returns:
trueif the mark is set;falseotherwise.
-
getMark
public EPPMark getMark()
Gets the mark information.- Returns:
- the mark information if defined;
nullotherwise.
-
setMark
public void setMark(EPPMark aMark)
Sets the mark information.- Parameters:
aMark- The mark information
-
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.
-
-