|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface AlignmentParser
Interface for alignment parsers. Specific parsers must implement two
parse()
methods to read and parse an input, as well as
a method to provide a specific CorrespondenceFactory
for
creating correspondence object.
de.fzi.kadmos.renderer
Method Summary | |
---|---|
Alignment |
parse(File file)
Parses an alignment and creates a new Alignment object. |
Alignment |
parse(InputSource inputSource)
Parses an alignment and creates a new Alignment object. |
Alignment |
parse(InputStream inputStream)
Parses an alignment and creates a new Alignment object. |
Alignment |
parse(Reader reader)
Parses an alignment and creates a new Alignment object. |
Alignment |
parse(String string)
Parses an alignment and creates a new Alignment object. |
Alignment |
parse(URL url)
Parses an alignment and creates a new Alignment object. |
void |
setAlignmentFactory(AlignmentFactory factory)
Specifies the AlignmentFactory to be used in order
to create the alignment object. |
void |
setCorrespondenceFactory(CorrespondenceFactory factory)
Specifies the CorrespondenceFactory to be used in order
to create correspondence objects. |
void |
setOntology1(OWLOntology ont1)
Provide an ontology to be used as ontology 1 instead of parsing the location for the ontology in the document to be parsed. |
void |
setOntology1Document(InputStream is1)
Provide a document for ontology 1 to be used instead of parsing the location for the ontology in the document to be parsed. |
void |
setOntology1Document(URL url1)
Provide a document for ontology 1 to be used instead of parsing the location for the ontology in the document to be parsed. |
void |
setOntology2(OWLOntology ont2)
Provide an ontology to be used as ontology 2 instead of parsing the location for the ontology in the document to be parsed. |
void |
setOntology2Document(InputStream is2)
Provide a document for ontology 2 to be used instead of parsing the location for the ontology in the document to be parsed. |
void |
setOntology2Document(URL url2)
Provide a document for ontology 2 to be used instead of parsing the location for the ontology in the document to be parsed. |
void |
setParsingLevel(ParsingLevel level)
Sets the parsing level for the parsing process |
Method Detail |
---|
Alignment parse(File file) throws AlignmentParserException, IllegalArgumentException, FileNotFoundException
Alignment
object.
File
- representing the alignment to be parsed
Alignment
object.
AlignmentParserException
- if a parsing problem occurs.
IllegalArgumentException
FileNotFoundException
Alignment parse(String string) throws AlignmentParserException, IllegalArgumentException, FileNotFoundException
Alignment
object.
String
- representing the alignment to be parsed
Alignment
object.
AlignmentParserException
- if a parsing problem occurs.
IllegalArgumentException
FileNotFoundException
Alignment parse(URL url) throws AlignmentParserException, IllegalArgumentException, IOException
Alignment
object.
URL
- representing the alignment to be parsed
Alignment
object.
AlignmentParserException
- if a parsing problem occurs.
IllegalArgumentException
IOException
Alignment parse(Reader reader) throws AlignmentParserException, IllegalArgumentException, IOException
Alignment
object.
Reader
- representing the alignment to be parsed
Alignment
object.
AlignmentParserException
- if a parsing problem occurs.
IllegalArgumentException
IOException
Alignment parse(InputStream inputStream) throws AlignmentParserException, IllegalArgumentException
Alignment
object.
InputStream
- representing the alignment to be parsed
Alignment
object.
AlignmentParserException
- if a parsing problem occurs.
IllegalArgumentException
Alignment parse(InputSource inputSource) throws AlignmentParserException
Alignment
object.
InputSource
- representing the alignment to be parsed
Alignment
object.
AlignmentParserException
- if a parsing problem occurs.void setParsingLevel(ParsingLevel level)
Parsing
- level used while parsing the alignmentvoid setCorrespondenceFactory(CorrespondenceFactory factory)
CorrespondenceFactory
to be used in order
to create correspondence objects. Calling this method is optional,
so the parser can be used without explicitly specifying a
CorrespondenceFactory
. In this case a default factory is
used for creating correspondence objects.
factory
- The CorrespondenceFactory
to be used
for creating correspondence objects.void setAlignmentFactory(AlignmentFactory factory)
AlignmentFactory
to be used in order
to create the alignment object. Calling this method is optional,
so the parser can be used without explicitly specifying an
AlignmentFactory
. In this case a default factory is
used for creating the alignment object.
factory
- The AlignmentFactory
to be used
for creating the alignment object.void setOntology1Document(URL url1) throws IllegalArgumentException
url1
- The ontology 1 to be used provided as URL.
IllegalArgumentException
- if the ontology is null or
cannot be loaded from provided URL.void setOntology2Document(URL url2) throws IllegalArgumentException
url2
- The ontology 2 to be used provided as URL.
IllegalArgumentException
- if the ontology is null or
cannot be loaded from provided URL.void setOntology1Document(InputStream is1) throws IllegalArgumentException
is1
- The ontology 1 to be used provided as InputStream.
IllegalArgumentException
- if the ontology is null or cannot be loaded
from provided Inputstream.void setOntology2Document(InputStream is2) throws IllegalArgumentException
is2
- The ontology 2 to be used provided as InputStream.
IllegalArgumentException
- if the ontology is null or cannot be loaded
from provided Inputstream.void setOntology1(OWLOntology ont1) throws IllegalArgumentException
ont1
- The ontology 1 to be used.
IllegalArgumentException
- if the ontology is null.void setOntology2(OWLOntology ont2) throws IllegalArgumentException
ont2
- The ontology 2 to be used.
IllegalArgumentException
- if the ontology is null.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |