|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.verisign.epp.codec.suggestion.EPPSuggestionCoordinates
public class EPPSuggestionCoordinates
A Coordinates with latitude and longitude as Double. This is used for geolocation suggestions.
| Constructor Summary | |
|---|---|
EPPSuggestionCoordinates()
Constructor. |
|
EPPSuggestionCoordinates(double aLat,
double aLng)
Constructor. |
|
EPPSuggestionCoordinates(org.w3c.dom.Element aElement)
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.Double |
getLat()
Latitude Getter. |
java.lang.Double |
getLng()
Longitude getter. |
void |
setLat(java.lang.Double aLat)
Latitude setter. |
void |
setLat(java.lang.String aLatAsString)
Latitude setter. |
void |
setLng(java.lang.Double aLng)
Longitude setter. |
void |
setLng(java.lang.String aLngAsString)
Longitude setter. |
java.lang.String |
toLogString()
Coordinates as string for log 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 EPPSuggestionCoordinates()
public EPPSuggestionCoordinates(org.w3c.dom.Element aElement)
throws EPPDecodeException
aElement - a dom element
EPPDecodeException
public EPPSuggestionCoordinates(double aLat,
double aLng)
throws InvalidValueException
aLat - a latitudeaLng - a longitude
InvalidValueException| Method Detail |
|---|
public java.lang.Double getLat()
public java.lang.Double getLng()
public void setLat(java.lang.Double aLat)
aLat - a latitudepublic void setLng(java.lang.Double aLng)
aLng - a longitudepublic void setLat(java.lang.String aLatAsString)
aLatAsString - a latitude as stringpublic void setLng(java.lang.String aLngAsString)
aLngAsString - a longitude as stringpublic java.lang.String toLogString()
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
EPPCodecComponentEPPCodecComponent.
clone in interface EPPCodecComponentclone in class java.lang.ObjectEPPCodecComponent
java.lang.CloneNotSupportedException - standard Object.clone exception
public void decode(org.w3c.dom.Element aElement)
throws EPPDecodeException
EPPCodecComponentaElement 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 EPPCodecComponentaElement - 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
EPPCodecComponentEPPCommand is
created and is used to append the attribute nodes of
EPPCommand.
encode in interface EPPCodecComponentaDocument - DOM document used as a factory of DOM objects.
EPPEncodeException - Error encoding the DOM element tree.public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic 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 | |||||||||