Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## ch.uzh.ifi.attempto.acewiki.core.text
Class TextElemFactory

    java.lang.Object
      ch.uzh.ifi.attempto.acewiki.core.text.TextElemFactory

    public class TextElemFactory

extends java.lang.Object

This factory class creates text element objects on the basis of ontology elements.

Author:
  Tobias Kuhn

Method Summary
`static TextElement` | `createTextElement(OntologyElement el)` Creates a new text element for the default word form of the given ontology element.
`static OntologyTextElement` | `createTextElement(OntologyElement el, int wordNumber)` Creates a new text element for the given word form (by word form id) of the given ontology element.

Methods inherited from class java.lang.Object
`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

Method Detail

### createTextElement

    public static OntologyTextElement createTextElement(OntologyElement el,
                                                        int wordNumber)

  Creates a new text element for the given word form (by word form id) of the given ontology element.

  Parameters:
    `el` - The ontology element.
    `wordNumber` - The word form id.
  Returns:
    The newly created text element.

### createTextElement

    public static TextElement createTextElement(OntologyElement el)

  Creates a new text element for the default word form of the given ontology element.

  Parameters:
    `el` - The ontology element.
  Returns:
    The newly created text element.

Overview | Package | Class | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

Copyright 2008, Attempto Group, University of Zurich (see http://attempto.ifi.uzh.ch)