Package org.apache.cocoon.precept

Examples of org.apache.cocoon.precept.InvalidXPathSyntaxException


              levelInt = Integer.parseInt(level.substring(open + 1, close));
              levelName = level.substring(0, open);
            }
            catch (NumberFormatException e) {
              getLogger().debug("invalid syntax [" + String.valueOf(level) + "]");
              throw new InvalidXPathSyntaxException(level);
            }
          }
          else {
            getLogger().debug("invalid syntax [" + String.valueOf(level) + "]");
            throw new InvalidXPathSyntaxException(level);
          }
        }
        else {
          levelName = level;
        }
View Full Code Here


    public Object getValue(String xpath) throws InvalidXPathSyntaxException {
        try {
            return (beanContext.getValue(xpath));
        }
        catch (Exception e) {
            throw new InvalidXPathSyntaxException(e);
        }
    }
View Full Code Here

                            levelInt = Integer.parseInt(level.substring(open + 1, close));
                            levelName = level.substring(0, open);
                        }
                        catch (NumberFormatException e) {
                            getLogger().debug("invalid syntax [" + String.valueOf(level) + "]");
                            throw new InvalidXPathSyntaxException(level);
                        }
                    }
                    else {
                        getLogger().debug("invalid syntax [" + String.valueOf(level) + "]");
                        throw new InvalidXPathSyntaxException(level);
                    }
                }
                else {
                    levelName = level;
                }
View Full Code Here

                }
                else {
                    if (currentParent != null) {
                        if (level.startsWith("@")) {
                            if (level.indexOf("[") >= 0 || level.indexOf("]") >= 0) {
                                throw new InvalidXPathSyntaxException(level);
                            }
                            if (preceptor != null) {
                                node = new AttributeNode(level.substring(1), preceptor.getConstraintsFor(currentPath.toString()));
                            }
                            else {
View Full Code Here

TOP

Related Classes of org.apache.cocoon.precept.InvalidXPathSyntaxException

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.