AbilityParameters.AbilityRecipeData
protected class CMAbleParms.AbilityRecipeDataImpl extends java.lang.Object implements AbilityParameters.AbilityRecipeData
Modifier and Type | Field | Description |
---|---|---|
int |
classFieldIndex |
|
java.lang.String[] |
columnHeaders |
|
int[] |
columnLengths |
Constructor | Description |
---|---|
AbilityRecipeDataImpl(java.lang.String recipeFilename,
java.lang.String recipeFormat) |
Modifier and Type | Method | Description |
---|---|---|
DVector |
blankRow() |
Creates a new blank recipe row for alteration.
|
java.lang.String[] |
columnHeaders() |
Returns the display name of each column, for display purposes.
|
int[] |
columnLengths() |
Returns the display length of each column, for display purposes
|
java.util.Vector<? extends java.lang.Object> |
columns() |
The columns of the recipe table, including multi-use and optional column data
|
java.util.Vector<DVector> |
dataRows() |
The rows of data, representing the rows of recipes.
|
int |
getClassFieldIndex() |
Returns the column number index that represents the Class of the objects
created by this recipe.
|
DVector |
newRow(java.lang.String classFieldData) |
Creates a new recipe row from the given Class information
|
int |
numberOfDataColumns() |
Returns the number of columns that can contain recipe data
|
java.lang.String |
parseError() |
Returns the last parse error when trying to parse a recipe file.
|
java.lang.String |
recipeFilename() |
Returns the VFS filename of the recipe file
|
java.lang.String |
recipeFormat() |
Returns the coded format of the recipe list, including optional data
|
boolean |
wasVFS() |
Returns true if the recipe file, when loaded, was saved in the vfs
|
public java.lang.String[] columnHeaders
public int[] columnLengths
public int classFieldIndex
public AbilityRecipeDataImpl(java.lang.String recipeFilename, java.lang.String recipeFormat)
public boolean wasVFS()
AbilityParameters.AbilityRecipeData
wasVFS
in interface AbilityParameters.AbilityRecipeData
public DVector newRow(java.lang.String classFieldData)
AbilityParameters.AbilityRecipeData
newRow
in interface AbilityParameters.AbilityRecipeData
classFieldData
- the class info for the object in the recipepublic DVector blankRow()
AbilityParameters.AbilityRecipeData
blankRow
in interface AbilityParameters.AbilityRecipeData
public int getClassFieldIndex()
AbilityParameters.AbilityRecipeData
getClassFieldIndex
in interface AbilityParameters.AbilityRecipeData
public java.lang.String recipeFilename()
AbilityParameters.AbilityRecipeData
recipeFilename
in interface AbilityParameters.AbilityRecipeData
public java.lang.String recipeFormat()
AbilityParameters.AbilityRecipeData
recipeFormat
in interface AbilityParameters.AbilityRecipeData
public java.util.Vector<DVector> dataRows()
AbilityParameters.AbilityRecipeData
dataRows
in interface AbilityParameters.AbilityRecipeData
public java.util.Vector<? extends java.lang.Object> columns()
AbilityParameters.AbilityRecipeData
columns
in interface AbilityParameters.AbilityRecipeData
public int[] columnLengths()
AbilityParameters.AbilityRecipeData
columnLengths
in interface AbilityParameters.AbilityRecipeData
public java.lang.String[] columnHeaders()
AbilityParameters.AbilityRecipeData
columnHeaders
in interface AbilityParameters.AbilityRecipeData
public int numberOfDataColumns()
AbilityParameters.AbilityRecipeData
numberOfDataColumns
in interface AbilityParameters.AbilityRecipeData
public java.lang.String parseError()
AbilityParameters.AbilityRecipeData
parseError
in interface AbilityParameters.AbilityRecipeData