Class TimingSpecifierParser
java.lang.Object
org.apache.batik.parser.AbstractParser
org.apache.batik.parser.TimingParser
org.apache.batik.parser.TimingSpecifierParser
- All Implemented Interfaces:
Localizable, Parser
- Direct Known Subclasses:
TimingSpecifierListParser
This class implements an event-based parser for SMIL timing specifier
list values.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected TimingSpecifierHandlerThe handler used to report parse events.Fields inherited from class TimingParser
TIME_ACCESSKEY, TIME_ACCESSKEY_SVG12, TIME_EVENTBASE, TIME_INDEFINITE, TIME_MEDIA_MARKER, TIME_OFFSET, TIME_REPEAT, TIME_SYNCBASE, TIME_WALLCLOCK, useSVG11AccessKeys, useSVG12AccessKeysFields inherited from class AbstractParser
BUNDLE_CLASSNAME, current, errorHandler, localizableSupport, reader -
Constructor Summary
ConstructorsConstructorDescriptionTimingSpecifierParser(boolean useSVG11AccessKeys, boolean useSVG12AccessKeys) Creates a new TimingSpecifierParser. -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoParse()Parses a timing specifier.Returns the parse event handler in use.protected voidhandleTimingSpecifier(Object[] spec) Calls the appropriate parse event handler function for the given parsed timing specifier.voidRegisters a parse event handler.Methods inherited from class TimingParser
parseClockValue, parseDigits, parseFraction, parseIDValue, parseName, parseOffset, parseTimingSpecifier, parseUnit, parseWallclockValueMethods inherited from class AbstractParser
createErrorMessage, formatMessage, getBundleClassName, getCurrent, getLocale, parse, parse, parse, reportCharacterExpectedError, reportError, reportUnexpectedCharacterError, setErrorHandler, setLocale, skipCommaSpaces, skipSpaces
-
Field Details
-
timingSpecifierHandler
The handler used to report parse events.
-
-
Constructor Details
-
TimingSpecifierParser
public TimingSpecifierParser(boolean useSVG11AccessKeys, boolean useSVG12AccessKeys) Creates a new TimingSpecifierParser.- Parameters:
useSVG11AccessKeys- allows the use of accessKey() timing specifiers with a single characteruseSVG12AccessKeys- allows the use of accessKey() with a DOM 3 key name
-
-
Method Details
-
setTimingSpecifierHandler
Registers a parse event handler. -
getTimingSpecifierHandler
Returns the parse event handler in use. -
doParse
Parses a timing specifier.- Specified by:
doParsein classAbstractParser- Throws:
ParseExceptionIOException
-
handleTimingSpecifier
Calls the appropriate parse event handler function for the given parsed timing specifier.
-