Package com.luciad.shape
Class TLcdShapeAnnotation
java.lang.Object
com.luciad.shape.TLcdShapeAnnotation
- All Implemented Interfaces:
ILcdAnnotation
Provides information on which
ILcdShape
interfaces are implemented by instances of a data
type.
If an instance class of a data type implements ILcdShape
, this annotation can be set on
the data type to provide information on which actual ILcdShape
interfaces are allowed to
be implemented by subclasses of the data type's instance class.-
Constructor Summary
ConstructorDescriptionTLcdShapeAnnotation
(boolean aShapeMandatory, Class<? extends ILcdShape>... aShapeClasses) Creates a newTLcdShapeAnnotation
with the specified list of shape classes.TLcdShapeAnnotation
(Set<Class<? extends ILcdShape>> aShapeClasses, boolean aShapeMandatory) Creates a newTLcdShapeAnnotation
with the specified list of shape classes. -
Method Summary
Modifier and TypeMethodDescriptionReturns the set of shape classes that is allowed to be implemented by instances of this annotation's data type.boolean
Returnstrue
if an instance of this annotation's data type always implements a shape interface,false
if it may be shapeless.
-
Constructor Details
-
TLcdShapeAnnotation
Creates a newTLcdShapeAnnotation
with the specified list of shape classes.- Parameters:
aShapeClasses
- the set of shape classes that is allowed to be implemented by instances of this annotation's data type.aShapeMandatory
-true
if an instance of this annotation's data type always implements a shape interface,false
if it may be shapeless.
-
TLcdShapeAnnotation
Creates a newTLcdShapeAnnotation
with the specified list of shape classes.- Parameters:
aShapeMandatory
-aShapeClasses
- the shape classes that are allowed as shape on the instances of this annotation's data type.
-
-
Method Details
-
getShapeClasses
Returns the set of shape classes that is allowed to be implemented by instances of this annotation's data type.- Returns:
- the set of shape classes that is allowed to be implemented by instances of this annotation's data type.
-
isShapeMandatory
public boolean isShapeMandatory()Returnstrue
if an instance of this annotation's data type always implements a shape interface,false
if it may be shapeless.- Returns:
true
if an instance of this annotation's data type always implements a shape interface,false
if it may be shapeless.
-