com.jstatcom.io
Class ImportTypes

java.lang.Object
  extended by com.jstatcom.io.ImportTypes
Direct Known Subclasses:
TSImportTypes

public abstract class ImportTypes
extends java.lang.Object

Abstract class for definitions of different types of elements that belong to a certain dataset. It should be subclassed to create a new dataset definition.

Author:
Markus Kraetzig

Constructor Summary
ImportTypes(java.lang.String name, JSCTypes jscType)
          Creates a new import tyoe.
 
Method Summary
 boolean equals(java.lang.Object o)
          Override prevention method to enforce a.equals(b) if and only if a==b.
 int hashCode()
          Override prevention method invokes super method.
 java.lang.String name()
          Gets the name of this import type.
 java.lang.String toString()
          Gets a string representation.
 JSCTypes type()
          Gets the data type of this import type.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ImportTypes

public ImportTypes(java.lang.String name,
                   JSCTypes jscType)
Creates a new import tyoe.

Parameters:
name - the identifier of the new type
Throws:
java.lang.IllegalArgumentException - if (name == null || jscType == null)
Method Detail

equals

public final boolean equals(java.lang.Object o)
Override prevention method to enforce a.equals(b) if and only if a==b.

Overrides:
equals in class java.lang.Object
Parameters:
o - object to compare with
Returns:
true if equal, false otherwise

hashCode

public final int hashCode()
Override prevention method invokes super method.

Overrides:
hashCode in class java.lang.Object
Returns:
hash code

name

public final java.lang.String name()
Gets the name of this import type.

Returns:
the name of this type

type

public final JSCTypes type()
Gets the data type of this import type.

Returns:
the JSCData type of this import type

toString

public final java.lang.String toString()
Gets a string representation.

Overrides:
toString in class java.lang.Object
Returns:
a string representation of this