org.deegree_impl.model.pt
Class AngleFormat

java.lang.Object
  extended byjava.text.Format
      extended byorg.deegree_impl.model.pt.AngleFormat
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class AngleFormat
extends java.text.Format

Parse and format angle according a specified pattern. The pattern is a string containing any characters, with a special meaning for the following characters:

D  The integer part of degrees
d  The fractional part of degrees
M  The integer part of minutes
m  The fractional part of minutes
S  The integer part of seconds
s  The fractional part of seconds
.  The decimal separator

Upper-case letters D, M and S are for the integer parts of degrees, minutes and seconds respectively. They must appear in this order (e.g. "M'D" is illegal because "M" and "S" are inverted; "D°S" is illegal too because there is no "M" between "D" and "S"). Lower-case letters d, m and s are for fractional parts of degrees, minutes and seconds respectively. Only one of those may appears in a pattern, and it must be the last special symbol (e.g. "D.dd°MM'" is illegal because "d" is followed by "M"; "D.mm" is illegal because "m" is not the fractional part of "D").

The number of occurrence of D, M, S and their lower-case counterpart is the number of digits to format. For example, "DD.ddd" will format angle with two digits for the integer part and three digits for the fractional part (e.g. 4.4578 will be formatted as "04.458"). Separator characters like °, ' and " and inserted "as-is" in the formatted string (except the decimal separator dot ("."), which is replaced by the local-dependent decimal separator). Separator characters may be completely omitted; AngleFormat will still differentiate degrees, minutes and seconds fields according the pattern. For example, "0480439" with the pattern "DDDMMmm" will be parsed as 48°04.39'.

The following table gives some examples of legal patterns.
Pattern Example
DD°MM'SS" 48°30'00"
DD°MM' 48°30'
DD.ddd 48.500
DDMM 4830
DDMMSS 483000

Version:
1.0
Author:
Martin Desruisseaux
See Also:
Angle, Latitude, Longitude, Serialized Form

Nested Class Summary
 
Nested classes inherited from class java.text.Format
java.text.Format.Field
 
Field Summary
(package private) static int ALTITUDE
          Constante indique que le nombre à formater est une altitude.
private  boolean decimalSeparator
          Indique s'il faut utiliser le séparateur décimal pour séparer la partie entière de la partie fractionnaire.
static int DEGREES_FIELD
          Constant for degrees field.
private  java.text.FieldPosition dummy
          Objet à transmetre aux méthodes DecimalFormat.format.
private static char EAST
          Caractère représentant l'hémisphère est.
static int HEMISPHERE_FIELD
          Constant for hemisphere field.
(package private) static int LATITUDE
          Constante indique que l'angle à formater est une latitude.
(package private) static int LONGITUDE
          Constante indique que l'angle à formater est une longitude.
static int MINUTES_FIELD
          Constant for minutes field.
private static char NORTH
          Caractère représentant l'hémisphère nord.
private  java.text.DecimalFormat numberFormat
          Format à utiliser pour écrire les nombres (degrés, minutes ou secondes) à l'intérieur de l'écriture d'un angle.
private  java.lang.String prefix
          Caractères à insérer au début (prefix) et à la suite des degrés, minutes et secondes (suffix0..2).
private static int PREFIX_FIELD
          A constant for the symbol to appears before the degrees fields.
static int SECONDS_FIELD
          Constant for seconds field.
private static char SOUTH
          Caractère représentant l'hémisphère sud.
private  java.lang.String suffix0
          Caractères à insérer au début (prefix) et à la suite des degrés, minutes et secondes (suffix0..2).
private  java.lang.String suffix1
          Caractères à insérer au début (prefix) et à la suite des degrés, minutes et secondes (suffix0..2).
private  java.lang.String suffix2
          Caractères à insérer au début (prefix) et à la suite des degrés, minutes et secondes (suffix0..2).
private static char[] SYMBOLS
          Symboles représentant les degrés (0), minutes (1) et les secondes (2).
private static char WEST
          Caractère représentant l'hémisphère ouest.
private  int width0
          Nombre minimal d'espaces que doivent occuper les parties entières des degrés (0), minutes (1) et secondes (2).
private  int width1
          Nombre minimal d'espaces que doivent occuper les parties entières des degrés (0), minutes (1) et secondes (2).
private  int width2
          Nombre minimal d'espaces que doivent occuper les parties entières des degrés (0), minutes (1) et secondes (2).
private  int widthDecimal
          Nombre minimal d'espaces que doivent occuper les parties entières des degrés (0), minutes (1) et secondes (2).
 
Fields inherited from class java.text.Format
 
Constructor Summary
AngleFormat()
          Construct a new AngleFormat using the current default locale and a default pattern.
AngleFormat(java.lang.String pattern)
          Construct a new AngleFormat using the current default locale and the specified pattern.
AngleFormat(java.lang.String pattern, java.text.DecimalFormatSymbols symbols)
          Construct a new AngleFormat using the specified pattern and decimal symbols.
AngleFormat(java.lang.String pattern, java.util.Locale locale)
          Construct a new AngleFormat using the specified pattern and locale.
 
Method Summary
 void applyPattern(java.lang.String pattern)
          Set the pattern to use for parsing and formatting angle.
(package private) static void checkComplete(java.lang.String source, java.text.ParsePosition pos, boolean isCoordinate)
          Vérifie si l'interprétation d'une chaîne de caractères a été complète.
 boolean equals(java.lang.Object obj)
          Compare this format with the specified object for equality.
 java.lang.String format(double angle)
          Format an angle.
(package private)  java.lang.StringBuffer format(double number, int type, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
          Procède à l'écriture d'un angle, d'une latitude ou d'une longitude.
 java.lang.StringBuffer format(double angle, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
          Formats an angle and appends the resulting text to a given string buffer.
private  java.lang.StringBuffer format(double angle, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos, char north, char south)
          Procède à l'écriture d'un angle suivit d'un suffix 'N','S','E' ou 'W'.
 java.lang.StringBuffer format(java.lang.Object obj, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
          Formats an angle, a latitude or a longitude and appends the resulting text to a given string buffer.
private  java.lang.StringBuffer formatField(double value, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos, int w, boolean last, java.lang.String s)
          Procède à l'écriture d'un champ de l'angle.
private  java.lang.String getSuffix(int index)
          Returns the suffix for the specified field.
private  int getWidth(int index)
          Returns the width of the specified field.
 int hashCode()
          Returns a "hash value" for this object.
 Angle parse(java.lang.String source)
          Parse a string as an angle.
 Angle parse(java.lang.String source, java.text.ParsePosition pos)
          Parse a string as an angle.
private  Angle parse(java.lang.String source, java.text.ParsePosition pos, boolean spaceAsSeparator)
          Interprète une chaîne de caractères représentant un angle.
(package private)  java.lang.Number parseNumber(java.lang.String source, java.text.ParsePosition pos)
          Interprète une chaîne de caractères qui devrait représenter un nombre.
 java.lang.Object parseObject(java.lang.String source)
          Parse a string as an object.
 java.lang.Object parseObject(java.lang.String source, java.text.ParsePosition pos)
          Parse a substring as an angle.
private  void readObject(java.io.ObjectInputStream in)
          Restore fields after deserialization.
private  void setSuffix(int index, java.lang.String s)
          Set the suffix for the specified field.
private  void setWidth(int index, int width)
          Set the width for the specified field.
private  int skipSuffix(java.lang.String source, java.text.ParsePosition pos, int field)
          Ignore le suffix d'un nombre.
 java.lang.String toPattern()
          Returns the pattern used for parsing and formatting angles.
 java.lang.String toString()
          Returns a string representation of this object.
 
Methods inherited from class java.text.Format
clone, format, formatToCharacterIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

NORTH

private static final char NORTH
Caractère représentant l'hémisphère nord. Il doit obligatoirement être en majuscule.

See Also:
Constant Field Values

SOUTH

private static final char SOUTH
Caractère représentant l'hémisphère sud. Il doit obligatoirement être en majuscule.

See Also:
Constant Field Values

EAST

private static final char EAST
Caractère représentant l'hémisphère est. Il doit obligatoirement être en majuscule.

See Also:
Constant Field Values

WEST

private static final char WEST
Caractère représentant l'hémisphère ouest. Il doit obligatoirement être en majuscule.

See Also:
Constant Field Values

LONGITUDE

static final int LONGITUDE
Constante indique que l'angle à formater est une longitude.

See Also:
Constant Field Values

LATITUDE

static final int LATITUDE
Constante indique que l'angle à formater est une latitude.

See Also:
Constant Field Values

ALTITUDE

static final int ALTITUDE
Constante indique que le nombre à formater est une altitude.

See Also:
Constant Field Values

PREFIX_FIELD

private static final int PREFIX_FIELD
A constant for the symbol to appears before the degrees fields. Fields PREFIX, DEGREES, MINUTES and SECONDS must have increasing values (-1, 0, +1, +2, +3).

See Also:
Constant Field Values

DEGREES_FIELD

public static final int DEGREES_FIELD
Constant for degrees field. When formatting a string, this value may be specified to the FieldPosition constructor in order to get the bounding index where degrees have been written.

See Also:
Constant Field Values

MINUTES_FIELD

public static final int MINUTES_FIELD
Constant for minutes field. When formatting a string, this value may be specified to the FieldPosition constructor in order to get the bounding index where minutes have been written.

See Also:
Constant Field Values

SECONDS_FIELD

public static final int SECONDS_FIELD
Constant for seconds field. When formatting a string, this value may be specified to the FieldPosition constructor in order to get the bounding index where seconds have been written.

See Also:
Constant Field Values

HEMISPHERE_FIELD

public static final int HEMISPHERE_FIELD
Constant for hemisphere field. When formatting a string, this value may be specified to the FieldPosition constructor in order to get the bounding index where the hemisphere synbol has been written.

See Also:
Constant Field Values

SYMBOLS

private static final char[] SYMBOLS
Symboles représentant les degrés (0), minutes (1) et les secondes (2).


width0

private int width0
Nombre minimal d'espaces que doivent occuper les parties entières des degrés (0), minutes (1) et secondes (2). Le champs widthDecimal indique la largeur fixe que doit avoir la partie décimale. Il s'appliquera au dernier champs non-zero dans width0..2.


width1

private int width1
Nombre minimal d'espaces que doivent occuper les parties entières des degrés (0), minutes (1) et secondes (2). Le champs widthDecimal indique la largeur fixe que doit avoir la partie décimale. Il s'appliquera au dernier champs non-zero dans width0..2.


width2

private int width2
Nombre minimal d'espaces que doivent occuper les parties entières des degrés (0), minutes (1) et secondes (2). Le champs widthDecimal indique la largeur fixe que doit avoir la partie décimale. Il s'appliquera au dernier champs non-zero dans width0..2.


widthDecimal

private int widthDecimal
Nombre minimal d'espaces que doivent occuper les parties entières des degrés (0), minutes (1) et secondes (2). Le champs widthDecimal indique la largeur fixe que doit avoir la partie décimale. Il s'appliquera au dernier champs non-zero dans width0..2.


prefix

private java.lang.String prefix
Caractères à insérer au début (prefix) et à la suite des degrés, minutes et secondes (suffix0..2). Ces champs doivent être null s'il n'y a rien à insérer.


suffix0

private java.lang.String suffix0
Caractères à insérer au début (prefix) et à la suite des degrés, minutes et secondes (suffix0..2). Ces champs doivent être null s'il n'y a rien à insérer.


suffix1

private java.lang.String suffix1
Caractères à insérer au début (prefix) et à la suite des degrés, minutes et secondes (suffix0..2). Ces champs doivent être null s'il n'y a rien à insérer.


suffix2

private java.lang.String suffix2
Caractères à insérer au début (prefix) et à la suite des degrés, minutes et secondes (suffix0..2). Ces champs doivent être null s'il n'y a rien à insérer.


decimalSeparator

private boolean decimalSeparator
Indique s'il faut utiliser le séparateur décimal pour séparer la partie entière de la partie fractionnaire. La valeur false indique que les parties entières et fractionnaires doivent être écrites ensembles (par exemple 34867 pour 34.867). La valeur par défaut est true.


numberFormat

private final java.text.DecimalFormat numberFormat
Format à utiliser pour écrire les nombres (degrés, minutes ou secondes) à l'intérieur de l'écriture d'un angle.


dummy

private transient java.text.FieldPosition dummy
Objet à transmetre aux méthodes DecimalFormat.format. Ce paramètre existe simplement pour éviter de créer cet objet trop souvent, alors qu'on ne s'y intéresse pas.

Constructor Detail

AngleFormat

public AngleFormat()
Construct a new AngleFormat using the current default locale and a default pattern.


AngleFormat

public AngleFormat(java.lang.String pattern)
            throws java.lang.IllegalArgumentException
Construct a new AngleFormat using the current default locale and the specified pattern.

Parameters:
pattern - Pattern to use for parsing and formatting angle. See class description for an explanation of how this pattern work.
Throws:
java.lang.IllegalArgumentException - If the specified pattern is not legal.

AngleFormat

public AngleFormat(java.lang.String pattern,
                   java.util.Locale locale)
            throws java.lang.IllegalArgumentException
Construct a new AngleFormat using the specified pattern and locale.

Parameters:
pattern - Pattern to use for parsing and formatting angle. See class description for an explanation of how this pattern work.
locale - Locale to use.
Throws:
java.lang.IllegalArgumentException - If the specified pattern is not legal.

AngleFormat

public AngleFormat(java.lang.String pattern,
                   java.text.DecimalFormatSymbols symbols)
Construct a new AngleFormat using the specified pattern and decimal symbols.

Parameters:
pattern - Pattern to use for parsing and formatting angle. See class description for an explanation of how this pattern work.
symbols - The symbols to use for parsing and formatting numbers.
Throws:
java.lang.IllegalArgumentException - If the specified pattern is not legal.
Method Detail

readObject

private void readObject(java.io.ObjectInputStream in)
                 throws java.io.IOException,
                        java.lang.ClassNotFoundException
Restore fields after deserialization.

Throws:
java.io.IOException
java.lang.ClassNotFoundException

getWidth

private int getWidth(int index)
Returns the width of the specified field.


setWidth

private void setWidth(int index,
                      int width)
Set the width for the specified field. All folowing fields will be set to 0.


getSuffix

private java.lang.String getSuffix(int index)
Returns the suffix for the specified field.


setSuffix

private void setSuffix(int index,
                       java.lang.String s)
Set the suffix for the specified field. Suffix for all following fields will be set to their default value.


applyPattern

public void applyPattern(java.lang.String pattern)
                  throws java.lang.IllegalArgumentException
Set the pattern to use for parsing and formatting angle. See class description for an explanation of how patterns work.

Parameters:
pattern - Pattern to use for parsing and formatting angle.
Throws:
java.lang.IllegalArgumentException - If the specified pattern is not legal.

toPattern

public java.lang.String toPattern()
Returns the pattern used for parsing and formatting angles. See class description for an explanation of how patterns work.


format

public final java.lang.String format(double angle)
Format an angle. The string will be formatted according the pattern set in the last call to applyPattern(java.lang.String).

Parameters:
angle - Angle to format, in degrees.
Returns:
The formatted string.

format

public java.lang.StringBuffer format(double angle,
                                     java.lang.StringBuffer toAppendTo,
                                     java.text.FieldPosition pos)
Formats an angle and appends the resulting text to a given string buffer. The string will be formatted according the pattern set in the last call to applyPattern(java.lang.String).

Parameters:
angle - Angle to format, in degrees.
toAppendTo - Where the text is to be appended.
pos - An optional FieldPosition identifying a field in the formatted text, or null if this information is not wanted. This field position shall be constructed with one of the following constants: DEGREES_FIELD, MINUTES_FIELD, SECONDS_FIELD or HEMISPHERE_FIELD.
Returns:
The string buffer passed in as toAppendTo, with formatted text appended.

formatField

private java.lang.StringBuffer formatField(double value,
                                           java.lang.StringBuffer toAppendTo,
                                           java.text.FieldPosition pos,
                                           int w,
                                           boolean last,
                                           java.lang.String s)
Procède à l'écriture d'un champ de l'angle.

Parameters:
value - Valeur à écrire.
toAppendTo - Buffer dans lequel écrire le champs.
pos - Objet dans lequel mémoriser les index des premiers et derniers caractères écrits, ou null pour ne pas mémoriser ces index.
w - Nombre de minimal caractères de la partie entière.
last - true si ce champs est le dernier, et qu'il faut donc écrire la partie décimale.
s - Suffix à écrire après le nombre (peut être nul).

format

public java.lang.StringBuffer format(java.lang.Object obj,
                                     java.lang.StringBuffer toAppendTo,
                                     java.text.FieldPosition pos)
                              throws java.lang.IllegalArgumentException
Formats an angle, a latitude or a longitude and appends the resulting text to a given string buffer. The string will be formatted according the pattern set in the last call to applyPattern(java.lang.String). The argument obj shall be an Angle object or one of its derived class (Latitude, Longitude). If obj is a Latitude object, then a symbol "N" or "S" will be appended to the end of the string (the symbol will be choosen according the angle's sign). Otherwise, if obj is a Longitude object, then a symbol "E" or "W" will be appended to the end of the string. Otherwise, no hemisphere symbol will be appended.

Strictly speaking, formatting ordinary numbers is not the AngleFormat's job. Nevertheless, this method accept Number objects. This capability is provided only as a convenient way to format altitude numbers together with longitude and latitude angles.

Parameters:
obj - Angle or Number object to format.
toAppendTo - Where the text is to be appended.
pos - An optional FieldPosition identifying a field in the formatted text, or null if this information is not wanted. This field position shall be constructed with one of the following constants: DEGREES_FIELD, MINUTES_FIELD, SECONDS_FIELD or HEMISPHERE_FIELD.
Returns:
The string buffer passed in as toAppendTo, with formatted text appended.
Throws:
java.lang.IllegalArgumentException - if obj if not an object of class Angle or Number.

format

java.lang.StringBuffer format(double number,
                              int type,
                              java.lang.StringBuffer toAppendTo,
                              java.text.FieldPosition pos)
Procède à l'écriture d'un angle, d'une latitude ou d'une longitude.

Parameters:
type - Type de l'angle ou du nombre: LONGITUDE, LATITUDE ou ALTITUDE.
toAppendTo - Buffer dans lequel écrire l'angle.
pos - En entré, le code du champs dont on désire les index (DEGREES_FIELD, MINUTES_FIELD, SECONDS_FIELD ou HEMISPHERE_FIELD). En sortie, les index du champs demandé. Ce paramètre peut être nul si cette information n'est pas désirée.
Returns:
Le buffer toAppendTo par commodité.

format

private java.lang.StringBuffer format(double angle,
                                      java.lang.StringBuffer toAppendTo,
                                      java.text.FieldPosition pos,
                                      char north,
                                      char south)
Procède à l'écriture d'un angle suivit d'un suffix 'N','S','E' ou 'W'. L'angle sera formaté en utilisant comme modèle le patron spécifié lors du dernier appel de la méthode applyPattern(java.lang.String).

Parameters:
angle - Angle à écrire, en degrés.
toAppendTo - Buffer dans lequel écrire l'angle.
pos - En entré, le code du champs dont on désire les index (DEGREES_FIELD, MINUTES_FIELD, SECONDS_FIELD ou HEMISPHERE_FIELD). En sortie, les index du champs demandé. Ce paramètre peut être nul si cette information n'est pas désirée.
north - Caractères à écrire si l'angle est positif ou nul.
south - Caractères à écrire si l'angle est négatif.
Returns:
Le buffer toAppendTo par commodité.

skipSuffix

private int skipSuffix(java.lang.String source,
                       java.text.ParsePosition pos,
                       int field)
Ignore le suffix d'un nombre. Cette méthode est appellée par la méthode parse(java.lang.String, java.text.ParsePosition) pour savoir quel champs il vient de lire. Par exemple si l'on vient de lire les degrés dans "48°12'", alors cette méthode extraira le "°" et retournera 0 pour indiquer que l'on vient de lire des degrés. Cette méthode se chargera d'ignorer les espaces qui précèdent le suffix. Elle tentera ensuite de d'abord interpréter le suffix selon les symboles du patron (spécifié avec applyPattern(java.lang.String). Si le suffix n'a pas été reconnus, elle tentera ensuite de le comparer aux symboles standards (° ' ").

Parameters:
source - Chaîne dans laquelle on doit sauter le suffix.
pos - En entré, l'index du premier caractère à considérer dans la chaîne pos. En sortie, l'index du premier caractère suivant le suffix (c'est-à-dire index à partir d'où continuer la lecture après l'appel de cette méthode). Si le suffix n'a pas été reconnu, alors cette méthode retourne par convention SYMBOLS.length.
field - Champs à vérifier de préférences. Par exemple la valeur 1 signifie que les suffix des minutes et des secondes devront être vérifiés avant celui des degrés.
Returns:
Le numéro du champs correspondant au suffix qui vient d'être extrait: -1 pour le préfix de l'angle, 0 pour le suffix des degrés, 1 pour le suffix des minutes et 2 pour le suffix des secondes. Si le texte n'a pas été reconnu, retourne SYMBOLS.length.

parse

public Angle parse(java.lang.String source,
                   java.text.ParsePosition pos)
Parse a string as an angle. This method can parse an angle even if it doesn't comply exactly to the expected pattern. For example, this method will parse correctly string "48°12.34'" even if the expected pattern was "DDMM.mm" (i.e. the string should have been "4812.34"). Spaces between degrees, minutes and secondes are ignored. If the string ends with an hemisphere symbol "N" or "S", then this method returns an object of class Latitude. Otherwise, if the string ends with an hemisphere symbol "E" or "W", then this method returns an object of class Longitude. Otherwise, this method returns an object of class Angle.

Parameters:
source - A String whose beginning should be parsed.
pos - Position where to start parsing.
Returns:
The parsed string as an Angle, Latitude or Longitude object.

parse

private Angle parse(java.lang.String source,
                    java.text.ParsePosition pos,
                    boolean spaceAsSeparator)
Interprète une chaîne de caractères représentant un angle. Les règles d'interprétation de cette méthode sont assez souples. Par exemple cettte méthode interprétera correctement la chaîne "48°12.34'" même si le patron attendu était "DDMM.mm" (c'est-à-dire que la chaîne aurait du être "4812.34"). Les espaces entre les degrés, minutes et secondes sont acceptés. Si l'angle est suivit d'un symbole "N" ou "S", alors l'objet retourné sera de la classe Latitude. S'il est plutot suivit d'un symbole "E" ou "W", alors l'objet retourné sera de la classe Longitude. Sinon, il sera de la classe Angle.

Parameters:
source - Chaîne de caractères à lire.
pos - Position à partir d'où interpréter la chaîne.
spaceAsSeparator - Indique si l'espace est accepté comme séparateur à l'intérieur d'un angle. La valeur true fait que l'angle "45 30" sera interprété comme "45°30".
Returns:
L'angle lu.

parse

public Angle parse(java.lang.String source)
            throws java.text.ParseException
Parse a string as an angle.

Parameters:
source - The string to parse.
Returns:
The parsed string as an Angle, Latitude or Longitude object.
Throws:
java.text.ParseException - if the string has not been fully parsed.

parseObject

public java.lang.Object parseObject(java.lang.String source,
                                    java.text.ParsePosition pos)
Parse a substring as an angle. Default implementation invokes parse(String, ParsePosition).

Parameters:
source - A String whose beginning should be parsed.
pos - Position where to start parsing.
Returns:
The parsed string as an Angle, Latitude or Longitude object.

parseObject

public java.lang.Object parseObject(java.lang.String source)
                             throws java.text.ParseException
Parse a string as an object. Default implementation invokes parse(String).

Parameters:
source - The string to parse.
Returns:
The parsed string as an Angle, Latitude or Longitude object.
Throws:
java.text.ParseException - if the string has not been fully parsed.

parseNumber

final java.lang.Number parseNumber(java.lang.String source,
                                   java.text.ParsePosition pos)
Interprète une chaîne de caractères qui devrait représenter un nombre. Cette méthode est utile pour lire une altitude après les angles.

Parameters:
source - Chaîne de caractères à interpréter.
pos - Position à partir d'où commencer l'interprétation de la chaîne source.
Returns:
Le nombre lu comme objet Number.

checkComplete

static void checkComplete(java.lang.String source,
                          java.text.ParsePosition pos,
                          boolean isCoordinate)
                   throws java.text.ParseException
Vérifie si l'interprétation d'une chaîne de caractères a été complète. Si ce n'était pas le cas, lance une exception avec un message d'erreur soulignant les caractères problématiques.

Parameters:
source - Chaîne de caractères qui était à interpréter.
pos - Position à laquelle s'est terminée l'interprétation de la chaîne source.
isCoordinate - false si on interprétait un angle, ou true si on interprétait une coordonnée.
Throws:
java.text.ParseException - Si la chaîne source n'a pas été interprétée dans sa totalité.

hashCode

public int hashCode()
Returns a "hash value" for this object.


equals

public boolean equals(java.lang.Object obj)
Compare this format with the specified object for equality.


toString

public java.lang.String toString()
Returns a string representation of this object.