pl.edu.agh.cast.model
Class ModelColumn

java.lang.Object
  extended by pl.edu.agh.cast.model.ModelColumn

public class ModelColumn
extends Object

The class which represents model column which is chosen in template wizard during column mapping.

Author:
AGH CAST Team

Constructor Summary
ModelColumn(String id, String name, int modelIndex, String type, boolean required, String defaultValue)
          Constructor.
 
Method Summary
 boolean equals(Object obj)
          
 String getDefaultValue()
           
 String getId()
           
 int getModelIndex()
           
 String getName()
           
 ModelColumnParameter[] getParameters()
           
 String getType()
           
 int hashCode()
          
 boolean isRequired()
           
 void setParameters(ModelColumnParameter[] newParameters)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModelColumn

public ModelColumn(String id,
                   String name,
                   int modelIndex,
                   String type,
                   boolean required,
                   String defaultValue)
Constructor. The following fields are read from column element in extension point pl.edu.agh.cast.model

Parameters:
id - column id
name - column user-friendly name
modelIndex - index in model indicating column meaning
type - defines type of cells in column
required - indicates if column is required - if user has to choose during column mapping
defaultValue - default value for column cells, if column has no default value the parameter is null
Method Detail

equals

public boolean equals(Object obj)

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

setParameters

public void setParameters(ModelColumnParameter[] newParameters)

getId

public String getId()

getName

public String getName()

getModelIndex

public int getModelIndex()

getType

public String getType()

isRequired

public boolean isRequired()

getDefaultValue

public String getDefaultValue()

getParameters

public ModelColumnParameter[] getParameters()


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.