|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
project.biota.digir.StructureParser
StructureParser parses the record schema specified in the structure element of a DiGIR search request. This schema determines which concepts need to be presented in the DiGIR response.
Constructor Summary | |
StructureParser(DiGIRRequestParser requestParser)
Constructs a StructureParser object to parse the record schema of a DiGIR search request. |
Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Does nothing. |
void |
endDocument()
Does nothing. |
void |
endElement(String namespaceURI,
String localName,
String qName)
Receives notification of the end of an element. |
void |
endPrefixMapping(String prefix)
Receives notification of the end of a Namespace mapping. |
void |
error(SAXParseException e)
Receives notification of a recoverable parser error. |
void |
fatalError(SAXParseException e)
Reports a fatal XML parsing error. |
void |
ignorableWhitespace(char[] ch,
int start,
int length)
Receives notification of ignorable whitespace in element content. |
void |
init()
Initializes the SAX parser. |
void |
processingInstruction(String instruction,
String data)
Receives notification of a processing instruction. |
void |
setDocumentLocator(Locator locator)
Receive a Locator object for document events. |
void |
skippedEntity(String name)
Receives notification of a skipped entity. |
void |
startDocument()
Does nothing. |
void |
startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
Receives notification of the start of an element. |
void |
startParsing(InputSource input)
Starts parsing the record schema. |
void |
startPrefixMapping(String prefix,
String uri)
Receives notification of the start of a Namespace mapping. |
void |
warning(SAXParseException e)
Receives notification of a parser warning. |
Methods inherited from class org.xml.sax.helpers.DefaultHandler |
notationDecl, resolveEntity, unparsedEntityDecl |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public StructureParser(DiGIRRequestParser requestParser)
requestParser
- the DiGIRRequestParser object that is parsing the DiGIR requestMethod Detail |
public void init()
public void startParsing(InputSource input)
SAXException
- any SAX exception, possibly wrapping another exceptionpublic void startDocument() throws SAXException
SAXException
- any SAX exception, possibly wrapping another exceptionpublic void endDocument() throws SAXException
SAXException
- any SAX exception, possibly wrapping another exceptionpublic void setDocumentLocator(Locator locator)
locator
- the locator for all SAX document eventspublic void characters(char[] ch, int start, int length) throws SAXException
SAXException
- any SAX exception, possibly wrapping another exceptionpublic void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
DiGIRRequestParser#addRecordConcept
method to add the
record concept to the DiGIRRequestParser object.
namespaceURI
- the Namespace URI, or the empty string if the element
has no Namespace URI or if Namespace processing is not being performedlocalName
- the local name (without prefix), or the empty string if
Namespace processing is not being performedqName
- the qualified name (with prefix), or the empty string if
qualified names are not availableatts
- the attributes attached to the element. If there are no attributes,
it shall be an empty Attributes object
SAXException
- any SAX exception, possibly wrapping another exceptionDiGIRRequestParser.addRecordConcept(RecordConcept)
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
DiGIRRequestParser#addRecordConcept
method to add the
record concept to the DiGIRRequestParser object.
namespaceURI
- the Namespace URI, or the empty string if the element
has no Namespace URI or if Namespace processing is not being performedlocalName
- the local name (without prefix), or the empty string if
Namespace processing is not being performedqName
- the qualified name (with prefix), or the empty string if
qualified names are not available
SAXException
public void ignorableWhitespace(char[] ch, int start, int length) throws SAXException
ch
- the whitespace charactersstart
- the start position in the character arraylength
- the number of characters to use from the character array
SAXException
- any SAX exception, possibly wrapping another exceptionpublic void startPrefixMapping(String prefix, String uri) throws SAXException
prefix
- the Namespace prefix being declareduri
- the Namespace URI mapped to the prefix
SAXException
- any SAX exception, possibly wrapping another exceptionpublic void endPrefixMapping(String prefix) throws SAXException
prefix
- the Namespace prefix being declared
SAXException
- any SAX exception, possibly wrapping another exceptionpublic void processingInstruction(String instruction, String data) throws SAXException
instruction
- the processing instruction targetdata
- the processing instruction data, or null if none is supplied
SAXException
- any SAX exception, possibly wrapping another exceptionpublic void skippedEntity(String name) throws SAXException
name
- the name of the skipped entity
SAXException
- any SAX exception, possibly wrapping another exceptionpublic void error(SAXParseException e) throws SAXException
e
- the error information encoded as an SAXParseException
SAXException
- any SAX exception, possibly wrapping another exceptionpublic void warning(SAXParseException e) throws SAXException
e
- the warning information encoded as an SAXParseException
SAXException
- any SAX exception, possibly wrapping another exceptionpublic void fatalError(SAXParseException e) throws SAXException
e
- the warning information encoded as an SAXParseException
SAXException
- any SAX exception, possibly wrapping another exception
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |