|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.jfree.layouting.input.style.parser.StyleSheetParserUtil
public final class StyleSheetParserUtil
A helper class that simplifies the parsing of stylesheets.
| Constructor Summary | |
|---|---|
StyleSheetParserUtil()
|
|
| Method Summary | |
|---|---|
static StyleSheetParserUtil |
getInstance()
|
org.w3c.css.sac.LexicalUnit |
parseLexicalStyleValue(java.lang.String value)
Parses an single lexical unit. |
static java.lang.String[] |
parseNamespaceIdent(java.lang.String attrName)
Parses a single namespace identifier. |
org.w3c.css.sac.SelectorList |
parseSelector(java.util.Map namespaces,
java.lang.String selector,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
Parses a single style value for the given key. |
CSSDeclarationRule |
parseStyleRule(java.util.Map namespaces,
java.lang.String styleText,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL,
CSSDeclarationRule baseRule)
Parses a style rule. |
CSSStyleRule |
parseStyles(java.util.Map namespaces,
java.lang.String name,
java.lang.String value,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
Parses a style value. |
CSSStyleRule |
parseStyles(java.util.Map namespaces,
java.lang.String name,
java.lang.String value,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL,
CSSDeclarationRule baseRule)
Parses a style value. |
CSSStyleRule |
parseStyles(java.util.Map namespaces,
StyleKey key,
java.lang.String value,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
Parses a style value. |
CSSValue |
parseStyleValue(java.util.Map namespaces,
StyleKey key,
java.lang.String value,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
Parses a single style value for the given key. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public StyleSheetParserUtil()
| Method Detail |
|---|
public static StyleSheetParserUtil getInstance()
public org.w3c.css.sac.SelectorList parseSelector(java.util.Map namespaces,
java.lang.String selector,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
null,
if the key denotes a compound definition, which has no internal
representation.
namespaces - an optional map of known namespaces (prefix -> uri)selector - the selector text that should be parsed.resourceManager - an optional resource managerbaseURL - an optional base url
public CSSValue parseStyleValue(java.util.Map namespaces,
StyleKey key,
java.lang.String value,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
null,
if the key denotes a compound definition, which has no internal
representation.
namespaces - an optional map of known namespaces (prefix -> uri)key - the stylekey to which the value should be assigned.value - the value textresourceManager - an optional resource managerbaseURL - an optional base url
public org.w3c.css.sac.LexicalUnit parseLexicalStyleValue(java.lang.String value)
value - the value as string.
public CSSStyleRule parseStyles(java.util.Map namespaces,
StyleKey key,
java.lang.String value,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
namespaces - an optional map of known namespaces (prefix -> uri)key - the stylekey to which the value should be assigned.value - the value textresourceManager - an optional resource managerbaseURL - an optional base url
public CSSDeclarationRule parseStyleRule(java.util.Map namespaces,
java.lang.String styleText,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL,
CSSDeclarationRule baseRule)
namespaces - an optional map of known namespaces (prefix -> uri)styleText - the css text that should be parsedresourceManager - an optional resource managerbaseURL - an optional base urlbaseRule - an optional base-rule to which the result gets added.
public CSSStyleRule parseStyles(java.util.Map namespaces,
java.lang.String name,
java.lang.String value,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL)
namespaces - an optional map of known namespaces (prefix -> uri)name - the stylekey-name to which the value should be assigned.value - the value textresourceManager - an optional resource managerbaseURL - an optional base url
public CSSStyleRule parseStyles(java.util.Map namespaces,
java.lang.String name,
java.lang.String value,
org.pentaho.reporting.libraries.resourceloader.ResourceManager resourceManager,
org.pentaho.reporting.libraries.resourceloader.ResourceKey baseURL,
CSSDeclarationRule baseRule)
namespaces - an optional map of known namespaces (prefix -> uri)name - the stylekey-name to which the value should be assigned.value - the value textresourceManager - an optional resource managerbaseURL - an optional base urlbaseRule - an optional base-rule to which the result gets added.
public static java.lang.String[] parseNamespaceIdent(java.lang.String attrName)
attrName - the attribute name
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||