Package com.verisign.epp.codec.launch
Class EPPLaunchCodeMark
java.lang.Object
com.verisign.epp.codec.launch.EPPLaunchCodeMark
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Class for an address within an
EPPMarkContact.- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionDefault constructor forEPPLaunchCodeMark.EPPLaunchCodeMark(EPPMark aMark) Constructor that takes just the mark attribute of theEPPLaunchCodeMark.EPPLaunchCodeMark(String aCode) Constructor that takes just the code attribute of theEPPLaunchCodeMark.EPPLaunchCodeMark(String aCode, EPPMark aMark) Constructor that takes both the code and mark attributes of theEPPLaunchCodeMark.EPPLaunchCodeMark(String aCode, String aValidatorId) Constructor that takes just the code attribute of theEPPLaunchCodeMarkand the validator identifier of the code.EPPLaunchCodeMark(String aCode, String aValidatorId, EPPMark aMark) Constructor that takes both the code, code validator identifier, and mark attributes of theEPPLaunchCodeMark. -
Method Summary
Modifier and TypeMethodDescriptionclone()CloneEPPLaunchCodeMark.voidDecode theEPPMarkcomponentSets all this instance's data in the given XML documentbooleanimplements a deepEPPLaunchCodeMarkcompare.getCode()Gets the mark code used to validate the mark information.getMark()Gets the mark information.Returns the XML namespace associated with theEPPCodecComponent.Gets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator that thecodeoriginates from.booleanhasCode()Is the mark code set?booleanIs both the mark code and mark set?booleanhasMark()Is the mark set?booleanIs the Validator Identifier defined?voidSets the mark code used to validate the mark information.voidSets the mark information.voidsetValidatorId(String aValidatorId) Sets the OPTIONAL Validator Identifier, which is the unique identifier for the Trademark Validator that thecodeoriginates from.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
ELM_LOCALNAME
Constant for the local name- See Also:
-
ELM_NAME
Constant for the tag name- See Also:
-
-
Constructor Details
-
EPPLaunchCodeMark
public EPPLaunchCodeMark()Default constructor forEPPLaunchCodeMark. -
EPPLaunchCodeMark
Constructor that takes just the code attribute of theEPPLaunchCodeMark.- Parameters:
aCode- Mark code
-
EPPLaunchCodeMark
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
Constructor that takes just the mark attribute of theEPPLaunchCodeMark.- Parameters:
aMark- Mark information
-
EPPLaunchCodeMark
Constructor that takes both the code and mark attributes of theEPPLaunchCodeMark.- Parameters:
aCode- Mark codeaMark- Mark information
-
EPPLaunchCodeMark
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 Details
-
clone
CloneEPPLaunchCodeMark.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPLaunchCodeMark - Throws:
CloneNotSupportedException- standard Object.clone exception
-
encode
Sets 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
Decode theEPPMarkcomponent- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root element of theEPPMark- Throws:
EPPDecodeException- Error decoding theEPPMark
-
equals
implements a deepEPPLaunchCodeMarkcompare. -
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
Gets the mark code used to validate the mark information.- Returns:
- The mark code if defined;
nullotherwise.
-
setCode
Sets the mark code used to validate the mark information.- Parameters:
aCode- The mark code
-
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
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
Gets the mark information.- Returns:
- the mark information if defined;
nullotherwise.
-
setMark
Sets the mark information.- Parameters:
aMark- The mark information
-
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.
-