Package nexj.core.meta

Examples of nexj.core.meta.Primitive.convert()


      switch (((HL7MessagePartMapping)part.getMapping()).getSeq())
      {
         case 7: // Message time
            if (primitive != null)
            {
               return primitive.convert(new Timestamp(System.currentTimeMillis()));
            }

            break;

         case 9: // Message type
View Full Code Here


            return tobj;

         case 10: // Control Id
            if (primitive != null)
            {
               return primitive.convert(getControlId());
            }

            break;

         case 11: // Processing Id
View Full Code Here

                  }

                  return SOAPUtil.parseDateTime(sValue, false, true, null)// time

               default:
                  return type.convert(sValue);
            }
         }
      }

      return sValue;
View Full Code Here

                  {
                     Object value = fixupList.get(i + 1);

                     if (type != Primitive.STRING)
                     {
                        value = type.convert(value);
                     }

                     if (!valueSet.add(value))
                     {
                        throw new MetadataException("err.meta.enumValueDup",
View Full Code Here

         int nCount = list.size();
         List convertedList = new ArrayList(nCount);

         for (int i = 0; i < nCount; ++i)
         {
            convertedList.add(type.convert(list.get(i)));
         }

         return convertedList;
      }
View Full Code Here

         }

         return convertedList;
      }

      return type.convert(value);
   }

   /**
    * Instantiates a transfer object list.
    * @param value The value to instantiate.
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.