Package org.jboss.jandex

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


      this.table = tableValue.asString();
    }

    AnnotationValue lengthValue = columnAnnotation.value( "length" );
    if ( lengthValue != null ) {
      this.length = lengthValue.asInt();
    }

    AnnotationValue precisionValue = columnAnnotation.value( "precision" );
    if ( precisionValue != null ) {
      this.precision = precisionValue.asInt();
View Full Code Here


      this.length = lengthValue.asInt();
    }

    AnnotationValue precisionValue = columnAnnotation.value( "precision" );
    if ( precisionValue != null ) {
      this.precision = precisionValue.asInt();
    }

    AnnotationValue scaleValue = columnAnnotation.value( "scale" );
    if ( scaleValue != null ) {
      this.scale = scaleValue.asInt();
View Full Code Here

      this.precision = precisionValue.asInt();
    }

    AnnotationValue scaleValue = columnAnnotation.value( "scale" );
    if ( scaleValue != null ) {
      this.scale = scaleValue.asInt();
    }
  }

  public final String getName() {
    return name;
View Full Code Here

        return bindingDescription;
    }

    private int asInt(AnnotationInstance annotation, String string) {
        AnnotationValue value = annotation.value(string);
        return value == null ? -1 : value.asInt();
    }

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

      this.table = tableValue.asString();
    }

    AnnotationValue lengthValue = columnAnnotation.value( "length" );
    if ( lengthValue != null ) {
      this.length = lengthValue.asInt();
    }

    AnnotationValue precisionValue = columnAnnotation.value( "precision" );
    if ( precisionValue != null ) {
      this.precision = precisionValue.asInt();
View Full Code Here

      this.length = lengthValue.asInt();
    }

    AnnotationValue precisionValue = columnAnnotation.value( "precision" );
    if ( precisionValue != null ) {
      this.precision = precisionValue.asInt();
    }

    AnnotationValue scaleValue = columnAnnotation.value( "scale" );
    if ( scaleValue != null ) {
      this.scale = scaleValue.asInt();
View Full Code Here

      this.precision = precisionValue.asInt();
    }

    AnnotationValue scaleValue = columnAnnotation.value( "scale" );
    if ( scaleValue != null ) {
      this.scale = scaleValue.asInt();
    }
  }

  public final String getName() {
    return name;
View Full Code Here

                    servlet.setName(classInfo.toString());
                } else {
                    servlet.setName(nameValue.asString());
                }
                AnnotationValue loadOnStartup = annotation.value("loadOnStartup");
                if (loadOnStartup != null && loadOnStartup.asInt() > 0) {
                    servlet.setLoadOnStartupInt(loadOnStartup.asInt());
                }
                AnnotationValue asyncSupported = annotation.value("asyncSupported");
                if (asyncSupported != null) {
                    servlet.setAsyncSupported(asyncSupported.asBoolean());
View Full Code Here

                } else {
                    servlet.setName(nameValue.asString());
                }
                AnnotationValue loadOnStartup = annotation.value("loadOnStartup");
                if (loadOnStartup != null && loadOnStartup.asInt() > 0) {
                    servlet.setLoadOnStartupInt(loadOnStartup.asInt());
                }
                AnnotationValue asyncSupported = annotation.value("asyncSupported");
                if (asyncSupported != null) {
                    servlet.setAsyncSupported(asyncSupported.asBoolean());
                }
View Full Code Here

                AnnotationValue maxRequestSizeValue = annotation.value("maxRequestSize");
                if (maxRequestSizeValue != null && maxRequestSizeValue.asLong() != -1L) {
                    multipartConfig.setMaxRequestSize(maxRequestSizeValue.asLong());
                }
                AnnotationValue fileSizeThresholdValue = annotation.value("fileSizeThreshold");
                if (fileSizeThresholdValue != null && fileSizeThresholdValue.asInt() != 0) {
                    multipartConfig.setFileSizeThreshold(fileSizeThresholdValue.asInt());
                }
                annotationMD.setMultipartConfig(multipartConfig);
            }
        }
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.