Examples of required()


Examples of aQute.bnd.annotation.metatype.Meta.AD.required()

        if (checkNull(ad.max()) != null)
          max = Double.parseDouble(ad.max());
        if (checkNull(ad.min()) != null)
          min = Double.parseDouble(ad.min());

        required = ad.required();
      }
      Object value = current.invoke(target);

      Justif justif = new Justif();
      justif.formatter().format("%-3s: %s (%s): ", n, name,
View Full Code Here

Examples of com.addthis.codec.Codec.Set.required()

            if (policy != null) {
                Set setPolicy = (Set) policy;
                codable = setPolicy.codable();
                readonly = setPolicy.readonly();
                writeonly = setPolicy.writeonly();
                required = setPolicy.required();
                intern = setPolicy.intern();
                validator = setPolicy.validator();
                field.setAccessible(true);
                if (!codable) {
                    continue;
View Full Code Here

Examples of com.addthis.codec.annotations.FieldConfig.required()

    @Override
    public Boolean hasRequiredMarker(AnnotatedMember m) {
        FieldConfig fieldConfig = m.getAnnotation(FieldConfig.class);
        if (fieldConfig != null) {
            return fieldConfig.required();
        }
        return null;
    }

    // read and write only settings only work in the absence of another, explicit, JsonProperty.
View Full Code Here

Examples of com.alibaba.dubbo.config.support.Parameter.required()

                        }
                        if (prefix != null && prefix.length() > 0) {
                            key = prefix + "." + key;
                        }
                        parameters.put(key, str);
                    } else if (parameter != null && parameter.required()) {
                        throw new IllegalStateException(config.getClass().getSimpleName() + "." + key + " == null");
                    }
                } else if ("getParameters".equals(name)
                        && Modifier.isPublic(method.getModifiers())
                        && method.getParameterTypes().length == 0
View Full Code Here

Examples of com.blogger.tcuri.appserver.validator.Validators.required()

    @Override
    public Resolution execute(ActionContext context) throws Exception {
        Map<String, Object> map = new HashMap<String, Object>();

        Validators v = new Validators();
        v.add("arg1", v.required(), v.integer());
        v.add("arg2", v.required(), v.integer());
        if (v.isError()) {
            map.put("message", v.getErrorMap());
            return new JsonResolution(map);
        }
View Full Code Here

Examples of com.cloud.api.Parameter.required()

        Argument id = null;
        for (Field f : fields) {
            Parameter parameterAnnotation = f.getAnnotation(Parameter.class);
            if (parameterAnnotation != null && parameterAnnotation.expose() && parameterAnnotation.includeInApiDoc()) {
                Argument reqArg = new Argument(parameterAnnotation.name());
                reqArg.setRequired(parameterAnnotation.required());
                if (!parameterAnnotation.description().isEmpty()) {
                    reqArg.setDescription(parameterAnnotation.description());
                }
               
                if (parameterAnnotation.type() == BaseCmd.CommandType.LIST || parameterAnnotation.type() == BaseCmd.CommandType.MAP) {
View Full Code Here

Examples of com.dtolabs.rundeck.plugins.util.PropertyBuilder.required()

        pbuild.description(annotation.description());

        if (null != annotation.defaultValue() && !"".equals(annotation.defaultValue())) {
            pbuild.defaultValue(annotation.defaultValue());
        }
        pbuild.required(annotation.required());

        pbuild.scope(annotation.scope());

        return pbuild.build();
    }
View Full Code Here

Examples of com.facebook.swift.codec.ThriftField.required()

                        metadataErrors.addError("A method with annotated parameters can not have a field id specified: %s.%s ", clazz.getName(), method.getName());
                    }
                    if (!annotation.name().isEmpty()) {
                        metadataErrors.addError("A method with annotated parameters can not have a field name specified: %s.%s ", clazz.getName(), method.getName());
                    }
                    if (annotation.required()) {
                        metadataErrors.addError("A method with annotated parameters can not be marked as required: %s.%s ", clazz.getName(), method.getName());
                    }
                }
                else {
                    parameters = ImmutableList.of(new ParameterInjection(0, annotation, extractFieldName(method), method.getGenericParameterTypes()[0]));
View Full Code Here

Examples of com.foreach.across.core.annotations.AcrossDepends.required()

   */
  public static boolean applies( AcrossBootstrapConfig config, Class<?> classToCheck ) {
    AcrossDepends dependsAnnotation = classToCheck.getAnnotation( AcrossDepends.class );

    return dependsAnnotation == null
        || applies( config, dependsAnnotation.required(), dependsAnnotation.optional() );
  }

  /**
   * Checks if the required and optional dependencies apply against a given bootstrap configuration.
   *
 
View Full Code Here

Examples of com.google.appengine.tck.event.Property.required()

        return event.execute();
    }

    protected boolean required(String propertyName) {
        Property result = property(propertyName);
        Boolean required = result.required();
        return (required == null || required); // by default null means it's required
    }

    protected Property property(String propertyName) {
        PropertyLifecycleEvent event = TestLifecycles.createPropertyLifecycleEvent(getClass(), propertyName);
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.