Package com.volantis.shared.metadata.type

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


                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

Related Classes of com.volantis.shared.metadata.type.VerificationError

Copyright © 2018 www.massapicom. 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.