Examples of firstElement()


Examples of abstrasy.Node.firstElement()

             * (select-first [...])
             */
            if (xnode.size() < 1)
                throw new InterpreterException(StdErrors.Out_of_range);

            return xnode.firstElement();

        }

    }

View Full Code Here

Examples of java.util.List.firstElement()

        Vector nestedRows = (Vector)fieldValue;
        if (nestedRows.isEmpty()) {
            return getObjectBuilder().createRecord(null);
        } else {
            // BUG#2667762 if the tag was empty this could be a string of whitespace.
            if (!(nestedRows.firstElement() instanceof XMLRecord)) {
                return getObjectBuilder().createRecord(null);
            }
            return (XMLRecord)nestedRows.firstElement();
        }
    }
View Full Code Here

Examples of java.util.List.firstElement()

        } else {
            // BUG#2667762 if the tag was empty this could be a string of whitespace.
            if (!(nestedRows.firstElement() instanceof XMLRecord)) {
                return getObjectBuilder().createRecord(null);
            }
            return (XMLRecord)nestedRows.firstElement();
        }
    }

    /**
     * INTERNAL:
 
View Full Code Here

Examples of java.util.Stack.firstElement()

                            startDependency(jbiDeployable);
                        }
                    }
                }
            } else {
                JbiDeployableArtifact jbiDeployable = (JbiDeployableArtifact) dependencies
                        .firstElement();
                if (isDeployed(jbiDeployable)) {
                    stopDependency(jbiDeployable);
                    undeployDependency(jbiDeployable);
                }
View Full Code Here

Examples of java.util.Vector.firstElement()

        dl.setSqlQuery("select ModuleID from module where name='entity'");
        vec = (Vector)dl.executeQuery();

        if (vec != null)
        {
          Number tempID = (Number) ((HashMap)vec.firstElement()).get("ModuleID");
          recordTypeId = tempID.intValue();
        }
        dl.clearParameters();

        dl.setSql("project.addprojectlink");
View Full Code Here

Examples of java.util.Vector.firstElement()

        dl.executeQuery();
        vec = (Vector)dl.executeQuery();

        if (vec != null)
        {
          Number tempID = (Number) ((HashMap)vec.firstElement()).get("ModuleID");
          recordTypeId = tempID.intValue();
        }
        dl.clearParameters();

        dl.setSql("project.addprojectlink");
View Full Code Here

Examples of java.util.Vector.firstElement()

        dl.setSqlQuery("select ModuleID from module where name='Group'");
        vec = (Vector)dl.executeQuery();

        if (vec != null)
        {
          Number tempID = (Number) ((HashMap)vec.firstElement()).get("ModuleID");
          recordTypeId = tempID.intValue();
        }
        dl.clearParameters();

        dl.setSql("project.addprojectlink");
View Full Code Here

Examples of java.util.Vector.firstElement()

        dl.setSqlQuery("select ModuleID from module where name='entity'");
        vec = (Vector)dl.executeQuery();

        if (vec != null)
        {
          Number tempID = (Number) ((HashMap)vec.firstElement()).get("ModuleID");
          recordTypeId = tempID.intValue();
        }
        dl.clearParameters();

        dl.setSql("project.addprojectlink");
View Full Code Here

Examples of java.util.Vector.firstElement()

        dl.executeQuery();
        vec = (Vector)dl.executeQuery();

        if (vec != null)
        {
          Number tempID = (Number) ((HashMap)vec.firstElement()).get("ModuleID");
          recordTypeId = tempID.intValue();
        }
        dl.clearParameters();

        dl.setSql("project.addprojectlink");
View Full Code Here

Examples of java.util.Vector.firstElement()

      {
        dl.setSqlQuery("select ModuleID from module where name='Group'");
        vec = (Vector)dl.executeQuery();
        if (vec != null)
        {
          Number tempID = (Number) ((HashMap)vec.firstElement()).get("ModuleID");
          recordTypeId = tempID.intValue();
        }
        dl.clearParameters();

        dl.setSql("project.addprojectlink");
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.