Examples of asBoolean()


Examples of org.jboss.dmr.ModelNode.asBoolean()

        op.get("message-id").set(msgA.getJMSMessageID());
        op.get("other-queue-name").set(getOtherQueueName());

        ModelNode result = execute(op, true);
        Assert.assertTrue(result.isDefined());
        Assert.assertTrue(result.asBoolean());

        result = execute(getQueueOperation("count-messages"), true);
        Assert.assertTrue(result.isDefined());
        Assert.assertEquals(2, result.asInt());
View Full Code Here

Examples of org.jboss.dmr.ModelNode.asBoolean()

            }
            else {
                try {
                    switch (expectedType) {
                        case BOOLEAN:
                            toSet.set(modelValue.asBoolean());
                            break;
                        case BIG_DECIMAL:
                            toSet.set(modelValue.asBigDecimal());
                            break;
                        case BIG_INTEGER:
View Full Code Here

Examples of org.jboss.dmr.ModelNode.asBoolean()

        updateToRuntime(context, restored);
    }

    void updateToRuntime(final OperationContext context, final ModelNode model) throws OperationFailedException {
        final ModelNode enableStatisticsModel = ENABLE_STATISTICS.resolveModelAttribute(context, model);
        final boolean enableStatistics = enableStatisticsModel.isDefined() && enableStatisticsModel.asBoolean();
        utilities(context).setStatisticsEnabled(enableStatistics);
    }

    private static EJBUtilities utilities(final OperationContext context) {
        final ServiceRegistry serviceRegistry = context.getServiceRegistry(true);
View Full Code Here

Examples of org.jboss.dmr.ModelNode.asBoolean()

        final ModelNode passByValueModel = this.attributeDefinition.resolveModelAttribute(context, model);
        final ServiceRegistry registry = context.getServiceRegistry(true);
        final ServiceName localEJBReceiverServiceName;
        if (passByValueModel.isDefined()) {
            final boolean passByValue = passByValueModel.asBoolean(true);
            if (passByValue) {
                localEJBReceiverServiceName = LocalEjbReceiver.BY_VALUE_SERVICE_NAME;
            } else {
                localEJBReceiverServiceName = LocalEjbReceiver.BY_REFERENCE_SERVICE_NAME;
            }
View Full Code Here

Examples of org.jboss.dmr.client.ModelNode.asBoolean()

                 */

                else if("java.lang.Boolean".equals(propBinding.getJavaTypeName()))
                {
                    if(propValue.isDefined())
                        value = propValue.asBoolean();
                    else
                        value = false;
                }
                else if("java.lang.Long".equals(propBinding.getJavaTypeName()))
                {
View Full Code Here

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

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

      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

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

      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

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

      }
      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

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

  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
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.