Package org.exolab.castor.xml

Examples of org.exolab.castor.xml.FieldValidator.validate()


                        found = true;
                        fieldDesc = desc;

                        FieldValidator fieldValidator = desc.getValidator();
                        if (fieldValidator != null) {
                            fieldValidator.validate(object, context);
                        }
                    }
                }

                // if all elements are mandatory, print the grammar that the choice
View Full Code Here


    private void validateField(final Object object, final ValidationContext context,
            final XMLFieldDescriptor fieldDescriptor) throws ValidationException {
        FieldValidator fieldValidator = fieldDescriptor.getValidator();
        if (fieldValidator != null) {
            try {
                fieldValidator.validate(object, context);
            } catch (ValidationException e) {
                if (fieldDescriptor.getNodeType() == NodeType.Attribute
                        || fieldDescriptor.getNodeType() == NodeType.Element) {
                    addLocationInformation(fieldDescriptor, e);
                }
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.