org.andromda.core.mapping
Class Mapping

java.lang.Object
  extended by org.andromda.core.mapping.Mapping

public class Mapping
extends java.lang.Object

A single child mapping instance belonging to a Mappings instance. It doesn't make sense to instantiate this class by itself.

Author:
Chad Brandon, Wouter Zoons
See Also:
Mappings

Constructor Summary
Mapping()
           
 
Method Summary
 void addFrom(java.lang.String from)
          Adds the from type to the mapping.
 void addPath(java.lang.String path)
          Adds the path to the listof paths.
 java.util.Collection getFroms()
          Return the Collection of froms.
 java.lang.String getTo()
          Returns the to type for this mapping.
 void setTo(java.lang.String to)
          Sets the type for this mapping.
 java.lang.String toString()
          Returns a String representation of this mapping in the form of from1, from2, from3 --> to.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Mapping

public Mapping()
Method Detail

addFrom

public void addFrom(java.lang.String from)
Adds the from type to the mapping.

Parameters:
from - the type that we are mapping from.

getFroms

public java.util.Collection getFroms()
Return the Collection of froms.

Returns:
Collection

getTo

public java.lang.String getTo()
Returns the to type for this mapping.

Returns:
String the to type

addPath

public void addPath(java.lang.String path)
Adds the path to the listof paths.

Parameters:
path -

setTo

public void setTo(java.lang.String to)
Sets the type for this mapping.

Parameters:
to - the value to which the from values are mapped.

toString

public java.lang.String toString()
Returns a String representation of this mapping in the form of from1, from2, from3 --> to.

Overrides:
toString in class java.lang.Object
Returns:
a String representing the mapping instance


Copyright © 2003-2008 AndroMDA.org. All Rights Reserved.