Examples of attributeIterator()


Examples of org.dom4j.Element.attributeIterator()

    List decvars = element.selectNodes("*/decvar");
    if (decvars.size()== 0) return outcomesProcessing;

    Element decvar = (Element) decvars.get(0);
    for (Iterator iter = decvar.attributeIterator(); iter.hasNext();) {
      Attribute attr = (Attribute) iter.next();
      outcomesProcessing.setField(attr.getName(), attr.getValue());
    }
    return outcomesProcessing;
  }
View Full Code Here

Examples of org.dom4j.Element.attributeIterator()

              itemObj.put("name",subItem.getName());
              itemObj.put("text",subItem.getText());

              LinkedHashMap<String,String> attributes = new LinkedHashMap<String,String>();
             
              for (Iterator attr = subItem.attributeIterator(); attr.hasNext(); ) {
                Attribute at = (Attribute) attr.next();
                attributes.put(at.getName(),at.getText());             
              }
              itemObj.put("attributes",attributes);
             
View Full Code Here

Examples of org.dom4j.Element.attributeIterator()

                if (node instanceof Element) {
                    Element element = (Element) node;
                    System.out.println("Element: " + element.getQualifiedName());
                    System.out.println("\tText: " + element.getText());
                    System.out.println("\tAttributes:");
                    for (Iterator<?> i = element.attributeIterator(); i.hasNext();) {
                        Attribute attribute = (Attribute) i.next();
                        System.out.println("\t\t" + attribute.getName() + "=" + attribute.getValue());
                    }
                } else if (node instanceof Attribute) {
                    Attribute attribute = (Attribute) node;
View Full Code Here

Examples of org.dom4j.Element.attributeIterator()

            return null;
        }

        Element elem = (Element) contextNode;

        return elem.attributeIterator();
    }

    public Iterator getNamespaceAxisIterator(Object contextNode)
    {
        if ( ! ( contextNode instanceof Element ) )
View Full Code Here

Examples of org.dom4j.Element.attributeIterator()

                }
                Iterator tasks = jobElement.element("tasks").elementIterator("task");
                while (tasks.hasNext()) {
                    Element taskElem = (Element) tasks.next();
                    Task task = new Task(taskElem.attributeValue("class"));
                    Iterator taskOptions = taskElem.attributeIterator();
                    while (taskOptions.hasNext()) {
                        Attribute attribute = (Attribute) taskOptions.next();
                        if (!attribute.getName().equals("name") && !attribute.getName().equals("class")) {
                            String value = attribute.getValue();
                            if (value != null && !value.trim().equalsIgnoreCase("(database containing the script module)") && !value.trim().equalsIgnoreCase("(Script module to execute)")) {
View Full Code Here

Examples of org.dom4j.Element.attributeIterator()

            final SystemDefinition definition,
            final String packageName) {
        for (Iterator it1 = root.elementIterator("prepare"); it1.hasNext();) {
            String preparePackage = "";
            Element prepareElement = (Element)it1.next();
            for (Iterator it2 = prepareElement.attributeIterator(); it2.hasNext();) {
                Attribute attribute = (Attribute)it2.next();
                if (attribute.getName().trim().equals("package")) {

                    // handle base package
                    if (packageName.endsWith(".*")) {
View Full Code Here

Examples of org.dom4j.Element.attributeIterator()

            final String packageName = getBasePackage(system);
            for (Iterator it11 = system.elementIterator("aspect"); it11.hasNext();) {

                String className = null;
                Element aspect = (Element)it11.next();
                for (Iterator it2 = aspect.attributeIterator(); it2.hasNext();) {
                    Attribute attribute = (Attribute)it2.next();

                    final String name = attribute.getName().trim();
                    final String value = attribute.getValue().trim();
                    if (name.equalsIgnoreCase("class")) {
View Full Code Here

Examples of org.dom4j.Element.attributeIterator()

                for (Iterator it12 = packageElement.elementIterator("aspect"); it12.hasNext();) {

                    String className = null;
                    Element aspect = (Element)it12.next();
                    for (Iterator it2 = aspect.attributeIterator(); it2.hasNext();) {
                        Attribute attribute = (Attribute)it2.next();

                        final String name = attribute.getName().trim();
                        final String value = attribute.getValue().trim();
                        if (name.equalsIgnoreCase("class")) {
View Full Code Here

Examples of org.dom4j.Element.attributeIterator()

            String aspectName = null;
            String className = null;
            String deploymentModel = null;
            Element aspect = (Element)it1.next();
            for (Iterator it2 = aspect.attributeIterator(); it2.hasNext();) {
                Attribute attribute = (Attribute)it2.next();

                final String name = attribute.getName().trim();
                final String value = attribute.getValue().trim();
                if (name.equalsIgnoreCase("class")) {
View Full Code Here

Examples of org.dom4j.Element.attributeIterator()

            final SystemDefinition definition,
            final String packageName) {
        for (Iterator it1 = root.elementIterator("include"); it1.hasNext();) {
            String includePackage = "";
            Element includeElement = (Element)it1.next();
            for (Iterator it2 = includeElement.attributeIterator(); it2.hasNext();) {
                Attribute attribute = (Attribute)it2.next();
                if (attribute.getName().trim().equalsIgnoreCase("package")) {

                    // handle base package
                    if (packageName.endsWith(".*")) {
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.