|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.parser.style.StyleAttributeParser
This class represents a parser for SVG style attributes.
Field Summary | |
static java.lang.String |
BUNDLE_CLASSNAME
The resources bundle classname. |
protected ErrorHandler |
errorHandler
The ErrorHandler. |
protected java.util.Map |
factories
The value factories. |
protected Parser |
parser
The underlying CSS parser. |
Constructor Summary | |
StyleAttributeParser(java.lang.String s)
Creates a new StyleAttributeParser object. |
Method Summary | |
java.lang.String |
formatMessage(java.lang.String key,
java.lang.Object[] args)
Implements Localizable.formatMessage(String,Object[]) . |
ErrorHandler |
getErrorHandler()
Gets the ErrorHandler. |
java.util.Locale |
getLocale()
Implements Localizable.getLocale() . |
CSSValue |
parse(java.io.Reader r,
java.lang.String ns,
java.lang.String ln)
Parses the given reader and returns the CSSValue object corresponding to the attribute with the given namespaceURI and localName. |
void |
putCSSValueFactory(java.lang.String ns,
java.lang.String ln,
CSSValueFactory vf)
Allows the user to register its own ValueFactory to create a style attribute value. |
void |
removeCSSValueFactory(java.lang.String ns,
java.lang.String ln)
Allows the user to unregister a CSSValueFactory. |
void |
setErrorHandler(ErrorHandler e)
Sets the ErrorHandler. |
void |
setLocale(java.util.Locale l)
Implements Localizable.setLocale(Locale) . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String BUNDLE_CLASSNAME
protected Parser parser
protected ErrorHandler errorHandler
protected java.util.Map factories
Constructor Detail |
public StyleAttributeParser(java.lang.String s) throws ParseException
s
- The name of a SAC compliant CSS parser class.Method Detail |
public void setLocale(java.util.Locale l)
Localizable.setLocale(Locale)
.setLocale
in interface Localizable
org.apache.batik.i18n.Localizable
l
- The locale to set.public java.util.Locale getLocale()
Localizable.getLocale()
.getLocale
in interface Localizable
public java.lang.String formatMessage(java.lang.String key, java.lang.Object[] args)
Localizable.formatMessage(String,Object[])
.formatMessage
in interface Localizable
org.apache.batik.i18n.Localizable
key
- The key used to retreive the message from the resource
bundle.args
- The objects that compose the message.java.util.MissingResourceException
- if the key is not in the bundle.public CSSValue parse(java.io.Reader r, java.lang.String ns, java.lang.String ln) throws ParseException
ns
- The namespace URI of the attribute to parse.ln
- The local name of the attribute to parse.public void setErrorHandler(ErrorHandler e)
public ErrorHandler getErrorHandler()
public void putCSSValueFactory(java.lang.String ns, java.lang.String ln, CSSValueFactory vf)
ns
- The namespace URI of the attribute associated with
the given factory.ln
- The local name of the attribute associated with
the given factory.public void removeCSSValueFactory(java.lang.String ns, java.lang.String ln)
ns
- The namespace URI of the attribute associated with
the factory to remove.ln
- The local name of the attribute associated with
the factory to remove.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |