Style Intelligence v12.0

inetsoft.sree.store
Class ReportDataDescriptor

java.lang.Object
  extended by inetsoft.sree.store.ReportDataDescriptor
All Implemented Interfaces:
Serializable

public class ReportDataDescriptor
extends Object
implements Serializable

Report data descriptor contains the label, file type and file format information of a type of report data.

See Also:
Serialized Form

Field Summary
 boolean compressed
          Indicates if file is compressed.
 int format
          Report data file format.
 Icon icon
          Icon that represents the file type.
 String iconName
          The name of the icon that represents the file type.
 String label
          Report data file label.
 String type
          Report data file type.
 boolean visible
          Indicates if file is visible.
 
Constructor Summary
ReportDataDescriptor(String label, String type, int fmt, boolean compressed, String icon, boolean visible)
          Create a report data descriptor.
 
Method Summary
static ReportDataDescriptor getDescriptor(String type)
          Get the data descriptor for the specified file type.
static ReportDataDescriptor[] getDescriptors()
          Get all the predefined report data descriptors.
static String getFileType(int fmt)
          Get the file type of a file format.
static boolean isReportDataFile(String fname)
          Check if a file is a report data file.
static boolean isReportDataFolder(String fname)
          Check if a folder is a report data folder.
 String toString()
          Get the string representation.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

label

public final String label
Report data file label.


type

public final String type
Report data file type.


format

public final int format
Report data file format.


compressed

public final boolean compressed
Indicates if file is compressed.


icon

public final Icon icon
Icon that represents the file type.


iconName

public final String iconName
The name of the icon that represents the file type.


visible

public final boolean visible
Indicates if file is visible. If false, the file should not be shown.

Constructor Detail

ReportDataDescriptor

public ReportDataDescriptor(String label,
                            String type,
                            int fmt,
                            boolean compressed,
                            String icon,
                            boolean visible)
Create a report data descriptor.

Parameters:
label - the specified file label.
type - the specified file type.
fmt - the specified file format.
compressed - indicates if the file is compressed.
icon - icon that represents the file type.
Method Detail

getDescriptors

public static ReportDataDescriptor[] getDescriptors()
Get all the predefined report data descriptors.

Returns:
all the predefined report data descriptors.

getFileType

public static String getFileType(int fmt)
Get the file type of a file format.

Parameters:
fmt - the specified fmt;
Returns:
the file type of the file format.

getDescriptor

public static ReportDataDescriptor getDescriptor(String type)
Get the data descriptor for the specified file type.

Parameters:
type - the file type of the descriptor to get.
Returns:
the data descriptor for the specified type.

isReportDataFile

public static boolean isReportDataFile(String fname)
Check if a file is a report data file.

Parameters:
fname - the specified file name.
Returns:
true if is a report data file, false otherwise.

isReportDataFolder

public static boolean isReportDataFolder(String fname)
Check if a folder is a report data folder.

Parameters:
fname - the specified folder name.
Returns:
true if is a report data folder, false otherwise.

toString

public String toString()
Get the string representation.

Overrides:
toString in class Object
Returns:
the string representation.

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