Package org.jboss.jandex

Examples of org.jboss.jandex.AnnotationValue.asBoolean()


      this.unique = nameValue.asBoolean();
    }

    AnnotationValue nullableValue = columnAnnotation.value( "nullable" );
    if ( nullableValue != null ) {
      this.nullable = nullableValue.asBoolean();
    }

    AnnotationValue insertableValue = columnAnnotation.value( "insertable" );
    if ( insertableValue != null ) {
      this.insertable = insertableValue.asBoolean();
View Full Code Here


      this.nullable = nullableValue.asBoolean();
    }

    AnnotationValue insertableValue = columnAnnotation.value( "insertable" );
    if ( insertableValue != null ) {
      this.insertable = insertableValue.asBoolean();
    }

    AnnotationValue updatableValue = columnAnnotation.value( "updatable" );
    if ( updatableValue != null ) {
      this.updatable = updatableValue.asBoolean();
View Full Code Here

      this.insertable = insertableValue.asBoolean();
    }

    AnnotationValue updatableValue = columnAnnotation.value( "updatable" );
    if ( updatableValue != null ) {
      this.updatable = updatableValue.asBoolean();
    }

    AnnotationValue columnDefinition = columnAnnotation.value( "columnDefinition" );
    if ( columnDefinition != null ) {
      this.columnDefinition = columnDefinition.asString();
View Full Code Here

      }
      this.isLazy = fetchType == FetchType.LAZY;

      AnnotationValue optionalValue = basicAnnotation.value( "optional" );
      if ( optionalValue != null ) {
        this.isOptional = optionalValue.asBoolean();
      }
    }
  }

  // TODO - there is more todo for updatable and insertable. Checking the @Generated annotation is only one part (HF)
View Full Code Here

  private boolean determineOptionality(AnnotationInstance associationAnnotation) {
    boolean optional = true;

    AnnotationValue optionalValue = associationAnnotation.value( "optional" );
    if ( optionalValue != null ) {
      optional = optionalValue.asBoolean();
    }

    return optional;
  }
View Full Code Here

  private boolean determineOrphanRemoval(AnnotationInstance associationAnnotation) {
    boolean orphanRemoval = false;
    AnnotationValue orphanRemovalValue = associationAnnotation.value( "orphanRemoval" );
    if ( orphanRemovalValue != null ) {
      orphanRemoval = orphanRemovalValue.asBoolean();
    }
    return orphanRemoval;
  }

  private boolean determineFetchType(AnnotationInstance associationAnnotation) {
View Full Code Here

        }

        private boolean booleanValue(final AnnotationInstance annotation, final String attribute) {
            if (annotation == null) return false;
            final AnnotationValue value = annotation.value(attribute);
            return value != null ? value.asBoolean() : false;
        }
    }

}
View Full Code Here

        return value == null ? null : value.asString();
    }

    private boolean asBool(final AnnotationInstance annotation, String property) {
        AnnotationValue value = annotation.value(property);
        return value == null ? true : value.asBoolean();
    }

    private String[] asArray(final AnnotationInstance annotation, String property) {
        AnnotationValue value = annotation.value(property);
        return value == null ? null : value.asStringArray();
View Full Code Here

            }
            String exceptionClassName = ((ClassInfo) target).name().toString();
            boolean rollback = false;
            AnnotationValue rollBackAnnValue = annotationInstance.value("rollback");
            if (rollBackAnnValue != null) {
                rollback = rollBackAnnValue.asBoolean();
            }
            // default "inherited" is true
            boolean inherited = true;
            AnnotationValue inheritedAnnValue = annotationInstance.value("inherited");
            if (inheritedAnnValue != null) {
View Full Code Here

            }
            // default "inherited" is true
            boolean inherited = true;
            AnnotationValue inheritedAnnValue = annotationInstance.value("inherited");
            if (inheritedAnnValue != null) {
                inherited = inheritedAnnValue.asBoolean();
            }
            descriptions.addApplicationException(exceptionClassName, rollback, inherited);
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.