ch.uzh.ifi.attempto.acewiki.core
Class LanguageUtils

java.lang.Object
  extended by ch.uzh.ifi.attempto.acewiki.core.LanguageUtils

public class LanguageUtils
extends java.lang.Object

This utility class contains static methods for general tasks on the language level.

Author:
Tobias Kuhn

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

getPrettyPrinted

public static java.lang.String getPrettyPrinted(java.lang.String text)
Returns the pretty-printed form of the given text. Underscores are transformed into blanks.

Parameters:
text - The input text.
Returns:
The pretty-printed text;

getHeading

public static java.lang.String getHeading(OntologyElement oe)
Returns a heading of the form "headword1 (headword2, ..., headwordn)" for the given ontology element.

Parameters:
oe - The ontology element.
Returns:
The heading.

sortOntologyElements

public static void sortOntologyElements(java.util.List<? extends OntologyElement> elements)
Sorts the list of ontology elements according to their main headword.

Parameters:
elements - The list to be sorted.


Copyright 2008-2012, AceWiki developers