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
ConstructorsConstructorDescriptionTLcdShapeAnnotation(boolean aShapeMandatory, Class<? extends ILcdShape>... aShapeClasses) Creates a newTLcdShapeAnnotationwith the specified list of shape classes.TLcdShapeAnnotation(Set<Class<? extends ILcdShape>> aShapeClasses, boolean aShapeMandatory) Creates a newTLcdShapeAnnotationwith 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.booleanReturnstrueif an instance of this annotation's data type always implements a shape interface,falseif it may be shapeless.
-
Constructor Details
-
TLcdShapeAnnotation
Creates a newTLcdShapeAnnotationwith 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-trueif an instance of this annotation's data type always implements a shape interface,falseif it may be shapeless.
-
TLcdShapeAnnotation
@SafeVarargs public TLcdShapeAnnotation(boolean aShapeMandatory, Class<? extends ILcdShape>... aShapeClasses) Creates a newTLcdShapeAnnotationwith the specified list of shape classes.- Parameters:
aShapeMandatory-trueif an instance of this annotation's data type always implements a shape interface,falseif it may be shapeless.aShapeClasses- the shape classes that are allowed to be implemented by * 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()Returnstrueif an instance of this annotation's data type always implements a shape interface,falseif it may be shapeless.- Returns:
trueif an instance of this annotation's data type always implements a shape interface,falseif it may be shapeless.
-