Package org.codehaus.preon.el

Examples of org.codehaus.preon.el.BindingException


                    + imported.getSimpleName());
        }

        public Reference<Resolver> selectItem(Expression<Integer, Resolver> expr)
                throws BindingException {
            throw new BindingException("No indexed values on class "
                    + imported.getSimpleName());
        }
View Full Code Here


        public Object resolve(Resolver resolver) {
            try {
                return fld.get(null);
            }
            catch (IllegalArgumentException e) {
                throw new BindingException("Failed to resolve field value.", e);
            }
            catch (IllegalAccessException e) {
                throw new BindingException("Failed to resolve field value.", e);
            }
        }
View Full Code Here

            }
        }

        public Reference<Resolver> selectAttribute(String name)
                throws BindingException {
            throw new BindingException("No more attributes supported.");
        }
View Full Code Here

            throw new BindingException("No more attributes supported.");
        }

        public Reference<Resolver> selectItem(String expr)
                throws BindingException {
            throw new BindingException("No indexes supported.");
        }
View Full Code Here

            throw new BindingException("No indexes supported.");
        }

        public Reference<Resolver> selectItem(Expression<Integer, Resolver> arg0)
                throws BindingException {
            throw new BindingException("No indexes supported.");
        }
View Full Code Here

            public Object resolve(Resolver context) {
                return context.get(INDEX);
            }

            public Reference<Resolver> selectAttribute(String name) {
                throw new BindingException("No attribute selection allowed.");
            }
View Full Code Here

            public Reference<Resolver> selectAttribute(String name) {
                throw new BindingException("No attribute selection allowed.");
            }

            public Reference<Resolver> selectItem(String index) {
                throw new BindingException("No item selection allowed.");
            }
View Full Code Here

                throw new BindingException("No item selection allowed.");
            }

            public Reference<Resolver> selectItem(
                    Expression<Integer, Resolver> index) {
                throw new BindingException("No item selection allowed.");
            }
View Full Code Here

            throws BindingException {
        if (!Integer.class.isAssignableFrom(node.getType())
                && !int.class.isAssignableFrom(node.getType())) {
            StringBuilder builder = new StringBuilder();
            node.document(new StringBuilderDocument(builder));
            throw new BindingException("Reference " + builder.toString()
                    + " does not resolve to integer.");
        } else {
            return (Node<Integer, E>) node;
        }
    }
View Full Code Here


    }

    public Reference<VariableResolver> selectItem(String index) {
        throw new BindingException("Index not supported");
    }
View Full Code Here

TOP

Related Classes of org.codehaus.preon.el.BindingException

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.