Package nz.org.riskscape.engine.types
Class MultiGeom
java.lang.Object
nz.org.riskscape.engine.types.MultiGeom
- All Implemented Interfaces:
ContainingType
,Type
,WrappingType
-
Field Summary
Modifier and TypeFieldDescriptionstatic final MultiGeom
static final SimpleTypeConstructor
static final TypeInformation
static final MultiGeom
static final SimpleTypeConstructor
static final TypeInformation
static final MultiGeom
static final SimpleTypeConstructor
static final TypeInformation
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAttempt to convert the given value in to one represented by this type.Class<?>
The underlying java class used to represent this type.<T extends Type>
booleantoString()
<T,
U> U visit
(TypeVisitor<T, U> tv, T data) Type specific visiting logic.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface nz.org.riskscape.engine.types.Type
checkForNull, find, findAllowNull, getUnwrappedType, isNumeric, isWrapped, toString, unwrap
Methods inherited from interface nz.org.riskscape.engine.types.WrappingType
asStruct, estimateSize, fromBytes, isNullable, toBytes
-
Field Details
-
MULTI_LINE
-
MULTI_POINT
-
MULTI_POLYGON
-
MULTI_LINE_TYPE_CONSTRUCTOR
-
MULTI_LINE_TYPE_INFORMATION
-
MULTI_POINT_TYPE_CONSTRUCTOR
-
MULTI_POINT_TYPE_INFORMATION
-
MULTI_POLYGON_TYPE_CONSTRUCTOR
-
MULTI_POLYGON_TYPE_INFORMATION
-
-
Constructor Details
-
MultiGeom
-
-
Method Details
-
coerce
Description copied from interface:Type
Attempt to convert the given value in to one represented by this type.
- Specified by:
coerce
in interfaceType
- Parameters:
value
- The value to coerce- Returns:
- A value that conforms to this type
- Throws:
CoercionException
- if the given object can not be converted to something represented by this type
-
internalType
Description copied from interface:Type
The underlying java class used to represent this type.
- Specified by:
internalType
in interfaceType
-
toString
-
isA
-
visit
Description copied from interface:Type
Type specific visiting logic. Types must decide whether they are atomic or compound and call the relevant method on
TypeVisitor
. It's up to each compound type to decide how they want to structure their children, e.g. order, metadata, and what's considered a child or not.- Specified by:
visit
in interfaceContainingType
- Specified by:
visit
in interfaceType
- Specified by:
visit
in interfaceWrappingType
-
getContainedType
- Specified by:
getContainedType
in interfaceContainingType
- Returns:
- The type that this
ContainingType
contains.
-
getUnderlyingType
- Specified by:
getUnderlyingType
in interfaceWrappingType
- Returns:
- the type that we immediately wrap. Used by
Type.getUnwrappedType()
to descend through all wrappedType
to find the first unwrapped one.
-