org.gcube.data.analysis.tabulardata.model.table
Class HierarchicalCodelist

java.lang.Object
  extended by org.gcube.data.analysis.tabulardata.model.table.Table
      extended by org.gcube.data.analysis.tabulardata.model.table.HierarchicalCodelist
All Implemented Interfaces:
MetadataHolder

public class HierarchicalCodelist
extends Table

Represent a HierarchicalCodelist that enables a parent-child relationship between codes of two codelist. By using hierarchical codelist one child code can have multiple parent codes. A hierachical codelist is made of one IdColumn, a parent code CodelistRefColumn, a child code CodelistRefColumn

Author:
"Luigi Fortunati"

Constructor Summary
HierarchicalCodelist(HierarchicalCodelist hcl)
           
HierarchicalCodelist(long id, String name, Collection<Column> columns)
           
HierarchicalCodelist(String name, Collection<Column> columns)
           
 
Method Summary
 boolean equals(Object obj)
           
 List<Column> getColumns()
           
 TableType getTableType()
           
 int hashCode()
           
 
Methods inherited from class org.gcube.data.analysis.tabulardata.model.table.Table
exists, getAllMetadata, getColumnByLabel, getColumnByName, getColumnReference, getColumns, getColumns, getId, getMetadata, getMetadataObject, getName, getParentTableId, getReference, getRelationships, hasRelationships, removeAllMetadata, removeMetadata, sameStructureAs, setExists, setMetadata, setMetadata, setParentTableId, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

HierarchicalCodelist

public HierarchicalCodelist(HierarchicalCodelist hcl)

HierarchicalCodelist

public HierarchicalCodelist(long id,
                            String name,
                            Collection<Column> columns)

HierarchicalCodelist

public HierarchicalCodelist(String name,
                            Collection<Column> columns)
Method Detail

getColumns

public List<Column> getColumns()
Specified by:
getColumns in class Table
Returns:
the column set of the table

getTableType

public TableType getTableType()
Specified by:
getTableType in class Table
Returns:
the table type enumarated value

hashCode

public int hashCode()
Overrides:
hashCode in class Table

equals

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


Copyright © 2013. All Rights Reserved.