|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xml.sax.helpers.XMLFilterImpl nbi.xmlsec.biocase.protocol.filter.ProtocolFilter nbi.xmlsec.biocase.protocol.filter.OperatorFilter
The class OperatorFilter prepares the parsing of COP or LOP operators using
the classes COPFilter
or LOPFilter
respectively.
All SAX events are forwarded to the defined ContentHandler. The parsed
operator type may be retrieved with the method
getOperator()
.
Field Summary | |
static String |
LN_ROOT
Local name of the root element filter |
(package private) Operator |
operator
Stores the parsed operator |
(package private) ProtocolFilter |
opFilter
Current subfilter parse COP or LOP |
(package private) static int |
trackMode
Track mode for the filter stack |
Fields inherited from class nbi.xmlsec.biocase.protocol.filter.ProtocolFilter |
elementStack, filterMode, FILTERMODE_FILTER, FILTERMODE_NONE, FILTERMODE_PARSER, filterRoot, logger, PROT_URI_13, PROT_URI_20 |
Fields inherited from class org.xml.sax.helpers.XMLFilterImpl |
|
Constructor Summary | |
OperatorFilter(String protocolURI,
int filterMode)
Inits the filter instance. |
|
OperatorFilter(String protocolURI,
String rootElement,
int filterMode)
Inits the filter instance. |
|
OperatorFilter(XMLReader parent,
String protocolURI,
int filterMode)
Inits the filter instance with specified parent. |
|
OperatorFilter(XMLReader parent,
String protocolURI,
String rootElement,
int filterMode)
Inits the filter instance with specified parent. |
Method Summary | |
protected nbi.xml.sax.SAXElement |
filterElement(nbi.xml.sax.SAXElement element)
Registers COP or LOP as subfilter, depending on the first received element. |
Operator |
getOperator()
Gets the Operator |
protected nbi.xml.sax.SAXElement |
parseElement(nbi.xml.sax.SAXElement element)
When subfilter finishes, stores the parsed operator. |
Methods inherited from class nbi.xmlsec.biocase.protocol.filter.ProtocolFilter |
characters, checkFilterParameter, endElement, filterCharacters, getFilterMode, getFilterParameter, getProtocolURI, isParsingComplete, parseComplete, parseInit, registerSubFilter, setFilterParameter, setProtocolURI, startElement, unregisterSubFilter |
Methods inherited from class org.xml.sax.helpers.XMLFilterImpl |
endDocument, endPrefixMapping, error, fatalError, getContentHandler, getDTDHandler, getEntityResolver, getErrorHandler, getFeature, getParent, getProperty, ignorableWhitespace, notationDecl, parse, parse, processingInstruction, resolveEntity, setContentHandler, setDocumentLocator, setDTDHandler, setEntityResolver, setErrorHandler, setFeature, setParent, setProperty, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final String LN_ROOT
filter
static final int trackMode
Operator operator
ProtocolFilter opFilter
Constructor Detail |
public OperatorFilter(XMLReader parent, String protocolURI, int filterMode)
parent
- parent reader.protocolURI
- protocol version URI of this filter.filterMode
- filterMode of this filter
ProtocolFilter.filterMode
.public OperatorFilter(String protocolURI, int filterMode)
protocolURI
- protocol version URI of this filter.filterMode
- filterMode of this filter
ProtocolFilter.filterMode
.public OperatorFilter(XMLReader parent, String protocolURI, String rootElement, int filterMode)
parent
- parent reader.protocolURI
- protocol version URI of this filter.rootElement
- Local name of the root element.filterMode
- filterMode of this filter
ProtocolFilter.filterMode
.public OperatorFilter(String protocolURI, String rootElement, int filterMode)
protocolURI
- protocol version URI of this filter.rootElement
- Local name of the root element.filterMode
- filterMode of this filter
ProtocolFilter.filterMode
.Method Detail |
public Operator getOperator()
protected nbi.xml.sax.SAXElement filterElement(nbi.xml.sax.SAXElement element) throws SAXException
filterElement
in class ProtocolFilter
element
- The element corresponding to the startElement event.
SAXException
- If any parsing error occurs.ProtocolFilter.filterElement(SAXElement)
protected nbi.xml.sax.SAXElement parseElement(nbi.xml.sax.SAXElement element) throws SAXException
parseElement
in class ProtocolFilter
element
- The element corresponding to the endElement event.
SAXException
- If any parsing error occurs.ProtocolFilter.parseElement(SAXElement)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |