Class ConfigurationContentHandler
- java.lang.Object
-
- net.ssehub.easy.producer.core.persistence.ConfigurationContentHandler
-
- All Implemented Interfaces:
org.xml.sax.ContentHandler
class ConfigurationContentHandler extends java.lang.Object implements org.xml.sax.ContentHandlerProcesses the SAX XML reading.- Author:
- Holger Eichelberger
-
-
Field Summary
Fields Modifier and Type Field Description private Configurationconfigurationprivate booleaninConfig(package private) static java.lang.StringXML_ATTR_KIND(package private) static java.lang.StringXML_ATTR_VALUE(package private) static java.lang.StringXML_ELT_CONFIGURATION(package private) static java.lang.StringXML_ELT_PATH
-
Constructor Summary
Constructors Constructor Description ConfigurationContentHandler(Configuration configuration)Creates a configuration content handler.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] ch, int start, int length)voidendDocument()voidendElement(java.lang.String uri, java.lang.String localName, java.lang.String qName)voidendPrefixMapping(java.lang.String prefix)voidignorableWhitespace(char[] ch, int start, int length)voidprocessingInstruction(java.lang.String target, java.lang.String data)private voidreadPath(org.xml.sax.Attributes atts)Reads a path based on the given attributes.voidsetDocumentLocator(org.xml.sax.Locator locator)voidskippedEntity(java.lang.String name)voidstartDocument()voidstartElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts)voidstartPrefixMapping(java.lang.String prefix, java.lang.String uri)
-
-
-
Field Detail
-
XML_ELT_CONFIGURATION
static final java.lang.String XML_ELT_CONFIGURATION
- See Also:
- Constant Field Values
-
XML_ELT_PATH
static final java.lang.String XML_ELT_PATH
- See Also:
- Constant Field Values
-
XML_ATTR_KIND
static final java.lang.String XML_ATTR_KIND
- See Also:
- Constant Field Values
-
XML_ATTR_VALUE
static final java.lang.String XML_ATTR_VALUE
- See Also:
- Constant Field Values
-
configuration
private final Configuration configuration
-
inConfig
private boolean inConfig
-
-
Constructor Detail
-
ConfigurationContentHandler
ConfigurationContentHandler(Configuration configuration)
Creates a configuration content handler.- Parameters:
configuration- the configuration to be modified
-
-
Method Detail
-
setDocumentLocator
public void setDocumentLocator(org.xml.sax.Locator locator)
- Specified by:
setDocumentLocatorin interfaceorg.xml.sax.ContentHandler
-
startDocument
public void startDocument() throws org.xml.sax.SAXException- Specified by:
startDocumentin interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
endDocument
public void endDocument() throws org.xml.sax.SAXException- Specified by:
endDocumentin interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
startPrefixMapping
public void startPrefixMapping(java.lang.String prefix, java.lang.String uri) throws org.xml.sax.SAXException- Specified by:
startPrefixMappingin interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
endPrefixMapping
public void endPrefixMapping(java.lang.String prefix) throws org.xml.sax.SAXException- Specified by:
endPrefixMappingin interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
startElement
public void startElement(java.lang.String uri, java.lang.String localName, java.lang.String qName, org.xml.sax.Attributes atts) throws org.xml.sax.SAXException- Specified by:
startElementin interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
readPath
private void readPath(org.xml.sax.Attributes atts)
Reads a path based on the given attributes.- Parameters:
atts- the attributes
-
endElement
public void endElement(java.lang.String uri, java.lang.String localName, java.lang.String qName) throws org.xml.sax.SAXException- Specified by:
endElementin interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
characters
public void characters(char[] ch, int start, int length) throws org.xml.sax.SAXException- Specified by:
charactersin interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] ch, int start, int length) throws org.xml.sax.SAXException- Specified by:
ignorableWhitespacein interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
processingInstruction
public void processingInstruction(java.lang.String target, java.lang.String data) throws org.xml.sax.SAXException- Specified by:
processingInstructionin interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
skippedEntity
public void skippedEntity(java.lang.String name) throws org.xml.sax.SAXException- Specified by:
skippedEntityin interfaceorg.xml.sax.ContentHandler- Throws:
org.xml.sax.SAXException
-
-