Class SimplifiedCompositeType
- java.lang.Object
-
- de.tudresden.inf.lat.tabulas.datatype.SimplifiedCompositeType
-
- All Implemented Interfaces:
CompositeType
,DataType
,Serializable
,scala.Equals
,scala.Product
public class SimplifiedCompositeType extends Object implements CompositeType, scala.Product, Serializable
This models a simplified composite type where the fields have the same type.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description SimplifiedCompositeType(CompositeTypeImpl dataType)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SimplifiedCompositeType
apply()
static SimplifiedCompositeType
apply(String[] knownFields)
CompositeTypeImpl
dataType()
static String
DefaultFieldType()
CompositeTypeImpl
getDataType()
scala.collection.immutable.Seq<String>
getFields()
Returns all the fields.scala.Option<String>
getFieldType(String field)
Returns an optional containing the type of the given field, if the field is present, or an empty optional otherwise.String
toString()
-
-
-
Constructor Detail
-
SimplifiedCompositeType
public SimplifiedCompositeType(CompositeTypeImpl dataType)
-
-
Method Detail
-
DefaultFieldType
public static final String DefaultFieldType()
-
apply
public static SimplifiedCompositeType apply()
-
apply
public static SimplifiedCompositeType apply(String[] knownFields)
-
dataType
public CompositeTypeImpl dataType()
-
getFields
public scala.collection.immutable.Seq<String> getFields()
Description copied from interface:CompositeType
Returns all the fields.- Specified by:
getFields
in interfaceCompositeType
- Returns:
- all the fields
-
getDataType
public CompositeTypeImpl getDataType()
-
getFieldType
public scala.Option<String> getFieldType(String field)
Description copied from interface:CompositeType
Returns an optional containing the type of the given field, if the field is present, or an empty optional otherwise.- Specified by:
getFieldType
in interfaceCompositeType
- Parameters:
field
- field- Returns:
- an optional containing the type of the given field, if the field is present, or an empty optional otherwise
-
-