Class AlignmentHandler
java.lang.Object
org.xml.sax.helpers.DefaultHandler
de.uni_mannheim.informatik.dws.melt.yet_another_alignment_api.AlignmentHandler
- All Implemented Interfaces:
ContentHandler
,DTDHandler
,EntityResolver
,ErrorHandler
The AlignmentHandler manages the parsing of alignment files.
- Author:
- Sven Hertling, Jan Portisch
-
Field Summary
Modifier and TypeFieldDescriptionprivate Alignment
private static final String
private static final String
private Correspondence
private static final String
private StringBuilder
private OntoInfo
private static final String
private static final String
private static final String
private static final String
private static final String
private static final com.google.gson.Gson
private boolean
Indicator whether the parser is currently within a cell or not.private static final String
private static final String
private static final org.slf4j.Logger
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
private static final String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
characters
(char[] ch, int start, int length) void
endElement
(String namespaceURI, String pName, String qName) private Object
void
startElement
(String namespaceURI, String pName, String qName, Attributes atts) Methods inherited from class org.xml.sax.helpers.DefaultHandler
endDocument, endPrefixMapping, error, fatalError, ignorableWhitespace, notationDecl, processingInstruction, resolveEntity, setDocumentLocator, skippedEntity, startDocument, startPrefixMapping, unparsedEntityDecl, warning
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.xml.sax.ContentHandler
declaration
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER -
ALIGNMENT
- See Also:
-
SOAP_ENV
- See Also:
-
RDF
- See Also:
-
EDOAL
- See Also:
-
RULE_RELATION
- See Also:
-
MEASURE
- See Also:
-
ENTITY2
- See Also:
-
ENTITY1
- See Also:
-
CELL
- See Also:
-
RDF_RESOURCE
- See Also:
-
Formalism
- See Also:
-
RDF_ID
- See Also:
-
RDF_ABOUT
- See Also:
-
URI
- See Also:
-
NAME
- See Also:
-
ONTOLOGY
- See Also:
-
ONTO2
- See Also:
-
ONTO1
- See Also:
-
ALIGNMENT_NAME
- See Also:
-
URI1
- See Also:
-
URI2
- See Also:
-
LOCATION
- See Also:
-
TYPE
- See Also:
-
LEVEL
- See Also:
-
EXTENSION
- See Also:
-
-
alignment
-
cell
-
currentOntoInfo
-
inCorrespondence
private boolean inCorrespondenceIndicator whether the parser is currently within a cell or not. This is used to determine whether extensions are made on alignment level or on correspondence level. When starting the parsing process, the initial state is false. -
GSON
private static final com.google.gson.Gson GSON
-
-
Constructor Details
-
AlignmentHandler
Constructor- Parameters:
alignment
- Alignment which will hold parsed elements.
-
-
Method Details
-
startElement
public void startElement(String namespaceURI, String pName, String qName, Attributes atts) throws SAXException - Specified by:
startElement
in interfaceContentHandler
- Overrides:
startElement
in classDefaultHandler
- Throws:
SAXException
-
characters
public void characters(char[] ch, int start, int length) - Specified by:
characters
in interfaceContentHandler
- Overrides:
characters
in classDefaultHandler
-
endElement
- Specified by:
endElement
in interfaceContentHandler
- Overrides:
endElement
in classDefaultHandler
- Throws:
SAXException
-
parseJSON
-
getAlignment
-