Package nexj.core.meta.integration

Examples of nexj.core.meta.integration.TransformationEndpoint


         Transformation oldTransformation = transformation;

         if (!StringUtil.isEmpty(obj.getClassName()) && m_bPolymorphic)
         {
            TransformationEndpoint derivedEndpoint = transformation.getSource().getEndpoint(obj.getClassName());
            Transformation derivedTransformation = findDerivedTransformation(transformation, derivedEndpoint);

            if (oldTransformation.getDerivation() == Transformation.DERIVATION_FINAL && derivedTransformation != oldTransformation)
            {
               throw new IntegrationException("err.integration.messageTypeMismatch",
                  new Object[] {oldTransformation.toString(), oldTransformation.getSource().toString(), derivedEndpoint.toString()});
            }

            if (derivedTransformation != null && derivedTransformation != oldTransformation)
            {
               transformation = derivedTransformation;
View Full Code Here


    */
   public void exportTransformation(Transformation transformation) throws IOException
   {
      m_writer.openElement("Transformation");

      TransformationEndpoint source = transformation.getSource();

      if (source == null)
      {
         throw new MetadataException("err.meta.transformation.missingSource");
      }

      m_writer.openAttribute("source");

      if (source instanceof Metaclass)
      {
         m_writer.write("class:");
      }

      m_writer.write(source.getName());
      m_writer.closeAttribute();

      TransformationEndpoint destination = transformation.getDestination();

      if (destination == null)
      {
         throw new MetadataException("err.meta.transformation.missingDestination");
      }

      m_writer.openAttribute("destination");

      if (destination instanceof Metaclass)
      {
         m_writer.write("class:");
      }

      m_writer.write(destination.getName());
      m_writer.closeAttribute();
      m_writer.closeElement();

      if (transformation.getInitializer() != null)
      {
View Full Code Here

    * @param sTransformationName The name of the transformation.
    * @return The end-point. The endpoint.
    */
   protected TransformationEndpoint getTransformationEndpoint(String sName, String sTransformationName)
   {
      TransformationEndpoint meta;

      if (sName.startsWith("class:"))
      {
         meta = m_metadata.getMetaclass(sName.substring("class:".length()));
      }
View Full Code Here

TOP

Related Classes of nexj.core.meta.integration.TransformationEndpoint

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.