Package com.verisign.epp.codec.mark
Class EPPMark
java.lang.Object
com.verisign.epp.codec.mark.EPPMark
- All Implemented Interfaces:
EPPCodecComponent,Serializable,Cloneable
Class for a Mark that can contain a list of trademarks, treaty or statutes,
and courts. The Mark includes a set of attributes that are used to verify the
eligibility for the registration of a domain name.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringConstant for the mark local namestatic final StringConstant for the mark tagstatic final StringNamespace URI associated with EPPLaunchExtFactory.static final StringNamespace prefix associated with EPPLaunchExtFactory.static final StringXML Schema definition for EPPLaunchExtFactory -
Constructor Summary
ConstructorsConstructorDescriptionEPPMark()Create anEPPMarkinstance.EPPMark(List<EPPTrademark> aTrademarks, List<EPPTreatyOrStatute> aTreatyOrStatutes, List<EPPCourt> aCourts) Create anEPPMarkinstance with each of the supported lists including trademarks, treaty and statutes, and courts. -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds a court to the list of courts.voidaddTrademark(EPPTrademark aTrademark) Adds a trademark to the list of trademarks.voidaddTreatyOrStatute(EPPTreatyOrStatute aTreatyOrStatute) Adds a treaty or statute to the list of treaty or statutes.clone()CloneEPPMark.voiddecode(byte[] aMarkArray) Decode theEPPMarkattributes from the inputbyte[].voidDecode theEPPMarkcomponentbyte[]encode()Encode the mark to abyte[].Sets all this instance's data in the given XML documentbooleanimplements a deepEPPMarkcompare.Gets the list of courts.Returns the XML namespace associated with theEPPCodecComponent.Gets the list of trademarks.Gets the list of treaty or statutes.booleanAre courts defined?booleanAre trademarks defined?booleanAre treaty or statutes defined?voidSets the list of courts.voidsetTrademarks(List<EPPTrademark> aTrademarks) Sets the list of trademarks.voidsetTreatyOrStatutes(List<EPPTreatyOrStatute> aTreatyOrStatutes) Sets the list of treaty or statutes.toString()Implementation ofObject.toString, which will result in an indented XMLStringrepresentation of the concreteEPPCodecComponent.
-
Field Details
-
NS
Namespace URI associated with EPPLaunchExtFactory.- See Also:
-
NS_PREFIX
Namespace prefix associated with EPPLaunchExtFactory.- See Also:
-
NS_SCHEMA
XML Schema definition for EPPLaunchExtFactory- See Also:
-
ELM_LOCALNAME
Constant for the mark local name- See Also:
-
ELM_NAME
Constant for the mark tag- See Also:
-
-
Constructor Details
-
EPPMark
public EPPMark()Create anEPPMarkinstance. Use the setter methods to set the attributes of the instance. -
EPPMark
public EPPMark(List<EPPTrademark> aTrademarks, List<EPPTreatyOrStatute> aTreatyOrStatutes, List<EPPCourt> aCourts) Create anEPPMarkinstance with each of the supported lists including trademarks, treaty and statutes, and courts.- Parameters:
aTrademarks- List of trademarks if defined;nullotherwise.aTreatyOrStatutes- List of treaty or statutes if defined;nullotherwise.aCourts- List of courts if defined;nullotherwise.
-
-
Method Details
-
clone
CloneEPPMark.- Specified by:
clonein interfaceEPPCodecComponent- Overrides:
clonein classObject- Returns:
- clone of
EPPMark - Throws:
CloneNotSupportedException- standard Object.clone exception
-
encode
Encode the mark to abyte[].- Returns:
- Encoded mark
- Throws:
EPPEncodeException- Error encoding the mark
-
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 theEPPMarkattributes from the inputbyte[].- Parameters:
aMarkArray-byte[]to decode the attribute values- Throws:
EPPDecodeException- Error decoding thebyte[].
-
decode
Decode theEPPMarkcomponent- Specified by:
decodein interfaceEPPCodecComponent- Parameters:
aElement- Root element of theEPPMark- Throws:
EPPDecodeException- Error decoding theEPPMark
-
equals
implements a deepEPPMarkcompare. -
hasTrademarks
public boolean hasTrademarks()Are trademarks defined?- Returns:
trueif trademarks are defined;falseotherwise.
-
getTrademarks
Gets the list of trademarks.- Returns:
- List of trademarks if set;
nullotherwise.
-
setTrademarks
Sets the list of trademarks.- Parameters:
aTrademarks- List of trademarks
-
addTrademark
Adds a trademark to the list of trademarks.- Parameters:
aTrademark- Trademark to add to the list of trademarks.
-
hasTreatyOrStatutes
public boolean hasTreatyOrStatutes()Are treaty or statutes defined?- Returns:
trueif treaty or statutes are defined;falseotherwise.
-
getTreatyOrStatutes
Gets the list of treaty or statutes.- Returns:
- List of treaty or statutes if set;
nullotherwise.
-
setTreatyOrStatutes
Sets the list of treaty or statutes.- Parameters:
aTreatyOrStatutes- List of trademarks
-
addTreatyOrStatute
Adds a treaty or statute to the list of treaty or statutes.- Parameters:
aTreatyOrStatute- Treaty or statute to add to the list of treaty or statutes.
-
hasCourts
public boolean hasCourts()Are courts defined?- Returns:
trueif courts are defined;falseotherwise.
-
getCourts
Gets the list of courts.- Returns:
- List of courts if set;
nullotherwise.
-
setCourts
Sets the list of courts.- Parameters:
aCourts- List of courts
-
addCourt
Adds a court to the list of courts.- Parameters:
aCourt- Court to add to the list of courts.
-
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.
-