Examples of asBoolean()


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

  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

Examples of org.jboss.jandex.AnnotationValue.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;
        }
    }

}
View Full Code Here

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

        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

Examples of org.openengsb.core.api.descriptor.AttributeDefinition.Builder.asBoolean()

        if (type.isPrimitive() || type.isEnum() || hasStringOnlyConstructor(type)) {
            Builder builder = AttributeDefinition.builder(new PassThroughStringLocalizer());
            MethodUtil.addEnumValues(type, builder);
            builder.id("value").name("value");
            if (type.equals(boolean.class) || type.equals(Boolean.class)) {
                builder.asBoolean();
            }
            AbstractField<?> field = AttributeEditorUtil.createEditorField("valueEditor", new IModel<String>() {
                @Override
                public void detach() {
                    // not required
View Full Code Here

Examples of ratpack.util.internal.TypeCoercingProperties.asBoolean()

      }

      int port = props.asInt(PORT, defaultPort);
      InetAddress address = props.asInetAddress(ADDRESS);
      URI publicAddress = props.asURI(PUBLIC_ADDRESS);
      boolean development = props.asBoolean(DEVELOPMENT, false);
      int threads = props.asInt(THREADS, DEFAULT_THREADS);
      List<String> indexFiles = props.asList(INDEX_FILES);
      InputStream sslKeystore = props.asStream(SSL_KEYSTORE_FILE);
      String sslKeystorePassword = props.asString(SSL_KEYSTORE_PASSWORD, "");
      int maxContentLength = props.asInt(MAX_CONTENT_LENGTH, DEFAULT_MAX_CONTENT_LENGTH);
View Full Code Here

Examples of siena.Json.asBoolean()

    assertTrue(foo.isNumber());
    assertEquals(1234, foo.asInt());
   
    Json bar = json.get("bar");
    assertTrue(bar.isBoolean());
    assertEquals(true, bar.asBoolean());
  }
 
  public void testParseComplex() {
    Json json = null;
   
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.