org.bibop.xml.xforge
Class ConditionalElement
java.lang.Object
|
+--org.bibop.xml.xforge.AbstractElement
|
+--org.bibop.xml.xforge.ConditionalElement
- All Implemented Interfaces:
- org.xml.sax.ContentHandler, Element, org.xml.sax.ext.LexicalHandler, PrefixesMonitor, ReactorElement, XMLConsumer, XMLProducer
- Direct Known Subclasses:
- ElseElement, IfElement, WhileLoop
- public abstract class ConditionalElement
- extends AbstractElement
- implements ReactorElement
Loop, Tests ...
- Version:
- 1.0
- Author:
- Alberto Garoffolo
Method Summary |
void |
endElement(java.lang.String uri,
java.lang.String loc,
java.lang.String raw)
Receive notification of the end of an element. |
protected abstract java.lang.String |
getName()
|
boolean |
match(java.lang.String locale)
|
void |
startElement(java.lang.String uri,
java.lang.String loc,
java.lang.String raw,
org.xml.sax.Attributes a)
Receive notification of the beginning of an element. |
protected boolean |
testcondition()
|
Methods inherited from class org.bibop.xml.xforge.AbstractElement |
characters, comment, end, endCDATA, endDocument, endDTD, endEntity, endPrefixMapping, flushSAXCache, getActivePrefixes, ignorableWhitespace, output, output, processingInstruction, setConsumer, setContentHandler, setDocumentLocator, setLexicalHandler, setParent, setParentPrefixesMonitor, skippedEntity, start, startCDATA, startDocument, startDTD, startEntity, startPrefixMapping, toSax |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xml.sax.ContentHandler |
characters, endDocument, endPrefixMapping, ignorableWhitespace, processingInstruction, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping |
Methods inherited from interface org.xml.sax.ext.LexicalHandler |
comment, endCDATA, endDTD, endEntity, startCDATA, startDTD, startEntity |
deep
protected int deep
XFORGE_ATTR_CONDITION
public static final java.lang.String XFORGE_ATTR_CONDITION
- See Also:
- Constant Field Values
parser
protected ExpressionsParser parser
condition
protected java.lang.String condition
ConditionalElement
protected ConditionalElement(org.xml.sax.Attributes attrs,
ProcessingOptions aPO,
boolean createparser)
throws IllegalElementException
ConditionalElement
public ConditionalElement(org.xml.sax.Attributes attrs,
ProcessingOptions aPO)
throws IllegalElementException
- Build the object using the Attributes list
- Parameters:
attrs
- the Attributes list
- Throws:
IllegalElementException
- Invalid x:forge element
declaration
testcondition
protected boolean testcondition()
throws org.xml.sax.SAXException
org.xml.sax.SAXException
getName
protected abstract java.lang.String getName()
match
public boolean match(java.lang.String locale)
throws org.xml.sax.SAXException
org.xml.sax.SAXException
startElement
public void startElement(java.lang.String uri,
java.lang.String loc,
java.lang.String raw,
org.xml.sax.Attributes a)
throws org.xml.sax.SAXException
- Receive notification of the beginning of an element.
- Specified by:
startElement
in interface org.xml.sax.ContentHandler
- Overrides:
startElement
in class AbstractElement
- Parameters:
uri
- The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace processing is not being performed.loc
- The local name (without prefix), or the empty string if
Namespace processing is not being performed.raw
- The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.a
- The attributes attached to the element. If there are no
attributes, it shall be an empty Attributes object.
org.xml.sax.SAXException
endElement
public void endElement(java.lang.String uri,
java.lang.String loc,
java.lang.String raw)
throws org.xml.sax.SAXException
- Receive notification of the end of an element.
- Specified by:
endElement
in interface org.xml.sax.ContentHandler
- Overrides:
endElement
in class AbstractElement
- Parameters:
uri
- The Namespace URI, or the empty string if the element has no
Namespace URI or if Namespace processing is not being performed.loc
- The local name (without prefix), or the empty string if
Namespace processing is not being performed.raw
- The raw XML 1.0 name (with prefix), or the empty string if
raw names are not available.
org.xml.sax.SAXException
Copyright © 2003 Bibop Research International. All Rights Reserved.