All Packages Class Hierarchy This Package Previous Next Index
Class COM.Lexical.Metaphrase.Partition
java.lang.Object
|
+----COM.Lexical.Metaphrase.Partition
- public class Partition
- extends java.lang.Object
Metaphrase partition class.
A partition is a collection of meanings identified in a Source.
Typically has a (String) code given by the source.
- Version:
- Authority1.1, 11 Apr 2000
atoms()
- Return Atom's in the Partition.
children()
- Return children of Partition in hierarchy(s).
code()
- The code which names the Partition in source.
concept()
- Return closest Concept to Partition.
hierarchicalElements()
- Return the HierachicalElement's in the Partition (the places in
the hierarchy(s) where code appears).
metaphrase()
- Metaphrase to which Partition belongs.
parents()
- Return parent(s) of Partition in hierarchy(s).
Print(PrintStream)
- Prints the contents of Partition to out.
siblings()
- Return siblings of Partition in hierarchy(s).
source()
- The source from which Partition is taken.
toString()
- String encoding of Partition.
metaphrase
public Metaphrase metaphrase()
Metaphrase to which Partition belongs.
source
public Source source()
The source from which Partition is taken.
code
public java.lang.String code()
The code which names the Partition in source.
hierarchicalElements
public HierarchicalElement[] hierarchicalElements() throws MetaphraseException
Return the HierachicalElement's in the Partition (the places in
the hierarchy(s) where code appears).
- Throws:
- MetaphraseException - thrown in case of error accessing
Metaphrase.
atoms
public Atom[] atoms() throws MetaphraseException
Return Atom's in the Partition.
- Throws:
- MetaphraseException - thrown in case of error accessing
Metaphrase.
concept
public Concept concept() throws MetaphraseException
Return closest Concept to Partition.
If atoms().length>0, returns atoms()[0].concept(). May return null
otherwise.
- Throws:
- MetaphraseException - thrown in case of error accessing
Metaphrase.
parents
public Partition[] parents() throws MetaphraseException
Return parent(s) of Partition in hierarchy(s).
- Throws:
- MetaphraseException - thrown in case of error accessing
Metaphrase.
children
public Partition[] children() throws MetaphraseException
Return children of Partition in hierarchy(s).
- Throws:
- MetaphraseException - thrown in case of error accessing
Metaphrase.
siblings
public Partition[] siblings() throws MetaphraseException
Return siblings of Partition in hierarchy(s).
- Throws:
- MetaphraseException - thrown in case of error accessing
Metaphrase.
toString
public java.lang.String toString()
String encoding of Partition.
- Overrides:
- toString in class java.lang.Object
Print
public void Print(java.io.PrintStream out)
Prints the contents of Partition to out.
All Packages Class Hierarchy This Package Previous Next Index