public final class TypeMappings extends Object
Mappings
instance in order to provide type specific mapping
functionality. Modifier and Type | Method and Description |
---|---|
static TypeMappings |
getInstance(Mappings mappings)
Returns a new configured instance of this TypeMappings configured from the mappings instance.
|
static TypeMappings |
getInstance(String mappingsUri)
Returns a new configured instance of this TypeMappings configured from the mappings instance.
|
Mappings |
getMappings()
Returns the Mappings instance which this TypeMapping wraps.
|
String |
getTo(String from)
Returns the
to mapping from a given from mapping. |
void |
setArraySuffix(String arraySuffix)
Sets the optional suffix used for array types (if
|
public void setArraySuffix(String arraySuffix)
arraySuffix
- the suffix used for arrays within this mapping.public static TypeMappings getInstance(Mappings mappings)
mappings
- the Mappings instance.public static TypeMappings getInstance(String mappingsUri)
mappingsUri
- the URI to configure the underlying Mappings
instance.public String getTo(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 Mappings getMappings()
Copyright © 2003–2014 AndroMDA.org. All rights reserved.