Package java.util

Examples of java.util.List.listIterator()


        /* Iterate through the sorted keys */
        for (int i = 0; i < provKeys.length; i++)
        {
          List depsSList = (List) providers.get(provKeys[i]);

          for (ListIterator depsIterator = depsSList.listIterator();
            depsIterator.hasNext(); )
          {

            Dependency dy = (Dependency)depsIterator.next();

View Full Code Here


        List storedDeps = dd.getAllDependencyDescriptorsList();

        String[] dependStr = new String[storedDeps.size()];

        int i = 0;
        for (ListIterator depsIterator = storedDeps.listIterator();
           depsIterator.hasNext(); )
        {
          DependencyDescriptor dependDescr =
                        (DependencyDescriptor) depsIterator.next();
View Full Code Here

    else {
      /* Make sure that we're not adding a duplicate dependency */
      UUID  provKey = dy.getProvider().getObjectID();
      UUID  depKey = dy.getDependent().getObjectID();

      for (ListIterator depsIT = deps.listIterator();  depsIT.hasNext(); )
      {
        Dependency curDY = (Dependency)depsIT.next();
        if (curDY.getProvider().getObjectID().equals(provKey) &&
          curDY.getDependent().getObjectID().equals(depKey))
        {
View Full Code Here

    }
    dd.addDescriptorArray(cdlArray, td,
                DataDictionary.SYSCOLUMNS_CATALOG_NUM, false, tc);

    List deps = dd.getProvidersDescriptorList(td.getObjectID().toString());
    for (Iterator depsIterator = deps.listIterator();
             depsIterator.hasNext();)
    {
      DependencyDescriptor depDesc =
                (DependencyDescriptor) depsIterator.next();
View Full Code Here

    if ( element == null ) {
      return new ArrayList<SqlResultSetMapping>();
    }
    List resultsetElementList = element.elements( "sql-result-set-mapping" );
    List<SqlResultSetMapping> resultsets = new ArrayList<SqlResultSetMapping>();
    Iterator it = resultsetElementList.listIterator();
    while ( it.hasNext() ) {
      Element subelement = (Element) it.next();
      AnnotationDescriptor ann = new AnnotationDescriptor( SqlResultSetMapping.class );
      copyStringAttribute( ann, subelement, "name", true );
      List<Element> elements = subelement.elements( "entity-result" );
View Full Code Here

  private static void buildUniqueConstraints(AnnotationDescriptor annotation, Element element) {
    List uniqueConstraintElementList = element.elements( "unique-constraint" );
    UniqueConstraint[] uniqueConstraints = new UniqueConstraint[uniqueConstraintElementList.size()];
    int ucIndex = 0;
    Iterator ucIt = uniqueConstraintElementList.listIterator();
    while ( ucIt.hasNext() ) {
      Element subelement = (Element) ucIt.next();
      List<Element> columnNamesElements = subelement.elements( "column-name" );
      String[] columnNames = new String[columnNamesElements.size()];
      int columnNameIndex = 0;
View Full Code Here

      return new PrimaryKeyJoinColumn[] { };
    }
    List pkJoinColumnElementList = element.elements( "primary-key-join-column" );
    PrimaryKeyJoinColumn[] pkJoinColumns = new PrimaryKeyJoinColumn[pkJoinColumnElementList.size()];
    int index = 0;
    Iterator pkIt = pkJoinColumnElementList.listIterator();
    while ( pkIt.hasNext() ) {
      Element subelement = (Element) pkIt.next();
      AnnotationDescriptor pkAnn = new AnnotationDescriptor( PrimaryKeyJoinColumn.class );
      copyStringAttribute( pkAnn, subelement, "name", false );
      copyStringAttribute( pkAnn, subelement, "referenced-column-name", false );
View Full Code Here

    }
    dd.addDescriptorArray(cdlArray, td,
                DataDictionary.SYSCOLUMNS_CATALOG_NUM, false, tc);

    List deps = dd.getProvidersDescriptorList(td.getObjectID().toString());
    for (Iterator depsIterator = deps.listIterator();
             depsIterator.hasNext();)
    {
      DependencyDescriptor depDesc =
                (DependencyDescriptor) depsIterator.next();
View Full Code Here

     *
     * @return <code>ListIterator</code>, not null, possibly unmodifiable
     */
    public ListIterator getActionsIterator() {
        final List unmodifiableActions = getActions();
        final ListIterator result = unmodifiableActions.listIterator();
        return result;
    }

    /**
     * Resets executed and accumlated actions. An instance may be safely reused
View Full Code Here

            arguments = new String[0];
        }

        List tokenList = Arrays.asList(flatten(getOptions(), arguments, stopAtNonOption));

        ListIterator iterator = tokenList.listIterator();

        // process each flattened token
        while (iterator.hasNext())
        {
            String t = (String) iterator.next();
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.