org.apache.batik.css
Class CSSOMUnknownRule

java.lang.Object
  |
  +--org.apache.batik.css.AbstractCSSRule
        |
        +--org.apache.batik.css.CSSOMUnknownRule
All Implemented Interfaces:
CSSRule, CSSUnknownRule

public class CSSOMUnknownRule
extends AbstractCSSRule
implements CSSUnknownRule

This class provides an implementation of the CSSUnknownRule interface.


Inner Class Summary
protected  class CSSOMUnknownRule.UnknownRuleHandler
          To handle the parsing of an unknown rule.
 
Field Summary
protected  java.lang.String cssText
          The text of the rule.
protected  Parser parser
          The CSS parser.
protected  DocumentHandler ruleHandler
          The CSS document handler.
 
Fields inherited from class org.apache.batik.css.AbstractCSSRule
CONDITION_FACTORY, parentRule, parentStyleSheet, SELECTOR_FACTORY
 
Fields inherited from interface org.w3c.dom.css.CSSRule
CHARSET_RULE, FONT_FACE_RULE, IMPORT_RULE, MEDIA_RULE, PAGE_RULE, STYLE_RULE, UNKNOWN_RULE
 
Constructor Summary
CSSOMUnknownRule(CSSStyleSheet parent, CSSRule pr, java.lang.String text, Parser p)
          Creates a new CSSOMUnknownRule.
 
Method Summary
 java.lang.String getCssText()
          DOM: Implements CSSRule.getCssText().
 short getType()
          DOM: Implements CSSRule.getType().
 void setCssText(java.lang.String cssText)
          DOM: Implements CSSRule.setCssText(String).
 
Methods inherited from class org.apache.batik.css.AbstractCSSRule
getParentRule, getParentStyleSheet
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.w3c.dom.css.CSSRule
getParentRule, getParentStyleSheet
 

Field Detail

cssText

protected java.lang.String cssText
The text of the rule.

parser

protected Parser parser
The CSS parser.

ruleHandler

protected DocumentHandler ruleHandler
The CSS document handler.
Constructor Detail

CSSOMUnknownRule

public CSSOMUnknownRule(CSSStyleSheet parent,
                        CSSRule pr,
                        java.lang.String text,
                        Parser p)
Creates a new CSSOMUnknownRule.
Method Detail

getType

public short getType()
DOM: Implements CSSRule.getType().
Specified by:
getType in interface CSSRule

getCssText

public java.lang.String getCssText()
DOM: Implements CSSRule.getCssText().
Specified by:
getCssText in interface CSSRule
Following copied from interface: org.w3c.dom.css.CSSRule
Throws:
DOMException - SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
INVALID_MODIFICATION_ERR: Raised if the specified CSS string value represents a different type of rule than the current one.
HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at this point in the style sheet.
NO_MODIFICATION_ALLOWED_ERR: Raised if the rule is readonly.

setCssText

public void setCssText(java.lang.String cssText)
                throws DOMException
DOM: Implements CSSRule.setCssText(String).
Specified by:
setCssText in interface CSSRule
Following copied from interface: org.w3c.dom.css.CSSRule
Throws:
DOMException - SYNTAX_ERR: Raised if the specified CSS string value has a syntax error and is unparsable.
INVALID_MODIFICATION_ERR: Raised if the specified CSS string value represents a different type of rule than the current one.
HIERARCHY_REQUEST_ERR: Raised if the rule cannot be inserted at this point in the style sheet.
NO_MODIFICATION_ALLOWED_ERR: Raised if the rule is readonly.


Copyright © 2001 Apache Software Foundation. All Rights Reserved.