@Override protected Boolean fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) { return annotationInstance.value().asBoolean(); } }
public static boolean asOptionalBoolean(final AnnotationInstance annotation, String property) { AnnotationValue value = annotation.value(property); return value == null ? true : value.asBoolean(); }
@Override protected Boolean fromAnnotation(final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) { AnnotationValue value = annotationInstance.value("retainIfException"); if(value == null) { return false; } return value.asBoolean(); } }
public void set(final AutoTimer timer, final AnnotationInstance annotationInstance, final PropertyReplacer propertyReplacer) { final AnnotationValue value = annotationInstance.value(name); if (booleanValue) { if (value == null) { setBoolean(timer, defaultBooleanValue); } else { setBoolean(timer, value.asBoolean()); } } else { if (value == null) { setString(timer, defaultStringValue); } else { setString(timer, propertyReplacer.replaceProperties(value.asString())); } } }
final boolean passivationCapableAnnotationValue = sessionBeanAnnotation.value("passivationCapable") == null ? true : sessionBeanAnnotation.value("passivationCapable").asBoolean(); final Boolean passivationCapableDeploymentDescriptorValue; if ((beanMetaData instanceof SessionBean32MetaData)) {
public boolean[] asBooleanArray() { int length = value.length; boolean[] array = new boolean[length]; for (int i = 0; i < length; i++) { array[i] = value[i].asBoolean(); } return array; }
private boolean determineOptionality(AnnotationInstance associationAnnotation) { boolean optional = true; AnnotationValue optionalValue = associationAnnotation.value( "optional" ); if ( optionalValue != null ) { optional = optionalValue.asBoolean(); } return optional; }
@Override protected Boolean fromAnnotation(final AnnotationInstance annotationInstance) { AnnotationValue value = annotationInstance.value("retainIfException"); if(value == null) { return false; } return value.asBoolean(); } }
private boolean determineOrphanRemoval(AnnotationInstance associationAnnotation) { boolean orphanRemoval = false; AnnotationValue orphanRemovalValue = associationAnnotation.value( "orphanRemoval" ); if ( orphanRemovalValue != null ) { orphanRemoval = orphanRemovalValue.asBoolean(); } return orphanRemoval; }
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; } }
private boolean determineOrphanRemoval(AnnotationInstance associationAnnotation) { boolean orphanRemoval = false; AnnotationValue orphanRemovalValue = associationAnnotation.value( "orphanRemoval" ); if ( orphanRemovalValue != null ) { orphanRemoval = orphanRemovalValue.asBoolean(); } return orphanRemoval; }
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; } }
private boolean asBool(final AnnotationInstance annotation, String property) { AnnotationValue value = annotation.value(property); return value == null ? true : value.asBoolean(); }
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; } }
private boolean determineOptionality(AnnotationInstance associationAnnotation) { boolean optional = true; AnnotationValue optionalValue = associationAnnotation.value( "optional" ); if ( optionalValue != null ) { optional = optionalValue.asBoolean(); } return optional; }
public static boolean asOptionalBoolean(final AnnotationInstance annotation, String property) { AnnotationValue value = annotation.value(property); return value == null ? true : value.asBoolean(); }
private boolean checkOptimisticLockAnnotation() { boolean triggersVersionIncrement = true; AnnotationInstance optimisticLockAnnotation = JandexHelper.getSingleAnnotation( annotations(), HibernateDotNames.OPTIMISTIC_LOCK ); if ( optimisticLockAnnotation != null ) { boolean exclude = optimisticLockAnnotation.value( "excluded" ).asBoolean(); triggersVersionIncrement = !exclude; } return triggersVersionIncrement; } }
private boolean checkOptimisticLockAnnotation() { boolean triggersVersionIncrement = true; AnnotationInstance optimisticLockAnnotation = JandexHelper.getSingleAnnotation( annotations(), HibernateDotNames.OPTIMISTIC_LOCK ); if ( optimisticLockAnnotation != null ) { boolean exclude = optimisticLockAnnotation.value( "excluded" ).asBoolean(); triggersVersionIncrement = !exclude; } return triggersVersionIncrement; } }