Class AnnotationOption

java.lang.Object
org.tentackle.wurblet.AnnotationOption

public class AnnotationOption extends Object
Maps the annotation string of the model.
Implements the modifiers as described in AttributeOptions.getAnnotations().
  • Constructor Details

    • AnnotationOption

      public AnnotationOption(String annotation)
      Creates the annotation option.
      Parameters:
      annotation - the annotation string from the model
  • Method Details

    • getAnnotation

      public String 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

      public String getAnnotationType()
      Gets the annotation type without the at-sign and optional parameters.
      Returns:
      the annotation type