Style Intelligence v12.0

inetsoft.uql.text
Class TextOutput

java.lang.Object
  extended by inetsoft.uql.XNode
      extended by inetsoft.uql.schema.XTypeNode
          extended by inetsoft.uql.text.TextOutput
All Implemented Interfaces:
inetsoft.util.XMLSerializable, Serializable, Cloneable, Comparable

public class TextOutput
extends XTypeNode
implements Cloneable

TextOutput stores output attributes of text datasource.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class inetsoft.uql.schema.XTypeNode
STAR
 
Fields inherited from class inetsoft.uql.XNode
value
 
Constructor Summary
TextOutput()
          Constructor
 
Method Summary
 Object clone()
          Make a copy of the text output.
 XTypeNode cloneType()
          Clone a an output (XTypeNode) node of a datasource.
 TextFileInfo getBodyInfo()
          Gets the descriptor for the file body.
 String getDelimiter()
          Deprecated. 
 inetsoft.uql.text.TextFileType getFileType()
          Gets the type of the source file.
 int[] getFixedLengths()
          Deprecated. 
 String getHeaderDelimiter()
          Deprecated. 
 int getHeaderFixedLength()
          Deprecated. 
 TextFileInfo getHeaderInfo()
          Gets the descriptor for the file header.
 int[] getSelectedCols()
          Get the selected (shown) column indices.
 XSelection getTableSpec()
          Get the table column specification.
 boolean isAutoImportText()
          Check if datasource is auto import.
 boolean isFirstHeaderRow()
          Deprecated. 
 boolean isHeaderFixed()
          Deprecated. 
 boolean isLengthFixed()
          Deprecated. 
 void setAutoImportText(boolean autoImportText)
          Set whether the datasource should be auto import.
 void setBodyInfo(TextFileInfo bodyInfo)
          Sets the descriptor for the file body.
 void setDelimiter(String delim)
          Deprecated. 
 void setFileType(inetsoft.uql.text.TextFileType fileType)
          Sets the type of the source file.
 void setFirstHeaderRow(boolean first)
          Deprecated. 
 void setFixedLengths(int[] lengths)
          Deprecated. 
 void setHeaderDelimiter(String hdelim)
          Deprecated. 
 void setHeaderFixed(boolean headerFixed)
          Deprecated. 
 void setHeaderFixedLength(int headerLength)
          Deprecated. 
 void setHeaderInfo(TextFileInfo headerInfo)
          Sets the descriptor for the file header.
 void setLengthFixed(boolean fixed)
          Deprecated. 
 void setSelectedCols(int[] cols)
          Set the selected columns.
 void setTableSpec(XSelection tablespec)
          Set the table column specification.
 
Methods inherited from class inetsoft.uql.schema.XTypeNode
addAttribute, addChild, clone, compareTo, equals, getAttribute, getAttributeCount, getAttributeIndex, getAttributeString, getAttributeType, getFormat, getMaxOccurs, getMinOccurs, getType, getTypeNode, getXMetaInfo, isCompatible, isDate, isNumber, isPrimitive, isTypeNodeExists, newInstance, newInstance, parseXML, setAttribute, setFormat, setMaxOccurs, setMinOccurs, setXMetaInfo, toString, writeAttributes, writeTreeXML, writeTypeXML, writeXML
 
Methods inherited from class inetsoft.uql.XNode
addChild, addChild, addr, checkDuplicate, cloneValue, eq, getAttribute, getAttributeNames, getChild, getChild, getChildCount, getChildIndex, getDefaultFormat, getName, getNode, getParent, getPath, getPath, getValue, getValue, hashCode, insertChild, isAncestor, removeAllChildren, removeChild, removeChild, removeChild, removeChild, setAttribute, setChild, setDefaultFormat, setName, setValue, sort, sort
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TextOutput

public TextOutput()
Constructor

Method Detail

getTableSpec

public XSelection getTableSpec()
Get the table column specification.


setTableSpec

public void setTableSpec(XSelection tablespec)
Set the table column specification.


getSelectedCols

public int[] getSelectedCols()
Get the selected (shown) column indices.


setSelectedCols

public void setSelectedCols(int[] cols)
Set the selected columns.


getFileType

public inetsoft.uql.text.TextFileType getFileType()
Gets the type of the source file.

Returns:
the file type.

setFileType

public void setFileType(inetsoft.uql.text.TextFileType fileType)
Sets the type of the source file.

Parameters:
fileType - the file type.

getHeaderInfo

public TextFileInfo getHeaderInfo()
Gets the descriptor for the file header.

Returns:
the header descriptor.

setHeaderInfo

public void setHeaderInfo(TextFileInfo headerInfo)
Sets the descriptor for the file header.

Parameters:
headerInfo - the header descriptor.

getBodyInfo

public TextFileInfo getBodyInfo()
Gets the descriptor for the file body.

Returns:
the body descriptor.

setBodyInfo

public void setBodyInfo(TextFileInfo bodyInfo)
Sets the descriptor for the file body.

Parameters:
bodyInfo - the body descriptor.

getDelimiter

@Deprecated
public String getDelimiter()
Deprecated. 

Get the delimiters used in the text data file.


setDelimiter

@Deprecated
public void setDelimiter(String delim)
Deprecated. 

Set the delimiters used in the text data file.


setAutoImportText

public void setAutoImportText(boolean autoImportText)
Set whether the datasource should be auto import.


isAutoImportText

public boolean isAutoImportText()
Check if datasource is auto import.


isFirstHeaderRow

@Deprecated
public boolean isFirstHeaderRow()
Deprecated. 

Check if the first row should be treated as a header row.


setFirstHeaderRow

@Deprecated
public void setFirstHeaderRow(boolean first)
Deprecated. 

Set whether the first row should be treated as a header row.


isHeaderFixed

@Deprecated
public boolean isHeaderFixed()
Deprecated. 

Check if the header row has fixed length.


setHeaderFixed

@Deprecated
public void setHeaderFixed(boolean headerFixed)
Deprecated. 

Set whether the header row has fixed length.


getHeaderFixedLength

@Deprecated
public int getHeaderFixedLength()
Deprecated. 

Get header row's fixed length.


setHeaderFixedLength

@Deprecated
public void setHeaderFixedLength(int headerLength)
Deprecated. 

Set the header row's fixed length.


getHeaderDelimiter

@Deprecated
public String getHeaderDelimiter()
Deprecated. 

Get the header delimiters used in the text data file.


setHeaderDelimiter

@Deprecated
public void setHeaderDelimiter(String hdelim)
Deprecated. 

Set the header delimiters used in the text data file.


isLengthFixed

@Deprecated
public boolean isLengthFixed()
Deprecated. 

Check if the column length is fixed.


setLengthFixed

@Deprecated
public void setLengthFixed(boolean fixed)
Deprecated. 

Set whether the column length is fixed.


getFixedLengths

@Deprecated
public int[] getFixedLengths()
Deprecated. 

Get the length of each column.


setFixedLengths

@Deprecated
public void setFixedLengths(int[] lengths)
Deprecated. 

Set the length of each column.


cloneType

public XTypeNode cloneType()
                    throws Exception
Clone a an output (XTypeNode) node of a datasource. The type node is cloned by writing the type to XML and parse it back to handle recursive type dependency.

Overrides:
cloneType in class XTypeNode
Throws:
Exception

clone

public Object clone()
Make a copy of the text output.

Overrides:
clone in class XTypeNode

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