Project: stp

com.ibm.rational.wvcm.stp.cq
Class CqQuery.FileOptionsClass

Object
  extended by CqQuery.FileOptionsClass
All Implemented Interfaces:
CqQuery.FileOptions
Enclosing interface:
CqQuery

public static class CqQuery.FileOptionsClass
extends Object
implements CqQuery.FileOptions

Instances of this class provide the default values for each attribute specified by the FileOptions interface, which is the same behavior exhibited when using null for a FileOptions parameter. Clients can provide non-default attribute values by defining and instantiating a subclass of this class that overrides select methods to provide the desired non-default value.

Using a class instance creation expression, for example, one could define a FileOptions object for requesting the use of tabs as the file delimiter...

     FileOptions USE_TABS = new FileOptionsClass(){
         public String getDelimiter() { return "\t"; };
     };
 


Constructor Summary
CqQuery.FileOptionsClass()
           
 
Method Summary
 String getDelimiter()
           
 Long getMaxMultiLineTextLength()
           
 String getOptions()
           
 
Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CqQuery.FileOptionsClass

public CqQuery.FileOptionsClass()
Method Detail

getDelimiter

public String getDelimiter()
Specified by:
getDelimiter in interface CqQuery.FileOptions
Returns:
The delimiter to use in those file formats that use a delimiter.

getMaxMultiLineTextLength

public Long getMaxMultiLineTextLength()
Specified by:
getMaxMultiLineTextLength in interface CqQuery.FileOptions
Returns:
The maximum number of characters that are to be included in each row of the response for each multi-line text display field.

getOptions

public String getOptions()
Specified by:
getOptions in interface CqQuery.FileOptions
Returns:
A String containing additional options for specifying the form and content of the result set file.

Generated Thu 18-Aug-2016 11:59 AM

Copyright © IBM 2016. All rights reserved.