Examples of required()


Examples of de.lessvoid.xml.xpp3.XmlParser.required()

    try {
      Schema niftyXmlSchema = new Schema();
      XmlParser parser = new XmlParser(new MXParser());
      parser.read(inputStreamSchema);
      parser.nextTag();
      parser.required("nxs", niftyXmlSchema);
      schemes.put(schemaId, niftyXmlSchema);
    } finally {
      inputStreamSchema.close();
    }
  }
View Full Code Here

Examples of es.internna.framework.annotations.DecimalConstraint.required()

    }
   
    protected void validateFieldAsDouble(Field field, Object object, Errors errors)
    {
        DecimalConstraint req = field.getAnnotation(DecimalConstraint.class);
        if (req.required() && validateNull(field, object)) errors.rejectValue(field.getName(), errorCodes[0]);
        double min = req.minValue();
        double max = req.maxValue();
        validateNumber(min, max, field, object, errors);
    }
   
View Full Code Here

Examples of es.internna.framework.annotations.FieldConstraint.required()

    }
   
    protected void validateRequiredField(Field field, Object object, Errors errors)
    {
        FieldConstraint req = field.getAnnotation(FieldConstraint.class);
        if (req.required() && validateNull(field, object))
            errors.rejectValue(field.getName(), errorCodes[0]);
    }
   
    protected void validateFieldAsString(Field field, Object object, Errors errors)
    {
View Full Code Here

Examples of es.internna.framework.annotations.IntegerConstraint.required()

    }
   
    protected void validateFieldAsInteger(Field field, Object object, Errors errors)
    {
        IntegerConstraint req = field.getAnnotation(IntegerConstraint.class);
        if (req.required() && validateNull(field, object)) errors.rejectValue(field.getName(), errorCodes[0]);
        int min = req.minValue();
        int max = req.maxValue();
        validateNumber(min, max, field, object, errors);
    }
   
View Full Code Here

Examples of es.internna.framework.annotations.StringConstraint.required()

    }
   
    protected void validateFieldAsString(Field field, Object object, Errors errors)
    {
        StringConstraint req = field.getAnnotation(StringConstraint.class);
        if (req.required() && validateNull(field, object)) errors.rejectValue(field.getName(), errorCodes[0]);
        String stringField = null;
        try
        {
            field.setAccessible(true);
            stringField = field.get(object).toString();
View Full Code Here

Examples of es.internna.spring.annotations.validation.DecimalConstraint.required()

    }
   
    protected void validateFieldAsDouble(Field field, Object object, Errors errors)
    {
        DecimalConstraint req = field.getAnnotation(DecimalConstraint.class);
        if (req.required() && validateNull(field, object)) errors.rejectValue(field.getName(), errorCodes[0]);
        double min = req.minValue();
        double max = req.maxValue();
        validateNumber(min, max, field, object, errors);
    }
   
View Full Code Here

Examples of es.internna.spring.annotations.validation.FieldConstraint.required()

    }
   
    protected void validateRequiredField(Field field, Object object, Errors errors)
    {
        FieldConstraint req = field.getAnnotation(FieldConstraint.class);
        if (req.required() && validateNull(field, object))
            errors.rejectValue(field.getName(), errorCodes[0]);
    }
   
    protected void validateFieldAsString(Field field, Object object, Errors errors)
    {
View Full Code Here

Examples of es.internna.spring.annotations.validation.IntegerConstraint.required()

    }
   
    protected void validateFieldAsInteger(Field field, Object object, Errors errors)
    {
        IntegerConstraint req = field.getAnnotation(IntegerConstraint.class);
        if (req.required() && validateNull(field, object)) errors.rejectValue(field.getName(), errorCodes[0]);
        int min = req.minValue();
        int max = req.maxValue();
        validateNumber(min, max, field, object, errors);
    }
   
View Full Code Here

Examples of es.internna.spring.annotations.validation.StringConstraint.required()

    }
   
    protected void validateFieldAsString(Field field, Object object, Errors errors)
    {
        StringConstraint req = field.getAnnotation(StringConstraint.class);
        if (req.required() && validateNull(field, object)) errors.rejectValue(field.getName(), errorCodes[0]);
        String stringField = null;
        try
        {
            field.setAccessible(true);
            stringField = field.get(object).toString();
View Full Code Here

Examples of io.airlift.airline.Arguments.required()

                        title = field.getName();
                    }

                    String description = argumentsAnnotation.description();
                    String usage = argumentsAnnotation.usage();
                    boolean required = argumentsAnnotation.required();

                    injectionMetadata.arguments.add(new ArgumentsMetadata(title, description, usage, required, path));
                }
            }
        }
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.