edu.northwestern.at.morphadorner.examples

## Class UsingAnAdornedText

- java.lang.Object
- - edu.northwestern.at.morphadorner.examples.UsingAnAdornedText

-     public class UsingAnAdornedText
      extends java.lang.Object

  Using an adorned text.

  Usage:

  `java -Xmx256m edu.northwestern.at.morphadorner.example.UsingAnAdornedText adornedtext.xml id1 id2 id3 id4`

  where

  - adorntext.xml is a MorphAdorned XML file
  - id1 is a word ID in the adorned XML file
  - id2 is a word ID in the adorned XML file which follows id1
  - id3 is a word ID in the adorned XML file
  - id4 is a word ID in the adorned XML file which follows id4

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected static java.io.PrintStream` | `printStream` UTF-8 print stream.
    `protected static java.util.List<java.lang.String>` | `wordIDs` The word IDs.
    `protected static AdornedXMLReader` | `xmlReader` Adorned XML reader.

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `UsingAnAdornedText()`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static void` | `doit(java.lang.String[] args)` Read adorned file and perform extraction operations.
    `static void` | `generateXML(java.lang.String firstWordID, java.lang.String secondWordID)` Generate XML from one word ID to another.
    `static void` | `main(java.lang.String[] args)` Main program.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Field Detail

    - #### xmlReader

          protected static AdornedXMLReader xmlReader

      Adorned XML reader.

    - #### wordIDs

          protected static java.util.List<java.lang.String> wordIDs

      The word IDs.

    - #### printStream

          protected static java.io.PrintStream printStream

      UTF-8 print stream.

  - ### Constructor Detail

    - #### UsingAnAdornedText

          public UsingAnAdornedText()

  - ### Method Detail

    - #### main

          public static void main(java.lang.String[] args)

      Main program.

    - #### doit

          public static void doit(java.lang.String[] args)
                           throws java.lang.Exception

      Read adorned file and perform extraction operations.
      Throws:
        `java.lang.Exception`

    - #### generateXML

          public static void generateXML(java.lang.String firstWordID,
                         java.lang.String secondWordID)

      Generate XML from one word ID to another.
      Parameters:
        `firstWordID` - First word ID.
        `secondWordID` - Second word ID.