Package org.codehaus.plexus.formica.validation

Examples of org.codehaus.plexus.formica.validation.Validator


            {
                for ( Iterator j = validators.iterator(); j.hasNext(); )
                {
                    org.codehaus.plexus.formica.Validator v = (org.codehaus.plexus.formica.Validator) j.next();

                    Validator validator = getValidator( v.getId() );

                    String elementData = (String) data.get( element.getId() );

                    boolean valid = validator.validate( elementData );

                    if ( valid )
                    {
                        result.addElementValidationResult( element.getId(), valid, null );
                    }
View Full Code Here


    private Map validators;

    public Validator getValidator( String id )
        throws ValidatorNotFoundException
    {
        Validator validator = (Validator) validators.get( id );

        if ( validator == null )
        {
            throw new ValidatorNotFoundException( "Validator with the id " + id + " cannot be found." );
        }
View Full Code Here

TOP

Related Classes of org.codehaus.plexus.formica.validation.Validator

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.