Package nexj.core.meta

Examples of nexj.core.meta.MetadataException


      EndpointPart part = (m_destinationList.isEmpty()) ? m_rootPart :
         (EndpointPart)m_destinationList.get(m_destinationList.size() - 1);
     
      if (part.isPrimitive())
      {
         throw new MetadataException("err.meta.transformation.primitiveParent", new Object[]{part.getName()});
      }

      addDestination(part.getChild(sName), bFixed);
   }
View Full Code Here


      {
         for (int i = m_argumentList.size() - 1; i >= 0; --i)
         {
            if (argument.getName().equals(((TransformationArgument)m_argumentList.get(i)).getName()))
            {
               throw new MetadataException("err.meta.transformation.argumentDup",
                  new Object[]{argument.getName(), getName()});
            }
         }
      }
View Full Code Here

         refPart.getDeclarator() != null &&
         m_declarator != null &&
         refPart.getDeclarator().getFormat() != m_declarator.getFormat() &&
         m_declarator.getFormat() != null)
      {
         throw new MetadataException("err.integration.incompatibleRefFormat",
            new Object[]{getFullPath()});
      }
   }
View Full Code Here

     
      enumeration = m_type.convert(enumeration);

      if (!m_enumerationSet.add(enumeration))
      {
         throw new MetadataException("err.meta.integration.enumerationDup",
            new Object[]{enumeration, getFullPath()});
      }
   }
View Full Code Here

    */
   public Object validateValue(Object value)
   {
      if (value != null && m_enumerationSet != null && !m_enumerationSet.contains(value))
      {
         throw new MetadataException("err.meta.integration.enumerationValue",
            new Object[]{value, getFullPath()});
      }

      return value;
   }
View Full Code Here

      {
         m_format = message.getFormat();
      }
      else if (m_format != message.getFormat())
      {
         throw new MetadataException("err.meta.integration.messageTableMismatch",
            new Object[]{message.getName(), m_format.getName(),
               (message.getFormat() == null) ? "" : message.getFormat().getName()});
      }
     
      Object oldMessage = m_messageMap.put(message.getName(), message);
     
      if (oldMessage != null)
      {
         m_messageMap.put(message.getName(), oldMessage);
         throw new MetadataException("err.meta.integration.messageTableDup",
            new Object[]{message.getName()});
      }

      m_messageList.add(message);
   }
View Full Code Here

            {
               // base message "message" is already in table
            }
            else
            {
               throw new MetadataException("err.meta.integration.xml.dupMessageElement",
                  new Object[]{mapping.getNodeName(), old.getName(), message.getName()});
            }
         }

         nAcceptedEnvelopes |= mapping.getEnvelope();
View Full Code Here

         }

         root = root.getBaseTransformation();
      }

      throw new MetadataException("err.meta.transformation.mappingLookup",
         new Object[]{sMapping, transformation});
   }
View Full Code Here

      if (oldPart != null)
      {
         m_partMap.put(part.getName(), oldPart);

         throw new MetadataException("err.meta.msgPartDup", new Object[]
         {
            part.getFullPath(),
            getFullPath()
         });
      }
View Full Code Here

   /**
    * @see nexj.core.meta.persistence.XMLPersistenceMetadataLoader#loadUpgrade(org.w3c.dom.Element, java.lang.String, nexj.core.meta.persistence.DataSource, nexj.core.meta.xml.XMLMetadataHelper)
    */
   public SchemaUpgrade loadUpgrade(Element element, String sName, DataSource source, XMLMetadataHelper helper)
   {
      throw new MetadataException("err.meta.upgrade.unsupported", new Object[]{source.getType().getName()});
   }
View Full Code Here

TOP

Related Classes of nexj.core.meta.MetadataException

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.