Package org.apache.sis.io.wkt
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
.-
Field Summary
Fields inherited from class org.apache.sis.io.wkt.MathTransformParser
factories, ID_KEYWORDS
Fields inherited from class org.apache.sis.io.wkt.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) void
completeRoot
(Map<String, Object> properties) Invoked when a rootIdentifiedObject
is about to be created.(package private) String
Returns the name of the method invoked fromAbstractParser.getPublicFacade()
.(package private) String
Returns the source class and method to declare in log records.Methods inherited from class org.apache.sis.io.wkt.GeodeticObjectParser
buildFromTree, compare, createFromWKT
Methods inherited from class org.apache.sis.io.wkt.MathTransformParser
completeUnitFactor, getOperationMethod, parseMathTransform, parseParameters, parseUnit, parseUnitID
Methods inherited from class org.apache.sis.io.wkt.AbstractParser
createFromWKT, endOfFragmentName, getAndClearWarnings, log, parseDate, parseNumber, parseUnit, textToTree, warning, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.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:
getPublicFacade
in classGeodeticObjectParser
-
getFacadeMethod
String getFacadeMethod()Description copied from class:AbstractParser
Returns the name of the method invoked fromAbstractParser.getPublicFacade()
. This information is used for logging purposes only. Another possible value is"parse"
.- Overrides:
getFacadeMethod
in classAbstractParser
-
apply
Invoked when an identifier need to be supplied to rootIdentifiedObject
. -
completeRoot
Invoked when a rootIdentifiedObject
is about to be created.- Overrides:
completeRoot
in classGeodeticObjectParser
- Parameters:
properties
- the properties to be given in a call to acreateFoo(Map, …)
method.- See Also:
-