Package eu.simuline.relana.sys
Class Project
- java.lang.Object
-
- eu.simuline.relana.sys.Project
-
- All Implemented Interfaces:
ProjectDesc
,eu.simuline.util.sgml.ParseExceptionHandler
,ContentHandler
public final class Project extends Object implements ProjectDesc, ContentHandler, eu.simuline.util.sgml.ParseExceptionHandler
Enables an xml parser to read a relana project file likesrc/test/resources/eu/simuline/relana/proj.rml
serving both asContentHandler
and asParseExceptionHandler
as it implementsProjectDesc
to hold the result of reading, i.e. the content. Created: Thu Apr 28 22:03:26 2005- Version:
- 1.0
- Author:
- Ernst Reissner
-
-
Field Summary
Fields Modifier and Type Field Description private ClassLocator
baseClass
private URL
library
private Set<InstanceLocator>
outputEffects
-
Constructor Summary
Constructors Constructor Description Project()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
characters(char[] chr, int start, int length)
void
endDocument()
void
endElement(String namespaceURI, String localName, String qName)
void
endPrefixMapping(String prefix)
void
foundCharAfterEndOfEndTag(char chr)
void
foundIllegalCharInTag(char chr)
void
foundMultipleAttribute(String attrName, Object oldAttrValue)
void
foundUnexpectedEndOfDocument()
ClassLocator
getBaseClass()
DescribegetLocator
method here.URL
getLibrary()
DescribegetLibrary
method here.Set<InstanceLocator>
getOutputEffects()
DescribegetOutputEffects
method here.void
ignorableWhitespace(char[] chr, int start, int length)
void
processingInstruction(String target, String data)
void
setDocumentLocator(Locator locator)
void
skippedEntity(String name)
void
startDocument()
void
startElement(String namespaceURI, String localName, String qName, Attributes atts)
void
startPrefixMapping(String prefix, String uri)
String
toString()
-
-
-
Field Detail
-
library
private URL library
-
baseClass
private ClassLocator baseClass
-
outputEffects
private final Set<InstanceLocator> outputEffects
-
-
Method Detail
-
getLibrary
public URL getLibrary()
Description copied from interface:ProjectDesc
DescribegetLibrary
method here.- Specified by:
getLibrary
in interfaceProjectDesc
- Returns:
- an
URL
value
-
getBaseClass
public ClassLocator getBaseClass()
Description copied from interface:ProjectDesc
DescribegetLocator
method here.- Specified by:
getBaseClass
in interfaceProjectDesc
- Returns:
- a
ClassLocator
value
-
getOutputEffects
public Set<InstanceLocator> getOutputEffects()
Description copied from interface:ProjectDesc
DescribegetOutputEffects
method here.- Specified by:
getOutputEffects
in interfaceProjectDesc
- Returns:
- a
Set
value
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocator
in interfaceContentHandler
-
startDocument
public void startDocument() throws SAXException
- Specified by:
startDocument
in interfaceContentHandler
- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException
- Specified by:
endDocument
in interfaceContentHandler
- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
- Specified by:
startPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
- Specified by:
endPrefixMapping
in interfaceContentHandler
- Throws:
SAXException
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
- Specified by:
startElement
in interfaceContentHandler
- Throws:
SAXException
-
endElement
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
- Specified by:
endElement
in interfaceContentHandler
- Throws:
SAXException
-
characters
public void characters(char[] chr, int start, int length) throws SAXException
- Specified by:
characters
in interfaceContentHandler
- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] chr, int start, int length) throws SAXException
- Specified by:
ignorableWhitespace
in interfaceContentHandler
- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String target, String data) throws SAXException
- Specified by:
processingInstruction
in interfaceContentHandler
- Throws:
SAXException
-
skippedEntity
public void skippedEntity(String name) throws SAXException
- Specified by:
skippedEntity
in interfaceContentHandler
- Throws:
SAXException
-
foundMultipleAttribute
public void foundMultipleAttribute(String attrName, Object oldAttrValue)
- Specified by:
foundMultipleAttribute
in interfaceeu.simuline.util.sgml.ParseExceptionHandler
-
foundIllegalCharInTag
public void foundIllegalCharInTag(char chr)
- Specified by:
foundIllegalCharInTag
in interfaceeu.simuline.util.sgml.ParseExceptionHandler
-
foundCharAfterEndOfEndTag
public void foundCharAfterEndOfEndTag(char chr)
- Specified by:
foundCharAfterEndOfEndTag
in interfaceeu.simuline.util.sgml.ParseExceptionHandler
-
foundUnexpectedEndOfDocument
public void foundUnexpectedEndOfDocument()
- Specified by:
foundUnexpectedEndOfDocument
in interfaceeu.simuline.util.sgml.ParseExceptionHandler
-
-