Style Intelligence v12.0

inetsoft.report.lens.xnode
Class XNodeTextLens

java.lang.Object
  extended by inetsoft.report.lens.xnode.XNodeTextLens
All Implemented Interfaces:
TextLens, Serializable, Cloneable

public class XNodeTextLens
extends Object
implements TextLens

Text lens for extracting text value from a data tree. The text value is taken from the first non-null node on the tree.

See Also:
Serialized Form

Constructor Summary
XNodeTextLens(XNode root)
          Create a text lens from a data tree.
 
Method Summary
 Object clone()
          Clone the object.
 Format getDefaultFormat()
          Get the default format.
 String getText()
          Get the text content.
 Object getValue()
          Get the value before converting to text.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XNodeTextLens

public XNodeTextLens(XNode root)
Create a text lens from a data tree.

Method Detail

getText

public String getText()
Get the text content.

Specified by:
getText in interface TextLens
Returns:
text string.

getValue

public Object getValue()
Get the value before converting to text.


clone

public Object clone()
Clone the object.

Specified by:
clone in interface TextLens
Overrides:
clone in class Object

getDefaultFormat

public Format getDefaultFormat()
Get the default format.


Copyright © 1996-2014 InetSoft Technology Corp. All Rights Reserved.