|
||||||||||
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.HeaderFilter
This class parses an BioCASE header from a SAX stream.
All SAX events are forwarded to the defined ContentHandler. The parsed
Header
may be retrieved with getHeader()
.
Field Summary | |
private Header |
header
The parsed BioCASE header |
static String |
LN_DEST
Local name of the element destination |
static String |
LN_DEST_RESOURCE
Local name of the attribute resource of the element
destination |
static String |
LN_ROOT
Local name of the root element header |
static String |
LN_SENDTIME
Local name of the element sendTime |
static String |
LN_SRC
Local name of the element source |
static String |
LN_SRC_RESOURCE
Local name of the attribute resource of the element
source |
static String |
LN_TYPE
Local name of the element type |
static String |
LN_VERSION
Local name of the element version |
static String |
LN_VERSION_SOFTWARE
Local name of the attribute software of the element
version |
(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 | |
HeaderFilter(String protocolURI,
int filterMode)
Inits the filter instance. |
|
HeaderFilter(XMLReader parent,
String protocolURI,
int filterMode)
Inits the filter instance with specified parent. |
Method Summary | |
Header |
getHeader()
Gets the header. |
protected void |
initSubFilter()
Registers subfilters for subelements. |
protected nbi.xml.sax.SAXElement |
parseElement(nbi.xml.sax.SAXElement element)
Parses Header subelements and build up the Header. |
protected nbi.xml.sax.SAXElement |
parseInit(nbi.xml.sax.SAXElement element)
Initialises Header |
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 String LN_ROOT
header
public static final String LN_VERSION
version
public static final String LN_VERSION_SOFTWARE
software
of the element
version
public static final String LN_SENDTIME
sendTime
public static final String LN_SRC
source
public static final String LN_SRC_RESOURCE
resource
of the element
source
public static final String LN_DEST
destination
public static final String LN_DEST_RESOURCE
resource
of the element
destination
public static final String LN_TYPE
type
static final int trackMode
private Header header
Constructor Detail |
public HeaderFilter(String protocolURI, int filterMode)
protocolURI
- protocol version URI of this filter.filterMode
- filterMode of this filter
ProtocolFilter.filterMode
.public HeaderFilter(XMLReader parent, String protocolURI, int filterMode)
parent
- parent reader.protocolURI
- protocol version URI of this filter.filterMode
- filterMode of this filter
ProtocolFilter.filterMode
.Method Detail |
protected void initSubFilter()
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)
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)
public Header getHeader()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |