Package net.sf.cb2java.types

Examples of net.sf.cb2java.types.Element


     */
    int getPosition(String name) {
        List children = document.getElement().getChildren();

        for (Iterator i = children.iterator(); i.hasNext();) {
            Element testElement = (Element) i.next();
            if (testElement.getName().equals(name)) {
                return testElement.getPosition();
            }
        }

        throw new IllegalArgumentException("no element named '" + name + "'");
    }
View Full Code Here

TOP

Related Classes of net.sf.cb2java.types.Element

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.