|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectSymbols
@Immutable public class Symbols
The set of symbols to use for Well Known Text (WKT) parsing and formatting.
The default setting in new Symbols objects is to format WKT elements with square
brackets, as in DATUM["WGS84"]. However the WKT specification permits also curly
brackets as in DATUM("WGS84").
| referencing/geotk-referencing (download) | View source code for this class |
| Field Summary | |
|---|---|
static Symbols |
CURLY_BRACKETS
A set of symbols with parameters between parentheses, like DATUM("WGS84"). |
static Symbols |
DEFAULT
The default set of symbols. |
static Symbols |
SQUARE_BRACKETS
A set of symbols with parameters between square brackets, like DATUM["WGS84"]. |
| Constructor Summary | |
|---|---|
Symbols(Locale locale)
Creates a new set of symbols for the specified locale. |
|
| Method Summary | |
|---|---|
boolean |
containsAxis(CharSequence wkt)
Returns true if the specified WKT contains at least one AXIS[...] element. |
char[] |
getClosingBrackets()
Returns the list of caracters acceptable as closing bracket. |
char[] |
getOpeningBrackets()
Returns the list of caracters acceptable as opening bracket. |
char |
getQuote()
Returns the character used for quoting texts. |
| Methods inherited from class Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final Symbols SQUARE_BRACKETS
DATUM["WGS84"].
This is the most frequent WKT format.
public static final Symbols CURLY_BRACKETS
DATUM("WGS84").
This is a less frequent but legal WKT format.
public static final Symbols DEFAULT
| Constructor Detail |
|---|
public Symbols(Locale locale)
locale - The locale for number formatting.| Method Detail |
|---|
public final char[] getOpeningBrackets()
closingBrackets array at the same index than the opening
bracket.
public final char[] getClosingBrackets()
openingBrackets array at the same index than the closing
bracket.
public final char getQuote()
'"'.
public boolean containsAxis(CharSequence wkt)
true if the specified WKT contains at least one AXIS[...] element.
This method tries to make a quick check taking in account a minimal set of WKT syntax rules.
wkt - The WKT to inspect.
true if the given WKT contains at least one AXIS element.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||