*/
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)
{