Package nexj.core.util

Examples of nexj.core.util.Lookup.valueIterator()


      {
         u.undo(getState(stateMap, u));
      }

      // validate state initial state to catch alter/drop steps lacking associated create steps
      for (Lookup.Iterator itr = stateMap.valueIterator(); itr.hasNext();)
      {
         ((UpgradeState)itr.next()).start();
      }

      // roll forward to the requested version
View Full Code Here


      {
         throw eh;
      }

      // validate initial state to catch alter/drop steps lacking associated create steps
      for (Lookup.Iterator itr = stateMap.valueIterator(); itr.hasNext();)
      {
         ((UpgradeState)itr.next()).start();
      }

      // validate that the overall state is still valid after every upgrade version is applied
View Full Code Here

      if (eh != null)
      {
         throw eh;
      }

      for (Lookup.Iterator itr = stateMap.valueIterator(); itr.hasNext();)
      {
         ((UpgradeState)itr.next()).end();
      }
   }
View Full Code Here

         }
      }

      MetadataCompoundValidationException e = null;

      for (Iterator/*<Argument>*/ itr = argMap.valueIterator(); itr.hasNext();)
      {
         if (e == null)
         {
            e = new MetadataCompoundValidationException();
         }
View Full Code Here

               }
            }
         }
         catch (UncheckedException e)
         {
            for (Lookup.Iterator/*<String, ColumnUpgradeInfo>*/ colItr = columnMap.valueIterator();
                 colItr.hasNext();)
            {
               eh = ((ColumnUpgradeInfo)colItr.next()).getStep().addException(eh, e);
            }
         }
View Full Code Here

         try
         {
            if (sName != null && posMap != null && posMap.size() != 0)
            {
               TextPosition pos = (TextPosition)posMap.valueIterator().next();
               StringBuilder buf = new StringBuilder(64);
               String sURL = pos.getURL();

               if (sURL != null)
               {
View Full Code Here

                  .setVersion(ds.getSchema(), version);
            }
         }
      }

      for (Lookup.Iterator itr = stateMap.valueIterator(); itr.hasNext();)
      {
         ((UpgradeState)itr.next()).end();
      }

      m_context.complete(true);
View Full Code Here

      // record full map of resources, check for conflicts
      for (Lookup.Iterator resItr = sourceMap.valueIterator(); resItr.hasNext(); )
      {
         Lookup srcMap = (Lookup)resItr.next();
         Iterator srcItr = srcMap.valueIterator();
         XMLResource mostDerivedSource = (XMLResource)srcItr.next();
         List identicalSourcesList = new ArrayList(srcMap.size());

         if (handler != null)
         {
View Full Code Here

      }

      // set of XMLMixins having resources that can be overridden by the current mixin
      Set overridableSet = new HashHolder(1);

      for (Iterator itr = refMap.valueIterator(); itr.hasNext();)
      {
         XMLMixin ref = (XMLMixin)itr.next();
         boolean bOverride = ref.isOverridable();
         boolean bDynamic = (ref.getVersion() == null);
         String sRefNamespace = ref.getNamespace();
View Full Code Here

      {
         Lookup map = findResources(false, mixinMap);

         if (map != null)
         {
            for (Lookup.Iterator itr = map.valueIterator(); itr.hasNext();)
            {
               XMLResource resource = (XMLResource)itr.next();

               resourceMap.put(resource.getName(), resource);
            }
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.