|
||||||||||
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.OperationTypeFilter nbi.xmlsec.biocase.protocol.filter.SearchOperationTypeFilter
This class parses a ScanOperationType of a BioCASE request from a SAX stream.
All SAX events are forwarded to the defined ContentHandler. The parsed
SearchOperationType
may be retrieved via
getOperationType()
.
Field Summary | |
static String |
LN_COUNT
Local name of the element count |
static String |
LN_FILTER
Local name of the element filter |
static String |
LN_RESPONSEFORMAT
Local name of the element responseFormat |
static String |
LN_RESPONSEFORMAT_LIMIT
Local name of the attribute limit of the element
reponseFormat |
static String |
LN_RESPONSEFORMAT_START
Local name of the attribute start of the element
reponseFormat |
static String |
LN_RESPONSEFORMAT_TRANSFORMATION
Local name of the attribute transformation of the element
reponseFormat |
static String |
LN_ROOT
Local name of the root element search |
(package private) OperatorFilter |
opFilter
The current subfilter for the search operation type filter |
(package private) static int |
trackMode
Track mode for the filter stack |
Fields inherited from class nbi.xmlsec.biocase.protocol.filter.OperationTypeFilter |
LN_REQUESTFORMAT, operationType |
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 | |
SearchOperationTypeFilter(String protocolURI,
int filterMode)
Inits the filter instance. |
|
SearchOperationTypeFilter(XMLReader parent,
String protocolURI,
int filterMode)
Inits the filter instance with specified parent. |
Method Summary | |
SearchOperationType |
getOperationType()
Gets the OperationType |
protected void |
initSubFilter()
Registers subfilters for subelements. |
protected nbi.xml.sax.SAXElement |
parseElement(nbi.xml.sax.SAXElement element)
Parses subelements and build up the ScanOperationType. |
protected nbi.xml.sax.SAXElement |
parseInit(nbi.xml.sax.SAXElement element)
Initialises the SearchOperationType. |
Methods inherited from class nbi.xmlsec.biocase.protocol.filter.ProtocolFilter |
characters, checkFilterParameter, endElement, filterCharacters, filterElement, getFilterMode, getFilterParameter, getProtocolURI, isParsingComplete, parseComplete, 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
search
public static final String LN_COUNT
count
public static final String LN_FILTER
filter
public static final String LN_RESPONSEFORMAT
responseFormat
public static final String LN_RESPONSEFORMAT_TRANSFORMATION
transformation
of the element
reponseFormat
public static final String LN_RESPONSEFORMAT_LIMIT
limit
of the element
reponseFormat
public static final String LN_RESPONSEFORMAT_START
start
of the element
reponseFormat
static final int trackMode
OperatorFilter opFilter
Constructor Detail |
public SearchOperationTypeFilter(XMLReader parent, String protocolURI, int filterMode)
parent
- parent reader.protocolURI
- protocol version URI of this filter.filterMode
- filterMode of this filter
ProtocolFilter.filterMode
.public SearchOperationTypeFilter(String protocolURI, int filterMode)
protocolURI
- protocol version URI of this filter.filterMode
- filterMode of this filter
ProtocolFilter.filterMode
.Method Detail |
protected void initSubFilter()
initSubFilter
in class OperationTypeFilter
protected nbi.xml.sax.SAXElement parseInit(nbi.xml.sax.SAXElement element) throws SAXException
parseInit
in class ProtocolFilter
element
- The element of the startElement event (contains no value).
SAXException
- If any parsing error occurs.ProtocolFilter.parseInit(SAXElement)
protected nbi.xml.sax.SAXElement parseElement(nbi.xml.sax.SAXElement element) throws SAXException
parseElement
in class OperationTypeFilter
SAXException
ProtocolFilter.parseElement(SAXElement)
public SearchOperationType getOperationType()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |