|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xml.sax.helpers.DefaultHandler
org.compass.core.util.config.SAXConfigurationHandler
org.compass.core.util.config.NamespacedSAXConfigurationHandler
public class NamespacedSAXConfigurationHandler
A SAXConfigurationHandler helps build Configurations out of sax events, including namespace information.
| Constructor Summary | |
|---|---|
NamespacedSAXConfigurationHandler()
|
|
| Method Summary | |
|---|---|
void |
characters(char[] ch,
int start,
int end)
Handling hook for character data. |
void |
clear()
Clears all data from this configuration handler. |
protected PlainConfigurationHelper |
createConfiguration(String localName,
String namespaceURI,
String location)
Create a new DefaultConfiguration with the specified local
name, namespace, and location. |
void |
endDocument()
Handling hook for ending the document parsing. |
void |
endElement(String namespaceURI,
String localName,
String rawName)
Handling hook for finishing parsing of an element. |
void |
error(SAXParseException exception)
This just throws an exception on a parse error. |
void |
fatalError(SAXParseException exception)
This just throws an exception on a parse error. |
ConfigurationHelper |
getConfiguration()
Get the configuration object that was built. |
protected String |
getLocationString()
Returns a string showing the current system ID, line number and column number. |
void |
setDocumentLocator(Locator locator)
Set the document Locator to use. |
void |
startDocument()
Handling hook for starting the document parsing. |
void |
startElement(String namespaceURI,
String localName,
String rawName,
Attributes attributes)
Handling hook for starting parsing of an element. |
void |
startPrefixMapping(String prefix,
String uri)
Handling hook for starting prefix mapping. |
void |
warning(SAXParseException exception)
This just throws an exception on a parse error. |
| Methods inherited from class org.compass.core.util.config.SAXConfigurationHandler |
|---|
createConfiguration |
| Methods inherited from class org.xml.sax.helpers.DefaultHandler |
|---|
endPrefixMapping, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, skippedEntity, unparsedEntityDecl |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public NamespacedSAXConfigurationHandler()
| Method Detail |
|---|
public ConfigurationHelper getConfiguration()
getConfiguration in class SAXConfigurationHandlerConfiguration objectpublic void clear()
clear in class SAXConfigurationHandlerpublic void setDocumentLocator(Locator locator)
Locator to use.
setDocumentLocator in interface ContentHandlersetDocumentLocator in class SAXConfigurationHandler
public void startDocument()
throws SAXException
startDocument in interface ContentHandlerstartDocument in class DefaultHandlerSAXException
public void endDocument()
throws SAXException
endDocument in interface ContentHandlerendDocument in class DefaultHandlerSAXException
public void characters(char[] ch,
int start,
int end)
throws SAXException
characters in interface ContentHandlercharacters in class SAXConfigurationHandlerSAXException
public void endElement(String namespaceURI,
String localName,
String rawName)
throws SAXException
endElement in interface ContentHandlerendElement in class SAXConfigurationHandlerSAXException
protected PlainConfigurationHelper createConfiguration(String localName,
String namespaceURI,
String location)
DefaultConfiguration with the specified local
name, namespace, and location.
public void startElement(String namespaceURI,
String localName,
String rawName,
Attributes attributes)
throws SAXException
startElement in interface ContentHandlerstartElement in class SAXConfigurationHandlerSAXException
public void error(SAXParseException exception)
throws SAXException
error in interface ErrorHandlererror in class SAXConfigurationHandlerSAXException
public void warning(SAXParseException exception)
throws SAXException
warning in interface ErrorHandlerwarning in class SAXConfigurationHandlerSAXException
public void fatalError(SAXParseException exception)
throws SAXException
fatalError in interface ErrorHandlerfatalError in class SAXConfigurationHandlerSAXExceptionprotected String getLocationString()
getLocationString in class SAXConfigurationHandler
public void startPrefixMapping(String prefix,
String uri)
throws SAXException
startPrefixMapping in interface ContentHandlerstartPrefixMapping in class DefaultHandlerSAXException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||