|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.imag.adele.util.location.LocationUtil
this class provides methods to format location, coordinates and map server
links for following formats: (Plain)Text, Html, Xml, JavaScript
TODO:
Constructor Summary | |
LocationUtil()
|
Method Summary | |
static String |
formatDate(long date)
|
static String |
getMethodLocationMeaning(int methodLocation)
gets the Method Location Meaning |
static Element |
toElement(Document doc,
Coordinates coordinates)
formats the location in XML (DOM) |
static Element |
toElement(Document doc,
Location location)
formats the location in XML (DOM) |
static StringBuffer |
toHtml(StringBuffer sb,
Coordinates coordinates)
formats the coordinates in HTML |
static StringBuffer |
toHtml(StringBuffer sb,
Location location)
formats the location in HTML |
static StringBuffer |
toJavaScript(StringBuffer sb,
Coordinates coordinates)
formats the coordinates in JavaScript |
static StringBuffer |
toJavaScript(StringBuffer sb,
Location location)
formats the location in JavaScript |
static StringBuffer |
toText(StringBuffer sb,
Coordinates coordinates)
formats the coordinates in PlainText |
static StringBuffer |
toText(StringBuffer sb,
Location location)
formats the location in PlainText |
static StringBuffer |
toXml(StringBuffer sb,
Coordinates coordinates)
formats the coordinates in XML |
static StringBuffer |
toXml(StringBuffer sb,
Location location)
formats the location in XML (textual) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public LocationUtil()
Method Detail |
public static StringBuffer toText(StringBuffer sb, Location location)
sb
- a String Buffer to append (could be null)location
- the location
public static StringBuffer toHtml(StringBuffer sb, Location location)
sb
- a String Buffer to append (could be null)location
- the location
public static StringBuffer toXml(StringBuffer sb, Location location)
sb
- a String Buffer to append (could be null)location
- the location
public static Element toElement(Document doc, Location location)
doc
- the documentlocation
- the location
public static StringBuffer toJavaScript(StringBuffer sb, Location location)
sb
- a String Buffer to append (could be null)location
- the location
public static StringBuffer toText(StringBuffer sb, Coordinates coordinates)
sb
- a String Buffer to append (could be null)coordinates
- the coordinates
public static StringBuffer toHtml(StringBuffer sb, Coordinates coordinates)
sb
- a String Buffer to append (could be null)coordinates
- the coordinates
public static StringBuffer toXml(StringBuffer sb, Coordinates coordinates)
sb
- a String Buffer to append (could be null)coordinates
- the coordinates
public static Element toElement(Document doc, Coordinates coordinates)
doc
- the document
public static StringBuffer toJavaScript(StringBuffer sb, Coordinates coordinates)
sb
- a String Buffer to append (could be null)coordinates
- the coordinates
public static String getMethodLocationMeaning(int methodLocation)
methodLocation
- the code of the Method Location
public static String formatDate(long date)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |