org.kaiwitte.workbench.data
Class MetaSchemeImpl

java.lang.Object
  extended by org.kaiwitte.workbench.data.MetaSchemeImpl
All Implemented Interfaces:
MetaScheme

public class MetaSchemeImpl
extends java.lang.Object
implements MetaScheme

A default implementation of a MetaScheme.


Constructor Summary
MetaSchemeImpl(DataScheme scheme)
          Creates a new instance.
 
Method Summary
 DataColumn[] getColumns()
          Returns the DataColumns.
 DataScheme[] getDataSchemes()
          Returns the associated DataSchemes.
 int getLength()
          Returns the length (number of DataColumns).
 java.lang.String getName()
          Returns the name of the primary DataScheme
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MetaSchemeImpl

public MetaSchemeImpl(DataScheme scheme)
Creates a new instance.

Parameters:
scheme - the primary scheme. The related schemes, if any, are automatically retrieved by calling DataColumn.getAssociatedDataScheme() on the passed scheme's DataColumns.
Method Detail

getLength

public int getLength()
Description copied from interface: MetaScheme
Returns the length (number of DataColumns).

Specified by:
getLength in interface MetaScheme
Returns:
the length

getColumns

public DataColumn[] getColumns()
Description copied from interface: MetaScheme
Returns the DataColumns.

Specified by:
getColumns in interface MetaScheme
Returns:
the DataColumns

getName

public java.lang.String getName()
Description copied from interface: MetaScheme
Returns the name of the primary DataScheme

Specified by:
getName in interface MetaScheme
Returns:
the name

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

getDataSchemes

public DataScheme[] getDataSchemes()
Description copied from interface: MetaScheme
Returns the associated DataSchemes. The primary one (e. g. repair requests) is the first one in the array.

Specified by:
getDataSchemes in interface MetaScheme
Returns:
the associated DataSchemes