org.gcube.data.analysis.tabulardata.model.column
Class CodelistRefColumn

java.lang.Object
  extended by org.gcube.data.analysis.tabulardata.model.column.Column
      extended by org.gcube.data.analysis.tabulardata.model.column.CodelistRefColumn
All Implemented Interfaces:
Serializable, MetadataHolder

public class CodelistRefColumn
extends Column

See Also:
Serialized Form

Constructor Summary
CodelistRefColumn(String label, ColumnRelationship relationship)
          Creates a CodelistRefColumn with the given relationship.
CodelistRefColumn(String label, String name, ColumnRelationship relationship)
          Creates named CodelistRefColumn with the given relationship.
CodelistRefColumn(String label, String name, TableReference codelistReference)
          Creates a named CodelistRefColumn with a relationship pointing to the ID column of the target codelist.
CodelistRefColumn(String label, TableReference codelistReference)
          Creates a CodelistRefColumn with a relationship pointing to the ID column of the target codelist.
 
Method Summary
 boolean equals(Object obj)
           
 ColumnType getColumnType()
           
 DataType getDataType()
           
 String getLabel()
           
 String getName()
           
 ColumnRelationship getRelationship()
           
 int hashCode()
           
 boolean hasName()
           
 boolean hasRelationship()
           
 void setLabel(String label)
           
 void setName(String name)
           
 
Methods inherited from class org.gcube.data.analysis.tabulardata.model.column.Column
getAllMetadata, getMetadata, getMetadataObject, removeAllMetadata, removeMetadata, setMetadata, setMetadata, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CodelistRefColumn

public CodelistRefColumn(String label,
                         ColumnRelationship relationship)
Creates a CodelistRefColumn with the given relationship.

Parameters:
label -
relationship -

CodelistRefColumn

public CodelistRefColumn(String label,
                         String name,
                         ColumnRelationship relationship)
Creates named CodelistRefColumn with the given relationship.

Parameters:
label -
name -
relationship -

CodelistRefColumn

public CodelistRefColumn(String label,
                         TableReference codelistReference)
Creates a CodelistRefColumn with a relationship pointing to the ID column of the target codelist.

Parameters:
label -
codelistReference -

CodelistRefColumn

public CodelistRefColumn(String label,
                         String name,
                         TableReference codelistReference)
Creates a named CodelistRefColumn with a relationship pointing to the ID column of the target codelist.

Parameters:
label -
name -
codelistReference -
Method Detail

getColumnType

public ColumnType getColumnType()
Specified by:
getColumnType in class Column

getLabel

public String getLabel()
Specified by:
getLabel in class Column

setLabel

public void setLabel(String label)
Specified by:
setLabel in class Column

hasName

public boolean hasName()
Specified by:
hasName in class Column

getName

public String getName()
Specified by:
getName in class Column

setName

public void setName(String name)
Specified by:
setName in class Column

getDataType

public DataType getDataType()
Specified by:
getDataType in class Column

hasRelationship

public boolean hasRelationship()
Specified by:
hasRelationship in class Column

getRelationship

public ColumnRelationship getRelationship()
Specified by:
getRelationship in class Column

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object obj)
Overrides:
equals in class Object


Copyright © 2013. All Rights Reserved.