Examples of BindingException


Examples of org.qi4j.bootstrap.BindingException

            if( next == sourceItem )
            {
                if( !allowCyclic )
                {
                    visited.add( next );
                    throw new BindingException( "Cyclic usage detected: " + sourceItem + " -> " + visited );
                }
            }
            if( !visited.contains( next ) )
            {
                visited.add( next );
View Full Code Here

Examples of org.x2jb.bind.BindingException

        {
            return this.create( value );
        }
        catch ( NumberFormatException nfe )
        {
            throw new BindingException( AbstractHandler.INCORRECT_VALUE_MESSAGE + value, nfe );
        }
    }
View Full Code Here

Examples of org.x2jb.bind.BindingException

    public Object bind( final Element e, final Class< ? > clazz )
    {
        final Node childNode = e.getFirstChild();
        if ( ( childNode == null ) || ( !( childNode instanceof Text ) ) )
        {
            throw new BindingException( "Text node expected" );
        }
        else
        {
            final String value = ( ( Text ) childNode ).getData();
            try
            {
                return this.create( value );
            }
            catch ( NumberFormatException nfe )
            {
                throw new BindingException( AbstractHandler.INCORRECT_VALUE_MESSAGE + value, nfe );
            }
        }
    }
View Full Code Here

Examples of org.x2jb.bind.BindingException

        if ( this.isFalseString( lowerCasedValue ) )
        {
            return Boolean.FALSE;
        }

        throw new BindingException( "Incorrect value '" + value + "'" );
    }
View Full Code Here

Examples of org.x2jb.bind.BindingException

        {
            bindingProperties.load( bindingResource );
        }
        catch ( IOException ioe )
        {
            throw new BindingException( ioe.getMessage(), ioe );
        }
        finally
        {
            try
            {
View Full Code Here

Examples of org.x2jb.bind.BindingException

        {
            return new Character( value.charAt( 0 ) );
        }
        else
        {
            throw new BindingException( "Incorrect value '" + value + "'" );
        }
    }
View Full Code Here

Examples of org.x2jb.bind.BindingException

        if ( clazz.equals( Direction.class ) )
        {
            return Direction.valueOf( attr.getNodeValue() );
        }

        throw new BindingException( "Handler doesn't support '" + clazz.getName() + "' class" );
    }
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.