Package org.apache.geronimo.gshell.layout

Examples of org.apache.geronimo.gshell.layout.NotFoundException


  public Node findNode(Node start, String path) throws NotFoundException {
        assert start != null;
        assert path != null;

        if (!(start instanceof GroupNode)) {
          throw new NotFoundException(path);
        }
       
        Node node = ((GroupNode)start).find(path);
        if (node == null) {
            throw new NotFoundException(path);
        }
       
        return node;       
  }
View Full Code Here


                for (Node n : ((GroupNode) node).nodes()) {
                    if (n instanceof CommandNode && ((CommandNode) n).getId().equals(s)) {
                        return n;
                    }
                }
                throw new NotFoundException(s);
            }
            Node n = ((GroupNode) node).find(s);
            if (n == null) {
                throw new NotFoundException(s);
            }
            if (n instanceof GroupNode) {
                return new CommandNode(n.getName(), n.getName());
            }
            return n;
        } else {
            throw new NotFoundException(s);
        }
    }
View Full Code Here

  public Node findNode(Node start, String path) throws NotFoundException {
        assert start != null;
        assert path != null;

        if (!(start instanceof GroupNode)) {
          throw new NotFoundException(path);
        }
       
        Node node = ((GroupNode)start).find(path);
        if (node == null) {
            throw new NotFoundException(path);
        }
       
        return node;       
  }
View Full Code Here

  public Node findNode(Node start, String path) throws NotFoundException {
        assert start != null;
        assert path != null;

        if (!(start instanceof GroupNode)) {
          throw new NotFoundException(path);
        }
       
        Node node = ((GroupNode)start).find(path);
        if (node == null) {
            throw new NotFoundException(path);
        }
       
        return node;       
  }
View Full Code Here

                s = s.substring(ALIAS_PREFIX.length());
                Node n = recursiveFind((GroupNode) node, s);
                if (n != null) {
                    return n;
                }
                throw new NotFoundException(s);
            }
            Node n = ((GroupNode) node).find(s);
            if (n == null) {
                throw new NotFoundException(s);
            }
            if (n instanceof GroupNode) {
                return new CommandNode(n.getName(), n.getName());
            }
            return n;
        } else {
            throw new NotFoundException(s);
        }
    }
View Full Code Here

                s = s.substring(ALIAS_PREFIX.length());
                Node n = recursiveFind((GroupNode) node, s);
                if (n != null) {
                    return n;
                }
                throw new NotFoundException(s);
            }
            Node n = ((GroupNode) node).find(s);
            if (n == null) {
                throw new NotFoundException(s);
            }
            if (n instanceof GroupNode) {
                return new CommandNode(n.getName(), n.getName());
            }
            return n;
        } else {
            throw new NotFoundException(s);
        }
    }
View Full Code Here

                    Node n = gn.find(cmdId);
                    if (n == null) {
                        n = layout.find(cmdId);
                    }
                    if (n == null) {
                        throw new NotFoundException(cmdId);
                    }
                    CommandContext ctx = commandContext;
                    Command cmd;
                    if (n instanceof CommandNode) {
                        cmd = lookup(((CommandNode) n).getId());
View Full Code Here

TOP

Related Classes of org.apache.geronimo.gshell.layout.NotFoundException

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.