SMILA (incubation) API documentation

org.eclipse.smila.datamodel.tools
Class DatamodelCopyUtils

java.lang.Object
  extended by org.eclipse.smila.datamodel.tools.DatamodelCopyUtils

public final class DatamodelCopyUtils
extends java.lang.Object

The Class CloneUtils.


Method Summary
static Annotation cloneAnnotation(Annotation source, RecordFactory factory)
          Clone annotation.
static Attribute cloneAttribute(Attribute source, RecordFactory factory)
          Clone attribute.
static Attribute cloneAttribute(Attribute source, RecordFactory factory, boolean doCopyAnnotation)
          Clone attribute.
static Literal cloneLiteral(Literal source, RecordFactory factory)
          Clone literal.
static MObject cloneMObject(MObject source, RecordFactory factory)
          Clone m object.
static void copyAnnotations(Annotatable source, Annotatable destination, RecordFactory factory)
          Copy annotations.
static void copyAttributes(MObject source, MObject destination, RecordFactory factory)
          Copy attributes.
static void copyLiterals(Attribute source, Attribute destination, RecordFactory factory)
          Copy literals.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

cloneMObject

public static MObject cloneMObject(MObject source,
                                   RecordFactory factory)
Clone m object.

Parameters:
source - the source
factory - the factory
Returns:
the m object

copyAttributes

public static void copyAttributes(MObject source,
                                  MObject destination,
                                  RecordFactory factory)
Copy attributes.

Parameters:
source - the source
destination - the destination
factory - the factory

copyAnnotations

public static void copyAnnotations(Annotatable source,
                                   Annotatable destination,
                                   RecordFactory factory)
Copy annotations.

Parameters:
source - the source
destination - the destination
factory - the record factory

copyLiterals

public static void copyLiterals(Attribute source,
                                Attribute destination,
                                RecordFactory factory)
Copy literals.

Parameters:
source - the source
destination - the destination
factory - the factory

cloneAnnotation

public static Annotation cloneAnnotation(Annotation source,
                                         RecordFactory factory)
Clone annotation.

Parameters:
source - the source annotation
factory - the record factory
Returns:
the annotation

cloneAttribute

public static Attribute cloneAttribute(Attribute source,
                                       RecordFactory factory)
Clone attribute.

Parameters:
source - the source attribute
factory - the factory
Returns:
the attribute

cloneAttribute

public static Attribute cloneAttribute(Attribute source,
                                       RecordFactory factory,
                                       boolean doCopyAnnotation)
Clone attribute.

Parameters:
source - the source
factory - the factory
doCopyAnnotation - the do copy annotation
Returns:
the attribute

cloneLiteral

public static Literal cloneLiteral(Literal source,
                                   RecordFactory factory)
Clone literal.

Parameters:
source - the source
factory - the factory
Returns:
the literal

SMILA (incubation) API documentation