Examples of VerificationError


Examples of com.volantis.shared.metadata.type.VerificationError

                    fieldType.verify(fieldValue, path + "/" + fieldName));
                remainingFields.remove(fieldName);
            }
            for (Iterator iter = remainingFields.iterator(); iter.hasNext(); ) {
                final String fieldName = (String) iter.next();
                errors.add(new VerificationError(
                    VerificationError.TYPE_UNEXPECTED_VALUE,
                    path + "/" + fieldName,
                    (MetaDataValue) fieldValues.get(fieldName), null,
                    "Unexpected field. Field '" + fieldName +
                        "' is not expected here."));
View Full Code Here

Examples of com.volantis.shared.metadata.type.VerificationError

                if (iter.next().equals(value)) {
                    found = true;
                }
            }
            if (!found) {
                final VerificationError error = new VerificationError(
                    VerificationError.TYPE_CONSTRAINT_VIOLATION, path, value,
                    constraint, "Enumeration constraint violation: Value " +
                    value.getAsString() + " is not among the accepted values.");
                errors.add(error);
            }
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.