Package com.smartgwt.client.data
Class FileSpec
java.lang.Object
com.smartgwt.client.core.JsObject
com.smartgwt.client.core.DataClass
com.smartgwt.client.data.FileSpec
- All Implemented Interfaces:
HasHandlers
A record which specifies files for use with
FileSource Operations
.-
Field Summary
Fields inherited from class com.smartgwt.client.core.DataClass
factoryCreated, factoryProperties
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionThe format of the file, e.g.The type of the file, e.g.static FileSpec
getOrCreateRef
(JavaScriptObject jsObj) protected static JavaScriptObject
setFileFormat
(String fileFormat) The format of the file, e.g.setFileName
(String fileName) setFileType
(String fileType) The type of the file, e.g.Methods inherited from class com.smartgwt.client.core.DataClass
applyFactoryProperties, doAddHandler, fireEvent, getAttribute, getAttributeAsBoolean, getAttributeAsBoolean, getAttributeAsDate, getAttributeAsDouble, getAttributeAsDoubleArray, getAttributeAsElement, getAttributeAsFloat, getAttributeAsInt, getAttributeAsIntArray, getAttributeAsJavaScriptObject, getAttributeAsLong, getAttributeAsMap, getAttributeAsObject, getAttributeAsRecord, getAttributeAsString, getAttributeAsStringArray, getAttributes, getHandlerCount, isFactoryCreated, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttribute, setAttributeAsJavaObject, setFactoryCreated
-
Constructor Details
-
FileSpec
public FileSpec() -
FileSpec
-
FileSpec
-
FileSpec
Constructs a FileSpec from a path. For instance, "employees.ds.xml" would be converted to {fileName: "employees", fileType: "ds", fileFormat: "xml"}.- Parameters:
path
- The path to convert.
-
-
Method Details
-
getOrCreateRef
-
setFileFormat
The format of the file, e.g. "xml" or "js"- Parameters:
fileFormat
- New fileFormat value. Default value is null- Returns:
FileSpec
instance, for chaining setter calls
-
getFileFormat
The format of the file, e.g. "xml" or "js"- Returns:
- Current fileFormat value. Default value is null
-
setFileName
- Parameters:
fileName
- New fileName value. Default value is null- Returns:
FileSpec
instance, for chaining setter calls
-
getFileName
- Returns:
- Current fileName value. Default value is null
-
setFileType
The type of the file, e.g. "ds" for datasource, or "proj" for project.- Parameters:
fileType
- New fileType value. Default value is null- Returns:
FileSpec
instance, for chaining setter calls
-
getFileType
The type of the file, e.g. "ds" for datasource, or "proj" for project.- Returns:
- Current fileType value. Default value is null
-
parsePath
-