|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object ch.uzh.ifi.attempto.acewiki.core.LanguageUtils
public class LanguageUtils
This utility class contains static methods for general tasks on the language level.
Method Summary | |
---|---|
static java.lang.String |
getHeading(OntologyElement oe)
Returns a heading of the form "headword1 (headword2, ..., headwordn)" for the given ontology element. |
static java.lang.String |
getPrettyPrinted(java.lang.String text)
Returns the pretty-printed form of the given text. |
static void |
sortOntologyElements(java.util.List<? extends OntologyElement> elements)
Sorts the list of ontology elements according to their main headword. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static java.lang.String getPrettyPrinted(java.lang.String text)
text
- The input text.
public static java.lang.String getHeading(OntologyElement oe)
oe
- The ontology element.
public static void sortOntologyElements(java.util.List<? extends OntologyElement> elements)
elements
- The list to be sorted.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |