net.sf.jsefa.xml.lowlevel.model
Class TextContentImpl

java.lang.Object
  extended by net.sf.jsefa.xml.lowlevel.model.TextContentImpl
All Implemented Interfaces:
TextContent, XmlItem

public final class TextContentImpl
extends Object
implements TextContent

Implementation of TextContent.

Instances of this class are immutable and thread safe.

Author:
Norman Lahme-Huetig

Constructor Summary
TextContentImpl(String content)
          Constructs a new TextContentImpl.
 
Method Summary
 String getText()
          Returns the text.
 XmlItemType getType()
          Returns the type of this xml item.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TextContentImpl

public TextContentImpl(String content)
Constructs a new TextContentImpl.

Parameters:
content - the content
Method Detail

getText

public String getText()
Returns the text.

Specified by:
getText in interface TextContent
Returns:
the text.

getType

public XmlItemType getType()
Returns the type of this xml item.

Specified by:
getType in interface XmlItem
Returns:
the type of this xml item


Copyright © 2014. All rights reserved.