Package nexj.core.util

Examples of nexj.core.util.SingletonIterator


    */
   protected static Iterator getIterator(Object result, Metaclass metaclass)
   {
      if (result instanceof TransferObject)
      {
         return new SingletonIterator(result);
      }

      if (result instanceof Collection)
      {
         return ((Collection)result).iterator();
View Full Code Here


               cursor.close();
            }
         }
         else if (value instanceof TransferObject)
         {
            Cursor cursor = new VirtualCursor(getCompositionQuery(attribute, query), new SingletonIterator(value));

            try
            {
               instance.setOldValueDirect(nOrdinal, cursor.next());
            }
View Full Code Here

         if (m_defaultFragment == null)
         {
            return EmptyIterator.getInstance();
         }

         return new SingletonIterator(m_defaultFragment);
      }

      return m_fragmentMap.valueIterator();
   }
View Full Code Here

    */
   public void export(Message message, Writer writer) throws IOException
   {
      if (m_nOutputMode == OUTMODE_XSD)
      {
         exportMessages(new SingletonIterator(message), writer);
      }
      else if (m_nOutputMode == OUTMODE_WSDL)
      {
         MetadataServiceConverter converter = new MetadataServiceConverter();
         WSDLServiceExporter exporter = new WSDLServiceExporter();
View Full Code Here

TOP

Related Classes of nexj.core.util.SingletonIterator

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.