Examples of mandatory()


Examples of com.github.dynamicextensionsalfresco.actions.annotations.ActionParam.mandatory()

          if (dataType == null) {
            throw new RuntimeException(
                String.format("Cannot map parameter of type %s for action method %s."
                    + " Make sure you specify a valid DataType from the Dictionary.", clazz, method));
          }
          final boolean mandatory = actionParameter.mandatory();
          final String displayLabel = actionParameter.displayLabel();
          final String constraintName = StringUtils.stripToNull(actionParameter.constraintName());
          final ParameterDefinition parameterDefinition = new ParameterDefinitionImpl(name,
              dataType.getName(), mandatory, displayLabel, multivalued, constraintName);
          parameterDefinitions.add(parameterDefinition);
View Full Code Here

Examples of jade.content.onto.annotations.Slot.mandatory()

            }
            if (!Slot.NULL.equals(slotAnnotation.documentation())) {
              documentation = slotAnnotation.documentation();
            }
            manageAsSerializable = slotAnnotation.manageAsSerializable();
            mandatory = slotAnnotation.mandatory();
          }
          // if present, use getter @AggregateSlot annotation data
          if (SlotAccessData.isAggregate(slotClazz)) {
            if (slotClazz.isArray()) {
              // extract the type of array elements
View Full Code Here

Examples of org.apache.uima.fit.descriptor.ExternalResource.mandatory()

      if (value instanceof ExternalResourceLocator) {
        value = ((ExternalResourceLocator) value).getResource();
      }

      // Sanity checks
      if (value == null && era.mandatory()) {
        throw new ResourceInitializationException(new IllegalStateException("Mandatory resource ["
                + key + "] is not set on [" + baseCls + "]"));
      }

      // Now record the setting and optionally apply it to the given
View Full Code Here

Examples of org.apache.uima.fit.descriptor.ExternalResource.mandatory()

        // Resource - REC, 2011-03-25
        api = (Class) Object.class;
      }
    }

    return ExternalResourceFactory.createExternalResourceDependency(key, api, !era.mandatory(),
            era.description());
  }

  /**
   * Creates an ExternalResourceDependency for a given key and interface
View Full Code Here

Examples of org.apache.uima.fit.descriptor.ExternalResource.mandatory()

        // Resource - REC, 2011-03-25
        api = (Class) Object.class;
      }
    }

    return ExternalResourceFactory.createExternalResourceDependency(key, api, !era.mandatory(),
            era.description());
  }

  /**
   * Creates an ExternalResourceDependency for a given key and interface
View Full Code Here

Examples of org.jboss.ejb3.test.tx.instance.InstanceTest.mandatory()

      InitialContext ctx = new InitialContext();
      TransactionManager tm = (TransactionManager) ctx.lookup("java:/TransactionManager");
      tm.begin();
      try
      {
         bean.mandatory();
      }
      finally
      {
         tm.rollback();
      }
View Full Code Here

Examples of org.jboss.ejb3.test.tx.instance.InstanceTest.mandatory()

      SimpleContainer<?> container = bootstrap.lookup("TestContainer", SimpleContainer.class);
     
      InstanceTest bean = container.constructProxy(InstanceTest.class);
      try
      {
         bean.mandatory();
         fail("transaction is required");
      }
      catch(EJBTransactionRequiredException e)
      {
         // Good
View Full Code Here

Examples of org.jboss.managed.api.annotation.ManagementProperty.mandatory()

                        +") ,annotations="+propAnnotations);
               }

               boolean mandatory = false;
               if (managementProperty != null)
                  mandatory = managementProperty.mandatory();
               if (mandatory)
                  fields.setField(Fields.MANDATORY, Boolean.TRUE);

               boolean readOnly = propertyInfo.isWritable() == false;
               if (readOnly == false && managementProperty != null)
View Full Code Here

Examples of org.jboss.managed.api.annotation.ManagementProperty.mandatory()

                        +") ,annotations="+propAnnotations);
               }

               boolean mandatory = false;
               if (managementProperty != null)
                  mandatory = managementProperty.mandatory();
               if (mandatory)
                  fields.setField(Fields.MANDATORY, Boolean.TRUE);

               boolean readOnly = propertyInfo.isWritable() == false;
               if (readOnly == false && managementProperty != null)
View Full Code Here

Examples of org.jboss.managed.api.annotation.ManagementProperty.mandatory()

                        +") ,annotations="+propAnnotations);
               }

               boolean mandatory = false;
               if (managementProperty != null)
                  mandatory = managementProperty.mandatory();
               if (mandatory)
                  fields.setField(Fields.MANDATORY, Boolean.TRUE);
              
               boolean readOnly = propertyInfo.isWritable() == false;
               if (readOnly == false && managementProperty != 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.