|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.verisign.epp.codec.suggestion.EPPSuggestionAction
public class EPPSuggestionAction
Encapsulates a server action to be taken by the Name Suggestions application. Actions indicate how Name Suggestions should be constructed. For intance, the Basic action constructs suggestions by adding a prefix or suffix to the original input. The server can support an unlimited number of actions.
Constructor Summary | |
---|---|
EPPSuggestionAction()
Constructor. |
|
EPPSuggestionAction(org.w3c.dom.Element aElement)
Constructor. |
|
EPPSuggestionAction(java.lang.String aName,
java.lang.String aWeight)
Constructor. |
Method Summary | |
---|---|
java.lang.Object |
clone()
clone an EPPCodecComponent . |
void |
decode(org.w3c.dom.Element aElement)
decode a DOM element tree to initialize the instance attributes. |
org.w3c.dom.Element |
encode(org.w3c.dom.Document aDocument)
encode instance into a DOM element tree. |
boolean |
equals(java.lang.Object o)
|
java.lang.String |
getName()
Name getter. |
WeightEnum |
getWeight()
Weight getter. |
void |
setName(java.lang.String aName)
Name setter. |
void |
setWeight(java.lang.String aWeight)
Weight setter. |
java.lang.String |
toLogString()
Return a string representation for logging purpose. |
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 |
Constructor Detail |
---|
public EPPSuggestionAction()
public EPPSuggestionAction(org.w3c.dom.Element aElement) throws EPPDecodeException
aElement
- a DOM Element
EPPDecodeException
public EPPSuggestionAction(java.lang.String aName, java.lang.String aWeight) throws InvalidValueException
aName
- an action nameaWeight
- an action weight
InvalidValueException
Method Detail |
---|
public java.lang.String getName()
public WeightEnum getWeight()
public void setName(java.lang.String aName)
aName
- a namepublic void setWeight(java.lang.String aWeight) throws InvalidValueException
aWeight
- a weight
InvalidValueException
public java.lang.String toLogString()
public void decode(org.w3c.dom.Element aElement) throws EPPDecodeException
EPPCodecComponent
aElement
argument represents the root DOM element and is
used to traverse the DOM nodes for instance attribute values. EPPCommand
is
passed into decode
of EPPCommand to be decoded and
used to set the instance attributes.
decode
in interface EPPCodecComponent
aElement
- root DOM element associated with instance
EPPDecodeException
- Error decoding the DOM element tree.public org.w3c.dom.Element encode(org.w3c.dom.Document aDocument) throws EPPEncodeException
EPPCodecComponent
EPPCommand
is
created and is used to append the attribute nodes of
EPPCommand
.
encode
in interface EPPCodecComponent
aDocument
- DOM document used as a factory of DOM objects.
EPPEncodeException
- Error encoding the DOM element tree.public java.lang.Object clone() throws java.lang.CloneNotSupportedException
EPPCodecComponent
EPPCodecComponent
.
clone
in interface EPPCodecComponent
clone
in class java.lang.Object
EPPCodecComponent
java.lang.CloneNotSupportedException
- standard Object.clone exceptionpublic java.lang.String toString()
Object.toString
, which will result in an
indented XML String
representation of the concrete
EPPCodecComponent
.
toString
in class java.lang.Object
String
if successful;
ERROR
otherwise.public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |