org.simantics.databoard.type
Class DataType

java.lang.Object
  extended by org.simantics.databoard.type.DataType
Direct Known Subclasses:
ArrayType, BooleanType, MapType, NumberType, OptionalType, RecordType, StringType, UnionType, VariantType

public abstract class DataType
extends java.lang.Object


Nested Class Summary
static interface DataType.Visitor<T>
           
static interface DataType.Visitor1
           
 
Constructor Summary
DataType()
           
 
Method Summary
abstract
<T> T
accept(DataType.Visitor<T> v)
           
abstract  void accept(DataType.Visitor1 v, java.lang.Object obj)
           
 boolean equals(java.lang.Object obj)
          Deep equals-compare
 java.lang.String toSingleLineString()
          Print the type in data type notation.
 java.lang.String toString()
          Print the type in data type notation.
 
Methods inherited from class java.lang.Object
getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DataType

public DataType()
Method Detail

toString

public java.lang.String toString()
Print the type in data type notation. Datatype Notation See DataTypes.getDataType(String) to parse string to data type.

Overrides:
toString in class java.lang.Object
Returns:
type

toSingleLineString

public java.lang.String toSingleLineString()
Print the type in data type notation. Datatype Notation See DataTypes.getDataType(String) to parse string to data type.

Returns:
type

accept

public abstract void accept(DataType.Visitor1 v,
                            java.lang.Object obj)

accept

public abstract <T> T accept(DataType.Visitor<T> v)

equals

public boolean equals(java.lang.Object obj)
Deep equals-compare

Overrides:
equals in class java.lang.Object
Parameters:
obj - object to compare with
Returns:
true if the object is equal (incl. structurally) with this object