|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectde.dfki.lt.tools.tokenizer.output.XMLOutputter
XMLOutputter
provides static methods that return an
XML presentation of a AnnotatedString
.
Field Summary | |
static java.lang.String |
ID_ATT
This is the name of the XML attribute in XML_TEXT_UNIT that contains the text unit id. |
static java.lang.String |
IMAGE_ATT
This is the name of the XML attribute in XML_TOKEN
that contains the token image. |
static java.lang.String |
LENGTH_ATT
This is the name of the XML attribute in XML_TOKEN
that contains the token length. |
static java.lang.String |
OFFSET_ATT
This is the name of the XML attribute in XML_TOKEN
that contains the token offset. |
static java.lang.String |
TOK_TYPE_ATT
This is the name of the XML attribute in XML_TOKEN
that contains the token type. |
static java.lang.String |
XML_DOCUMENT
This is the name of XML elements in the result that describe a document. |
static java.lang.String |
XML_PARAGRAPH
This is the name of XML elements in the result that describe a paragraph. |
static java.lang.String |
XML_TEXT_UNIT
This is the name of XML elements in the result that describe a text unit. |
static java.lang.String |
XML_TOKEN
This is the name of XML elements in the result that describe a token. |
Constructor Summary | |
XMLOutputter()
|
Method Summary | |
static org.w3c.dom.Document |
createXMLDocument(AnnotatedString input,
LanguageResource aLangRes)
This creates an XML document from an annotated input . |
static java.lang.String |
createXMLString(AnnotatedString input,
LanguageResource aLangRes)
This creates an XML string from an annotated input . |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String XML_DOCUMENT
public static final java.lang.String XML_PARAGRAPH
public static final java.lang.String XML_TEXT_UNIT
public static final java.lang.String ID_ATT
XML_TEXT_UNIT
that contains the text unit id.
public static final java.lang.String XML_TOKEN
public static final java.lang.String IMAGE_ATT
XML_TOKEN
that contains the token image.
public static final java.lang.String TOK_TYPE_ATT
XML_TOKEN
that contains the token type.
public static final java.lang.String OFFSET_ATT
XML_TOKEN
that contains the token offset.
public static final java.lang.String LENGTH_ATT
XML_TOKEN
that contains the token length.
Constructor Detail |
public XMLOutputter()
Method Detail |
public static org.w3c.dom.Document createXMLDocument(AnnotatedString input, LanguageResource aLangRes)
input
.
input
- an AnnotatedString
aLangRes
- a {link
de.dfki.lt.tools.tokenizer.LanguageResource}; needed for the tags
for XML annotation
Document
ProcessingException
- if an error occurspublic static java.lang.String createXMLString(AnnotatedString input, LanguageResource aLangRes)
input
. Correctly works with Unicode
(uschaefer 2006-06-09).
input
- an AnnotatedString
aLangRes
- a {link
de.dfki.lt.tools.tokenizer.LanguageResource}; needed for the tags
for XML annotation
ProcessingException
- if an error occurs
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |