|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.andromda.metafacades.uml.TypeMappings
public class TypeMappings
An object responsible for mapping types in the object model to other language identifiers/types. (For example, Java, SQL, Jdbc, etc). Basically just wraps the core
Mappings instance in order to provide type specific mapping
functionality.
| Method Summary | |
|---|---|
static TypeMappings |
getInstance(org.andromda.core.mapping.Mappings mappings)
Returns a new configured instance of this TypeMappings configured from the mappings instance. |
static TypeMappings |
getInstance(java.lang.String mappingsUri)
Returns a new configured instance of this TypeMappings configured from the mappings instance. |
org.andromda.core.mapping.Mappings |
getMappings()
Returns the Mappings instance which this TypeMapping wraps. |
java.lang.String |
getTo(java.lang.String from)
Returns the to mapping from a given from mapping. |
void |
setArraySuffix(java.lang.String arraySuffix)
Sets the optional suffix used for array types (if |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public void setArraySuffix(java.lang.String arraySuffix)
arraySuffix - the suffix used for arrays within this mapping.public static TypeMappings getInstance(org.andromda.core.mapping.Mappings mappings)
mappings - the Mappings instance.
public static TypeMappings getInstance(java.lang.String mappingsUri)
mappingsUri - the URI to configure the underlying Mappings instance.
MalformedURLException - when the mappingsUri is invalid (not a valid URL).public java.lang.String getTo(java.lang.String from)
to mapping from a given from mapping.
from - the from mapping, this is the type/identifier that is in the model.
to mapping (this is the mapping that can be retrieved if a corresponding
'from' is found.public org.andromda.core.mapping.Mappings getMappings()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||