|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.andromda.core.mapping.Mapping
public class Mapping
A single child mapping instance belonging to a Mappings instance. It doesn't make sense to instantiate this class by itself.
Mappings| Constructor Summary | |
|---|---|
Mapping()
|
|
| Method Summary | |
|---|---|
void |
addFrom(String from)
Adds the from type to the mapping. |
void |
addPath(String path)
Adds the path to the listof paths. |
Collection<String> |
getFroms()
Return the Collection of froms. |
String |
getTo()
Returns the to type for this mapping. |
(package private) void |
setMappings(Mappings mappings)
Sets the mappings to which this Mapping instance belongs. |
void |
setTo(String to)
Sets the type for this mapping. |
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 |
|---|
public Mapping()
| Method Detail |
|---|
public void addFrom(String from)
from type to the mapping.
from - the type that we are mapping from.public Collection<String> getFroms()
public String getTo()
public void addPath(String path)
path - public void setTo(String to)
to - the value to which the from
values are mapped.final void setMappings(Mappings mappings)
mappings - the owning mappings.public String toString()
from1, from2, from3 --> to.
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||