Package org.tentackle.wurblet
Class AnnotationOption
java.lang.Object
org.tentackle.wurblet.AnnotationOption
Maps the annotation string of the model.
Implements the modifiers as described in
Implements the modifiers as described in
AttributeOptions.getAnnotations().-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets the total annotation string without the optional modifier.Gets the annotation type without the at-sign and optional parameters.booleanisHidden()Returns whether this is a hidden annotation.booleanReturns whether setter and getter annotation.booleanReturns whether setter annotation only.
-
Constructor Details
-
AnnotationOption
Creates the annotation option.- Parameters:
annotation- the annotation string from the model
-
-
Method Details
-
getAnnotation
Gets the total annotation string without the optional modifier.- Returns:
- the annotation string
-
isSetterOnly
public boolean isSetterOnly()Returns whether setter annotation only.- Returns:
- true if setter only
-
isSetterAndGetter
public boolean isSetterAndGetter()Returns whether setter and getter annotation.- Returns:
- true if both
-
isHidden
public boolean isHidden()Returns whether this is a hidden annotation.- Returns:
- true if only applicable to the implementation layer and not the interface
-
getAnnotationType
Gets the annotation type without the at-sign and optional parameters.- Returns:
- the annotation type
-