|
|||||||||||
| 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.ConceptualSchemaParser
ConceptualSchemaParser parses the conceptual schema supported by a resource and saves all the defined schema concepts in a java.util.HashSet. Each schema concept is represented by a SchemaConcept object.
SchemaConcept| Constructor Summary | |
ConceptualSchemaParser(InputSource input)
Constructs a ConceptualSchemaParser object to parse a conceptual schema for a resource. |
|
| Method Summary | |
void |
characters(char[] ch,
int start,
int length)
Does nothing. |
void |
endDocument()
Does nothing. |
void |
endElement(String namespaceURI,
String localName,
String qName)
Does nothing. |
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. |
Set |
getSchemaConcepts()
Gets the set of schema concepts read from the conceptual schema. |
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()
Starts parsing the conceptual 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 ConceptualSchemaParser(InputSource input)
input - the InputSource object of the conceptual schema| Method Detail |
public void init()
public void startParsing()
throws SAXException
SAXException - any SAX exception, possibly wrapping another exceptionpublic Set getSchemaConcepts()
public void startDocument()
throws SAXException
SAXException - any SAX exception, possibly wrapping another exception
public void endDocument()
throws SAXException
SAXException - any SAX exception, possibly wrapping another exceptionpublic void setDocumentLocator(Locator locator)
locator - the locator for all SAX document events
public void characters(char[] ch,
int start,
int length)
throws SAXException
SAXException - any SAX exception, possibly wrapping another exception
public void startElement(String namespaceURI,
String localName,
String qName,
Attributes atts)
throws SAXException
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 exception
public void endElement(String namespaceURI,
String localName,
String qName)
throws SAXException
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 exception
public 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 exception
public void endPrefixMapping(String prefix)
throws SAXException
prefix - the Namespace prefix being declared
SAXException - any SAX exception, possibly wrapping another exception
public 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 exception
public void skippedEntity(String name)
throws SAXException
name - the name of the skipped entity
SAXException - any SAX exception, possibly wrapping another exception
public void error(SAXParseException e)
throws SAXException
e - the error information encoded as an SAXParseException
SAXException - any SAX exception, possibly wrapping another exception
public void warning(SAXParseException e)
throws SAXException
e - the warning information encoded as an SAXParseException
SAXException - any SAX exception, possibly wrapping another exception
public 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 | ||||||||||