|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjava.util.Observable
nesstar.rdf.RDFObject
nesstar.api.faster.Datafile
public class Datafile
| Field Summary | |
|---|---|
static String |
CLASS_ID
|
| Fields inherited from class nesstar.rdf.RDFObject |
|---|
COLSEP, IS_GETTER, IS_PART, IS_PART_OF, WRITE_OP |
| Constructor Summary | |
|---|---|
Datafile(RDFDB db,
URL id)
Create an object with the indicated id in the indicated db |
|
| Method Summary | |
|---|---|
Bookmark |
AddDataFile(File file)
add the data file corresponding to this object |
void |
AddDataFile(File file,
BasicExecutorLog log)
add the data file corresponding to this object |
void |
clear()
Clear all properties of this object |
RDFRef |
get_children()
|
String |
get_content()
|
String |
get_ddiDatafileID()
|
String |
get_encoding()
|
String |
get_fileType()
|
String |
get_hasData()
|
String |
get_name()
|
String |
get_numCases()
|
String |
get_numVars()
|
RDFRef |
get_parents()
|
String |
get_recType()
|
String |
get_structure()
|
RDFRef |
get_study()
|
RDFRef |
get_variable()
|
static Vector |
getAllInstances()
|
static Vector |
getAllInstances(RDFDB db)
|
List |
getChildren()
|
String |
getComment()
Abstract or description of file. |
String |
getContent()
Deprecated. replaced by Label |
String |
getDdiDatafileID()
File ID (local to this data file) |
static FeatureDescriptor |
getDescriptor(String featureName)
get the descriptor for a feature of the class, either method or attribute Note: the methods' feature are still not implemented |
String |
getEncoding()
The charset attribute allows you to specify the character set used in the file, e.g., us-ascii, ebcdic, unicode UTF-8, etc. |
String |
getFileType()
Types of data files include raw data (ASCII, EBCDIC, etc.) and software-dependent files such as SAS datasets, SPSS export files, etc. |
static Collection |
getGetterMethods()
|
Boolean |
getHasData()
Does this Datafile have data? |
static Datafile |
getInstance(RDFDB db,
URL id)
If an object of type Datafile with the indicated id exists in the db returns it otherwise create a new object in the db and returns it |
static Datafile |
getInstance(String rdf)
|
String |
getLabel()
Contains a short title that will be used to distinguish a particular file/part from other files/parts in the data collection. |
String |
getName()
replicated in label - should be deprecated * |
Integer |
getNumCases()
Number of cases or observations in the entire file. |
Integer |
getNumVars()
Number of variables in the entire file.To be used for rectangular files only. |
List |
getParents()
|
static Collection |
getPartsDescriptor()
|
String |
getRecType()
Indicates the type of record, e.g., "A records" or "Household records". |
String |
getStructure()
Indicates hierarchical, rectangular, relational or nested (the default is rectangular). |
Study |
getStudy()
|
List |
getVariable()
|
void |
initialised()
Notify that the object has been created and its properties setup for the first time. |
static void |
listenForNewObj(NewObjListener listener)
Register to be notified when new objects are added. |
static Datafile |
newInstance(RDFDB db)
Create a new object of this type with a locally unique id and returns it |
static Datafile |
retrieve(URL id)
If an object of type Datafile with the indicated id has already being retrieved from the network returns it otherwise retrieve it together with its class information (methods, properties, etc.) |
void |
set_children(RDFRef children)
|
void |
set_content(String content)
|
void |
set_ddiDatafileID(String ddiDatafileID)
|
void |
set_encoding(String encoding)
|
void |
set_fileType(String fileType)
|
void |
set_hasData(String hasData)
|
void |
set_name(String name)
|
void |
set_numCases(String numCases)
|
void |
set_numVars(String numVars)
|
void |
set_parents(RDFRef parents)
|
void |
set_recType(String recType)
|
void |
set_structure(String structure)
|
void |
set_study(RDFRef study)
|
void |
set_variable(RDFRef variable)
|
void |
setChildren(List children)
|
void |
setContent(String content)
Deprecated. replaced by Label |
void |
setDdiDatafileID(String ddiDatafileID)
File ID (local to this data file) |
void |
setEncoding(String encoding)
The charset attribute allows you to specify the character set used in the file, e.g., us-ascii, ebcdic, unicode UTF-8, etc. |
void |
setFileType(String fileType)
Types of data files include raw data (ASCII, EBCDIC, etc.) and software-dependent files such as SAS datasets, SPSS export files, etc. |
void |
setHasData(Boolean hasData)
Does this Datafile have data? |
void |
setName(String name)
replicated in label - should be deprecated * |
void |
setNumCases(Integer numCases)
Number of cases or observations in the entire file. |
void |
setNumVars(Integer numVars)
Number of variables in the entire file.To be used for rectangular files only. |
void |
setParents(List parents)
|
void |
setRecType(String recType)
Indicates the type of record, e.g., "A records" or "Household records". |
void |
setStructure(String structure)
Indicates hierarchical, rectangular, relational or nested (the default is rectangular). |
void |
setStudy(Study study)
|
void |
setVariable(List variable)
|
| Methods inherited from class java.util.Observable |
|---|
addObserver, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers |
| Methods inherited from class java.lang.Object |
|---|
getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static String CLASS_ID
| Constructor Detail |
|---|
public Datafile(RDFDB db,
URL id)
throws Exception
db - the db where the object is to be createdid - the id of the object to create
Exception| Method Detail |
|---|
public void set_study(RDFRef study)
study -
public void setStudy(Study study)
throws Exception
study -
Exceptionpublic void set_parents(RDFRef parents)
parents -
public void setParents(List parents)
throws Exception
parents -
Exceptionpublic void set_children(RDFRef children)
children -
public void setChildren(List children)
throws Exception
children -
Exceptionpublic void set_variable(RDFRef variable)
variable -
public void setVariable(List variable)
throws Exception
variable -
Exceptionpublic void setNumCases(Integer numCases)
Number of cases or observations in the entire file. To be used for rectangular files only.
numCases - public void set_numCases(String numCases)
numCases - public void setNumVars(Integer numVars)
Number of variables in the entire file.To be used for rectangular files only.
numVars - public void set_numVars(String numVars)
numVars - public void setName(String name)
replicated in label - should be deprecated *
name - public void set_name(String name)
name - public void setFileType(String fileType)
Types of data files include raw data (ASCII, EBCDIC, etc.) and software-dependent files such as SAS datasets, SPSS export files, etc.
fileType - public void set_fileType(String fileType)
fileType - public void setRecType(String recType)
Indicates the type of record, e.g., "A records" or "Household records".
recType - public void set_recType(String recType)
recType - public void setEncoding(String encoding)
The charset attribute allows you to specify the character set used in the file, e.g., us-ascii, ebcdic, unicode UTF-8, etc.
encoding - public void set_encoding(String encoding)
encoding - public void setStructure(String structure)
Indicates hierarchical, rectangular, relational or nested (the default is rectangular).
structure - public void set_structure(String structure)
structure - public void setDdiDatafileID(String ddiDatafileID)
File ID (local to this data file)
ddiDatafileID - public void set_ddiDatafileID(String ddiDatafileID)
ddiDatafileID - public void setContent(String content)
content - public void set_content(String content)
content - public void setHasData(Boolean hasData)
Does this Datafile have data?
hasData - public void set_hasData(String hasData)
hasData -
public static Vector getAllInstances(RDFDB db)
throws Exception
db - the db where the instances are to be found
Exception
public static Vector getAllInstances()
throws Exception
Exception
public static Datafile getInstance(RDFDB db,
URL id)
throws Exception
db - the db where the object is to be found or createdid - the id of the object to retrieve or create
Exception
public static Datafile getInstance(String rdf)
throws Exception
rdf - some rdf code that contains a description of an object of this kind
Exception
public RDFRef get_study()
throws Exception
Exceptionpublic Study getStudy()
public RDFRef get_parents()
throws Exception
Exception
public List getParents()
throws Exception
Exception
public RDFRef get_children()
throws Exception
Exception
public List getChildren()
throws Exception
Exception
public RDFRef get_variable()
throws Exception
Exception
public List getVariable()
throws Exception
Exceptionpublic Integer getNumCases()
Number of cases or observations in the entire file. To be used for rectangular files only.
public String get_numCases()
throws Exception
Exceptionpublic Integer getNumVars()
Number of variables in the entire file.To be used for rectangular files only.
public String get_numVars()
throws Exception
Exceptionpublic String getName()
replicated in label - should be deprecated *
public String get_name()
throws Exception
Exceptionpublic String getFileType()
Types of data files include raw data (ASCII, EBCDIC, etc.) and software-dependent files such as SAS datasets, SPSS export files, etc.
public String get_fileType()
throws Exception
Exceptionpublic String getRecType()
Indicates the type of record, e.g., "A records" or "Household records".
public String get_recType()
throws Exception
Exceptionpublic String getEncoding()
The charset attribute allows you to specify the character set used in the file, e.g., us-ascii, ebcdic, unicode UTF-8, etc.
public String get_encoding()
throws Exception
Exceptionpublic String getStructure()
Indicates hierarchical, rectangular, relational or nested (the default is rectangular).
public String get_structure()
throws Exception
Exceptionpublic String getDdiDatafileID()
File ID (local to this data file)
public String get_ddiDatafileID()
throws Exception
Exceptionpublic String getContent()
public String get_content()
throws Exception
Exceptionpublic String getLabel()
Contains a short title that will be used to distinguish a particular file/part from other files/parts in the data collection.
getLabel in class RDFObjectpublic String getComment()
Abstract or description of file. An unformatted summary describing the purpose, nature, and scope of the data file, special characteristics of its contents, major subject areas covered, and what questions the PIs attempted to answer when they created the file. A listing of major variables in the file is important here. In the case of multi-file collections, this uniquely describes the contents of each file.
getComment in class RDFObjectpublic Boolean getHasData()
Does this Datafile have data?
public String get_hasData()
throws Exception
Exceptionpublic static FeatureDescriptor getDescriptor(String featureName)
featureName - public static Collection getPartsDescriptor()
public static Collection getGetterMethods()
public static Datafile newInstance(RDFDB db)
throws Exception
db - the db where the object is to be found or created
Exceptionpublic static void listenForNewObj(NewObjListener listener)
listener - the listenerpublic void initialised()
initialised in class RDFObject
public static Datafile retrieve(URL id)
throws Exception
id - the id of the object to retrieve
Exceptionpublic void clear()
RDFObject
clear in class RDFObject
public Bookmark AddDataFile(File file)
throws Exception
add the data file corresponding to this object
file - the file to be added
Exception
public void AddDataFile(File file,
BasicExecutorLog log)
throws Exception
add the data file corresponding to this object
file - the file to be addedlog - the Executor of this method;if null a default one is used
Exception
|
Nesstar SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||