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.rmlserving both asContentHandlerand asParseExceptionHandleras it implementsProjectDescto 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 ClassLocatorbaseClassprivate URLlibraryprivate Set<InstanceLocator>outputEffects
-
Constructor Summary
Constructors Constructor Description Project()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcharacters(char[] chr, int start, int length)voidendDocument()voidendElement(String namespaceURI, String localName, String qName)voidendPrefixMapping(String prefix)voidfoundCharAfterEndOfEndTag(char chr)voidfoundIllegalCharInTag(char chr)voidfoundMultipleAttribute(String attrName, Object oldAttrValue)voidfoundUnexpectedEndOfDocument()ClassLocatorgetBaseClass()DescribegetLocatormethod here.URLgetLibrary()DescribegetLibrarymethod here.Set<InstanceLocator>getOutputEffects()DescribegetOutputEffectsmethod here.voidignorableWhitespace(char[] chr, int start, int length)voidprocessingInstruction(String target, String data)voidsetDocumentLocator(Locator locator)voidskippedEntity(String name)voidstartDocument()voidstartElement(String namespaceURI, String localName, String qName, Attributes atts)voidstartPrefixMapping(String prefix, String uri)StringtoString()
-
-
-
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:ProjectDescDescribegetLibrarymethod here.- Specified by:
getLibraryin interfaceProjectDesc- Returns:
- an
URLvalue
-
getBaseClass
public ClassLocator getBaseClass()
Description copied from interface:ProjectDescDescribegetLocatormethod here.- Specified by:
getBaseClassin interfaceProjectDesc- Returns:
- a
ClassLocatorvalue
-
getOutputEffects
public Set<InstanceLocator> getOutputEffects()
Description copied from interface:ProjectDescDescribegetOutputEffectsmethod here.- Specified by:
getOutputEffectsin interfaceProjectDesc- Returns:
- a
Setvalue
-
setDocumentLocator
public void setDocumentLocator(Locator locator)
- Specified by:
setDocumentLocatorin interfaceContentHandler
-
startDocument
public void startDocument() throws SAXException- Specified by:
startDocumentin interfaceContentHandler- Throws:
SAXException
-
endDocument
public void endDocument() throws SAXException- Specified by:
endDocumentin interfaceContentHandler- Throws:
SAXException
-
startPrefixMapping
public void startPrefixMapping(String prefix, String uri) throws SAXException
- Specified by:
startPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
endPrefixMapping
public void endPrefixMapping(String prefix) throws SAXException
- Specified by:
endPrefixMappingin interfaceContentHandler- Throws:
SAXException
-
startElement
public void startElement(String namespaceURI, String localName, String qName, Attributes atts) throws SAXException
- Specified by:
startElementin interfaceContentHandler- Throws:
SAXException
-
endElement
public void endElement(String namespaceURI, String localName, String qName) throws SAXException
- Specified by:
endElementin interfaceContentHandler- Throws:
SAXException
-
characters
public void characters(char[] chr, int start, int length) throws SAXException- Specified by:
charactersin interfaceContentHandler- Throws:
SAXException
-
ignorableWhitespace
public void ignorableWhitespace(char[] chr, int start, int length) throws SAXException- Specified by:
ignorableWhitespacein interfaceContentHandler- Throws:
SAXException
-
processingInstruction
public void processingInstruction(String target, String data) throws SAXException
- Specified by:
processingInstructionin interfaceContentHandler- Throws:
SAXException
-
skippedEntity
public void skippedEntity(String name) throws SAXException
- Specified by:
skippedEntityin interfaceContentHandler- Throws:
SAXException
-
foundMultipleAttribute
public void foundMultipleAttribute(String attrName, Object oldAttrValue)
- Specified by:
foundMultipleAttributein interfaceeu.simuline.util.sgml.ParseExceptionHandler
-
foundIllegalCharInTag
public void foundIllegalCharInTag(char chr)
- Specified by:
foundIllegalCharInTagin interfaceeu.simuline.util.sgml.ParseExceptionHandler
-
foundCharAfterEndOfEndTag
public void foundCharAfterEndOfEndTag(char chr)
- Specified by:
foundCharAfterEndOfEndTagin interfaceeu.simuline.util.sgml.ParseExceptionHandler
-
foundUnexpectedEndOfDocument
public void foundUnexpectedEndOfDocument()
- Specified by:
foundUnexpectedEndOfDocumentin interfaceeu.simuline.util.sgml.ParseExceptionHandler
-
-