public abstract class SimpleType extends AbstractType
Modifier and Type | Field and Description |
---|---|
static BinaryType |
BINARY
BinaryType instance. |
static BooleanType |
BOOLEAN
BooleanType instance. |
static DateType |
DATE
DateType instance. |
static DecimalType |
DECIMAL
DecimalType instance with default scale and rounding mode. |
static EnumerationBaseType |
ENUMERATION
EnumerationBaseType instance. |
static IntegerType |
INTEGER
IntegerType instance. |
static LocalDateType |
LOCAL_DATE
LocalDateType instance. |
static LocalDateTimeType |
LOCAL_DATE_TIME
LocalDateType instance. |
static NullType |
NULL
NullType instance. |
static ObjectType |
OBJECT
ObjectType instance. |
static PropertyType |
PROPERTY
PropertyType instance. |
static PropertyPathType |
PROPERTY_PATH
PropertyPathType instance. |
static RecordBaseType |
RECORD
RecordBaseType instance. |
static StringType |
STRING
StringType instance. |
static VoidType |
VOID
VoidType instance. |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
static SimpleType |
forJavaClass(java.lang.Class<?> clazz)
Returns a simple type for a given Java class.
|
static SimpleType |
forName(java.lang.String name)
Returns an instance of
SimpleType for given name (the name is the
result of the toString() method. |
java.lang.Class<?> |
getJavaClass()
Returns the Java class represented by this type.
|
java.lang.String |
getName()
Returns the name of this simple type.
|
static java.util.Collection<SimpleType> |
getSimpleTypes()
Returns a collection of all registered simple types.
|
int |
hashCode() |
boolean |
hasIntersectionType() |
java.lang.String |
toString()
Returns the name of this simple type.
|
assignableTo, findCommonSubtype, findCommonSupertype, getFreeTypes, hasFreeTypes, isCollection, matchesSubtype, matchesSupertype, performConversion, substituteFreeTypes
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
accept, getSupertype
public static final ObjectType OBJECT
ObjectType
instance.public static final BooleanType BOOLEAN
BooleanType
instance.public static final IntegerType INTEGER
IntegerType
instance.public static final DecimalType DECIMAL
DecimalType
instance with default scale and rounding mode.public static final StringType STRING
StringType
instance.public static final LocalDateType LOCAL_DATE
LocalDateType
instance.public static final LocalDateTimeType LOCAL_DATE_TIME
LocalDateType
instance.public static final EnumerationBaseType ENUMERATION
EnumerationBaseType
instance.public static final BinaryType BINARY
BinaryType
instance.public static final RecordBaseType RECORD
RecordBaseType
instance.public static final PropertyPathType PROPERTY_PATH
PropertyPathType
instance.public static final PropertyType PROPERTY
PropertyType
instance.public java.lang.Class<?> getJavaClass()
Type
public final java.lang.String getName()
public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public static SimpleType forName(java.lang.String name)
SimpleType
for given name (the name is the
result of the toString()
method.name
- SimpleType
for given namepublic static SimpleType forJavaClass(java.lang.Class<?> clazz)
clazz
- public static java.util.Collection<SimpleType> getSimpleTypes()
public boolean hasIntersectionType()
true
if the type contains an intersection typepublic int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.