org.simantics.databoard.type
Class DataType
java.lang.Object
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
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, wait, wait, wait |
DataType
public DataType()
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