public class DataStorageDescriptor extends Object
Copyright: Copyright 2003-2014, Knowledge Science Group, University of Calgary. Permission to use, copy, modify, distribute and sell this software and its documentation for any purpose is hereby granted without fee, provided that the above copyright notice appear in all copies and that both that copyright notice and this permission notice appear in supporting documentation. The Knowledge Science Group makes no representations about the suitability of this software for any purpose. It is provided "as is" without express or implied warranty.
Modifier and Type | Field and Description |
---|---|
private boolean |
append |
private String |
data |
private String |
dataObjectName |
Constructor and Description |
---|
DataStorageDescriptor() |
DataStorageDescriptor(String storageObjectName,
String data,
boolean append) |
Modifier and Type | Method and Description |
---|---|
static DataStorageDescriptor |
fromString(TokenParser parser) |
static void |
fromString(TokenParser parser,
DataStorageDescriptor data)
Initializes a DataStorageDescriptor from a string of the form:
"Object1 Index1 Some data of any form with or without spaces and abstract characters"
|
String |
getData() |
String |
getDataObjectName() |
void |
setAppend(boolean append) |
void |
setData(String data) |
void |
setDataObjectName(String storageObjectName) |
String |
toString() |
boolean |
willAppend() |
private String dataObjectName
private String data
private boolean append
public String getDataObjectName()
public void setDataObjectName(String storageObjectName)
storageObjectName
- public void setData(String data)
data
- public String getData()
public boolean willAppend()
public void setAppend(boolean append)
append
- public String toString()
public static void fromString(TokenParser parser, DataStorageDescriptor data) throws DataDescriptorException
parser
- TokenParser containing the string to be parsed. The string must be in
the order Name, Index, DataDescriptordata
- Object to be initializedDataDescriptorException
- if an error occurs parsing the stringpublic static DataStorageDescriptor fromString(TokenParser parser) throws DataDescriptorException
DataDescriptorException