Class WKTFormat.Parser
java.lang.Object
org.apache.sis.io.wkt.AbstractParser
org.apache.sis.io.wkt.MathTransformParser
org.apache.sis.io.wkt.GeodeticObjectParser
org.apache.sis.io.wkt.WKTFormat.Parser
- All Implemented Interfaces:
Comparator<org.opengis.referencing.cs.CoordinateSystemAxis>, Function<Object,Object>, Parser
- Enclosing class:
WKTFormat
private final class WKTFormat.Parser
extends GeodeticObjectParser
implements Function<Object,Object>
The parser created by
WKTFormat.parser(boolean), identical to GeodeticObjectParser except
for the source of logging messages which is the enclosing WKTParser instead of a factory.
Also provides a mechanism for adding default identifier to root IdentifiedObject.- Since:
- 0.4
- Version:
- 1.1
-
Field Summary
Fields inherited from class MathTransformParser
factories, ID_KEYWORDSFields inherited from class AbstractParser
errorLocale, FIRST, fragments, ignoredElements, MANDATORY, OPTIONAL, symbols -
Constructor Summary
ConstructorsConstructorDescriptionParser(Symbols symbols, Map<String, StoredTree> fragments, NumberFormat numberFormat, DateFormat dateFormat, UnitFormat unitFormat, Convention convention, Transliterator transliterator, Locale errorLocale, ReferencingFactoryContainer factories) Creates a new parser. -
Method Summary
Modifier and TypeMethodDescriptionInvoked when an identifier need to be supplied to rootIdentifiedObject.(package private) voidcompleteRoot(Map<String, Object> properties) Invoked when a rootIdentifiedObjectis about to be created.(package private) StringReturns the name of the method invoked fromAbstractParser.getPublicFacade().(package private) StringReturns the source class and method to declare in log records.Methods inherited from class GeodeticObjectParser
buildFromTree, compare, createFromWKTMethods inherited from class MathTransformParser
completeUnitFactor, getOperationMethod, parseMathTransform, parseParameters, parseUnit, parseUnitIDMethods inherited from class AbstractParser
createFromWKT, endOfFragmentName, getAndClearWarnings, log, parseDate, parseNumber, parseUnit, textToTree, warning, warningMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Comparator
equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
-
Constructor Details
-
Parser
Parser(Symbols symbols, Map<String, StoredTree> fragments, NumberFormat numberFormat, DateFormat dateFormat, UnitFormat unitFormat, Convention convention, Transliterator transliterator, Locale errorLocale, ReferencingFactoryContainer factories) Creates a new parser.
-
-
Method Details
-
getPublicFacade
String getPublicFacade()Returns the source class and method to declare in log records.- Overrides:
getPublicFacadein classGeodeticObjectParser
-
getFacadeMethod
String getFacadeMethod()Description copied from class:AbstractParserReturns the name of the method invoked fromAbstractParser.getPublicFacade(). This information is used for logging purposes only. Another possible value is"parse".- Overrides:
getFacadeMethodin classAbstractParser
-
apply
-
completeRoot
Invoked when a rootIdentifiedObjectis about to be created.- Overrides:
completeRootin classGeodeticObjectParser- Parameters:
properties- the properties to be given in a call to acreateFoo(Map, …)method.- See Also:
-