public class TfcatUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkBoundingBoxes(Reporter reporter,
TfcatObject tfcat)
Performs a global check for a given TfcatObject that any positions
listed are within the bounding boxes in whose scope they appear.
|
static void |
checkCrs(Reporter reporter,
TfcatObject tfcat)
Ensure that CRS objects are in place for the tree rooted at the
given TFCat Object.
|
static void |
checkOption(Reporter reporter,
String token,
Collection<String> options)
Checks whether a given token is in a supplied list of valid options.
|
static List<Geometry<?>> |
getAllGeometries(TfcatObject tfcat)
Returns all the Geometries that are descendents of a given TFCat object,
including itself if applicable.
|
static List<Position> |
getAllPositions(TfcatObject tfcat)
Returns all the Position objects contained in a TFCat object and
its descendents.
|
static Bbox |
getBboxInScope(TfcatObject tfcat)
Returns a Bounding Box objecct applying to the given TFCat object.
|
static TfcatObject[] |
getChildren(TfcatObject tfcat)
Returns any direct children of a TfcatObject that are themselves
TfcatObjects.
|
static Crs |
getCrsInScope(TfcatObject tfcat)
Returns a CRS object applying to the given TFCat object.
|
static WordChecker |
getUcdChecker()
Returns a syntax checker for UCDs.
|
static WordChecker |
getUnitChecker()
Returns a syntax checker for VOUnits.
|
static TfcatObject |
parseTfcat(String jsonTxt,
Reporter reporter)
Performs a validating parse of a given TFCat text.
|
public static TfcatObject parseTfcat(String jsonTxt, Reporter reporter)
jsonTxt - TFCat textreporter - error message destinationpublic static TfcatObject[] getChildren(TfcatObject tfcat)
tfcat - parentpublic static List<Geometry<?>> getAllGeometries(TfcatObject tfcat)
tfcat - rootpublic static List<Position> getAllPositions(TfcatObject tfcat)
tfcat - TFCat objectpublic static void checkBoundingBoxes(Reporter reporter, TfcatObject tfcat)
reporter - error message destinationtfcat - TFCat objectpublic static Crs getCrsInScope(TfcatObject tfcat)
tfcat - target objectpublic static Bbox getBboxInScope(TfcatObject tfcat)
tfcat - target objectpublic static void checkCrs(Reporter reporter, TfcatObject tfcat)
reporter - message destinationtfcat - object to checkpublic static void checkOption(Reporter reporter, String token, Collection<String> options)
reporter - destination for reports if token is not validtoken - token to testoptions - valid token valuespublic static WordChecker getUcdChecker()
public static WordChecker getUnitChecker()
Copyright © 2025 Central Laboratory of the Research Councils. All Rights Reserved.