Interface PrimitiveType
-
- All Superinterfaces:
DataType
- All Known Implementing Classes:
DecimalType
,EmptyType
,IntegerType
,ParameterizedListType
,StringType
,URIType
public interface PrimitiveType extends DataType
This models a primitive type.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description String
getTypeName()
Returns the name of this type.boolean
isList()
Tells whether this type is a list.PrimitiveTypeValue
parse(String str)
Returns a value based on the given string.
-
-
-
Method Detail
-
getTypeName
String getTypeName()
Returns the name of this type.- Returns:
- the name of this type
-
isList
boolean isList()
Tells whether this type is a list.- Returns:
true
if and only if this type is a list
-
parse
PrimitiveTypeValue parse(String str)
Returns a value based on the given string.- Parameters:
str
- string- Returns:
- a value based on the given string
-
-