|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectpl.edu.agh.cast.data.template.Template
public class Template
Representation of the import template.
Field Summary | |
---|---|
static String |
NAMESPACE_ATTR_VALUE
The namespace constant. |
static String |
SCHEMA_LOCATION_ATTR_VALUE
The template schema location. |
static double |
TEMPLATE_VERSION
The template version. |
Constructor Summary | |
---|---|
Template(String name,
String modelId,
String importerId,
Map<String,String> importerOptions,
Map<Integer,Integer> modelToDataMapping,
Map<Integer,ModelColumnParameter[]> columnsParameters,
String description)
Constructor. |
|
Template(String name,
String modelId,
String importerId,
Map<String,String> importerOptions,
Map<Integer,Integer> modelToDataMapping,
String description)
Constructor. |
|
Template(String name,
String modelId,
String importerId,
Map<String,String> importerOptions,
String preprocessorId,
Map<Integer,Integer> modelToDataMapping,
Map<Integer,ModelColumnParameter[]> columnsParameters,
String description)
The default constructor. |
Method Summary | |
---|---|
boolean |
equals(Object obj)
|
String[] |
getColumnNames(int columnsCount)
Returns column names. |
Map<Integer,ModelColumnParameter[]> |
getColumnsParameters()
|
String |
getDescription()
|
TemplateGroup |
getGroup()
|
Integer[] |
getIgnoredColumns(int columnsCount)
Returns ignored columns. |
String |
getImporterId()
|
Map<String,String> |
getImporterOptions()
|
String |
getModelId()
|
Map<Integer,Integer> |
getModelToDataMapping()
|
String |
getName()
|
String |
getNamespace()
|
String |
getPreprocessorId()
|
String |
getSchemaLocation()
|
String |
getXsiNamespace()
|
int |
hashCode()
|
void |
initNamespace()
Initializes the namespace, XSI namespace and schema location attributes. |
Object |
readResolve()
Trims template attributes after deserialization. |
void |
setColumnsParameters(Map<Integer,ModelColumnParameter[]> columnsParameters)
|
void |
setGroup(TemplateGroup group)
|
void |
setModelUtil(ModelUtil util)
|
void |
setPreprocessorId(String preprocessorId)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String NAMESPACE_ATTR_VALUE
public static final String SCHEMA_LOCATION_ATTR_VALUE
public static final double TEMPLATE_VERSION
Constructor Detail |
---|
public Template(String name, String modelId, String importerId, Map<String,String> importerOptions, String preprocessorId, Map<Integer,Integer> modelToDataMapping, Map<Integer,ModelColumnParameter[]> columnsParameters, String description)
name
- the template namemodelId
- the template model identifierimporterId
- the template importer identifierimporterOptions
- the importer optionspreprocessorId
- the preprocessor identifiermodelToDataMapping
- the model to data mappingcolumnsParameters
- the column parametersdescription
- the template descriptionpublic Template(String name, String modelId, String importerId, Map<String,String> importerOptions, Map<Integer,Integer> modelToDataMapping, Map<Integer,ModelColumnParameter[]> columnsParameters, String description)
name
- the template namemodelId
- the template model identifierimporterId
- the template importer identifierimporterOptions
- the importer optionsmodelToDataMapping
- the model to data mappingcolumnsParameters
- the column parametersdescription
- the template descriptionpublic Template(String name, String modelId, String importerId, Map<String,String> importerOptions, Map<Integer,Integer> modelToDataMapping, String description)
name
- the template namemodelId
- the template model identifierimporterId
- the template importer identifierimporterOptions
- the importer optionsmodelToDataMapping
- the model to data mappingdescription
- the template descriptionMethod Detail |
---|
public void initNamespace()
public boolean equals(Object obj)
equals
in class Object
Object.equals(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
public String toString()
toString
in class Object
Object.toString()
public String[] getColumnNames(int columnsCount)
columnsCount
- the number of columns
public Integer[] getIgnoredColumns(int columnsCount)
columnsCount
- the number of columns
null
if there is no ignored columnspublic Object readResolve() throws ObjectStreamException
ObjectStreamException
public String getName()
public String getModelId()
public String getPreprocessorId()
public String getImporterId()
public Map<String,String> getImporterOptions()
public String getDescription()
public Map<Integer,Integer> getModelToDataMapping()
public Map<Integer,ModelColumnParameter[]> getColumnsParameters()
public String getNamespace()
public String getXsiNamespace()
public String getSchemaLocation()
public TemplateGroup getGroup()
public void setPreprocessorId(String preprocessorId)
public void setGroup(TemplateGroup group)
public void setColumnsParameters(Map<Integer,ModelColumnParameter[]> columnsParameters)
public void setModelUtil(ModelUtil util)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |