public class EPPMark extends java.lang.Object implements EPPCodecComponent
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ELM_LOCALNAME
Constant for the mark local name
|
static java.lang.String |
ELM_NAME
Constant for the mark tag
|
static java.lang.String |
NS
Namespace URI associated with EPPLaunchExtFactory.
|
static java.lang.String |
NS_PREFIX
Namespace prefix associated with EPPLaunchExtFactory.
|
static java.lang.String |
NS_SCHEMA
XML Schema definition for EPPLaunchExtFactory
|
| Constructor and Description |
|---|
EPPMark()
Create an
EPPMark instance. |
EPPMark(java.util.List<EPPTrademark> aTrademarks,
java.util.List<EPPTreatyOrStatute> aTreatyOrStatutes,
java.util.List<EPPCourt> aCourts)
Create an
EPPMark instance with each of the supported lists
including trademarks, treaty and statutes, and courts. |
| Modifier and Type | Method and Description |
|---|---|
void |
addCourt(EPPCourt aCourt)
Adds a court to the list of courts.
|
void |
addTrademark(EPPTrademark aTrademark)
Adds a trademark to the list of trademarks.
|
void |
addTreatyOrStatute(EPPTreatyOrStatute aTreatyOrStatute)
Adds a treaty or statute to the list of treaty or statutes.
|
java.lang.Object |
clone()
Clone
EPPMark. |
void |
decode(byte[] aMarkArray)
Decode the
EPPMark attributes from the input
byte[]. |
void |
decode(org.w3c.dom.Element aElement)
Decode the
EPPMark component |
byte[] |
encode()
Encode the mark to a
byte[]. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
Sets all this instance's data in the given XML document
|
boolean |
equals(java.lang.Object aObject)
implements a deep
EPPMark compare. |
java.util.List<EPPCourt> |
getCourts()
Gets the list of courts.
|
java.lang.String |
getNamespace()
Returns the XML namespace associated with the
EPPCodecComponent. |
java.util.List<EPPTrademark> |
getTrademarks()
Gets the list of trademarks.
|
java.util.List<EPPTreatyOrStatute> |
getTreatyOrStatutes()
Gets the list of treaty or statutes.
|
boolean |
hasCourts()
Are courts defined?
|
boolean |
hasTrademarks()
Are trademarks defined?
|
boolean |
hasTreatyOrStatutes()
Are treaty or statutes defined?
|
void |
setCourts(java.util.List<EPPCourt> aCourts)
Sets the list of courts.
|
void |
setTrademarks(java.util.List<EPPTrademark> aTrademarks)
Sets the list of trademarks.
|
void |
setTreatyOrStatutes(java.util.List<EPPTreatyOrStatute> aTreatyOrStatutes)
Sets the list of treaty or statutes.
|
java.lang.String |
toString()
Implementation of
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent. |
public static final java.lang.String NS
public static final java.lang.String NS_PREFIX
public static final java.lang.String NS_SCHEMA
public static final java.lang.String ELM_LOCALNAME
public static final java.lang.String ELM_NAME
public EPPMark()
EPPMark instance. Use the setter methods to set
the attributes of the instance.public EPPMark(java.util.List<EPPTrademark> aTrademarks, java.util.List<EPPTreatyOrStatute> aTreatyOrStatutes, java.util.List<EPPCourt> aCourts)
EPPMark instance with each of the supported lists
including trademarks, treaty and statutes, and courts.aTrademarks - List of trademarks if defined; null otherwise.aTreatyOrStatutes - List of treaty or statutes if defined; null
otherwise.aCourts - List of courts if defined; null otherwise.public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPMark.clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPMarkjava.lang.CloneNotSupportedException - standard Object.clone exceptionpublic byte[] encode()
throws EPPEncodeException
byte[].EPPEncodeException - Error encoding the markpublic org.w3c.dom.Element encode(org.w3c.dom.Document aDocument)
throws EPPEncodeException
encode in interface EPPCodecComponentaDocument - a DOM Document to attach data to.EPPEncodeException - Thrown if any errors prevent encoding.public void decode(byte[] aMarkArray)
throws EPPDecodeException
EPPMark attributes from the input
byte[].aMarkArray - byte[] to decode the attribute valuesEPPDecodeException - Error decoding the byte[].public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPMark componentdecode in interface EPPCodecComponentaElement - Root element of the EPPMarkEPPDecodeException - Error decoding the EPPMarkpublic boolean equals(java.lang.Object aObject)
EPPMark compare.equals in class java.lang.ObjectaObject - EPPMark instance to compare withpublic boolean hasTrademarks()
true if trademarks are defined; false
otherwise.public java.util.List<EPPTrademark> getTrademarks()
null otherwise.public void setTrademarks(java.util.List<EPPTrademark> aTrademarks)
aTrademarks - List of trademarkspublic void addTrademark(EPPTrademark aTrademark)
aTrademark - Trademark to add to the list of trademarks.public boolean hasTreatyOrStatutes()
true if treaty or statutes are defined;
false otherwise.public java.util.List<EPPTreatyOrStatute> getTreatyOrStatutes()
null otherwise.public void setTreatyOrStatutes(java.util.List<EPPTreatyOrStatute> aTreatyOrStatutes)
aTreatyOrStatutes - List of trademarkspublic void addTreatyOrStatute(EPPTreatyOrStatute aTreatyOrStatute)
aTreatyOrStatute - Treaty or statute to add to the list of treaty or statutes.public boolean hasCourts()
true if courts are defined; false
otherwise.public java.util.List<EPPCourt> getCourts()
null otherwise.public void setCourts(java.util.List<EPPCourt> aCourts)
aCourts - List of courtspublic void addCourt(EPPCourt aCourt)
aCourt - Court to add to the list of courts.public java.lang.String toString()
Object.toString, which will result in an
indented XML String representation of the concrete
EPPCodecComponent.toString in class java.lang.ObjectString if successful;
ERROR otherwise.public java.lang.String getNamespace()
EPPCodecComponent.getNamespace in interface EPPCodecComponentEPPCodecComponent.