|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.verisign.epp.codec.mark.EPPMark
public class EPPMark
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.
| Field Summary | |
|---|---|
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 Summary | |
|---|---|
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. |
|
| Method Summary | |
|---|---|
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.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. |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
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
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPMark.
clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPMark
java.lang.CloneNotSupportedException - standard Object.clone exception
public byte[] encode()
throws EPPEncodeException
byte[].
EPPEncodeException - Error encoding the mark
public 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 values
EPPDecodeException - Error decoding the byte[].
public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPMark component
decode in interface EPPCodecComponentaElement - Root element of the EPPMark
EPPDecodeException - Error decoding the EPPMarkpublic boolean equals(java.lang.Object aObject)
EPPMark compare.
equals in class java.lang.ObjectaObject - EPPMark instance to compare with
public 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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||