Method Summary |
|
public static void | addLogicalMappings(URL mappingsUri) Adds a mapping to the globally available mappings, these are used by this
class to instantiate mappings from logical names as opposed to physical
names. |
public void | addMapping(Mapping mapping) Adds a Mapping object to the set of current mappings. |
public void | addMappings(Mappings mappings) Adds the mappings instance to this Mappings instance
overriding any mappings with duplicate names. |
public static void | clearLogicalMappings() Clears the entries from the logical mappings cache. |
public boolean | containsFrom(String from) Returns true if the mapping contains the from value
Parameters: from - the value of the from mapping. |
final String | getCompletePath(String relativePath) Constructs the complete path from the given relativePath
and the resource of the parent
Mappings.getResource as the root
of the path. |
public static Mappings | getInstance(String mappingsUri) Returns a new configured instance of this Mappings configured from the
mappings configuration URI string.
Parameters: mappingsUri - the URI to the XML type mappings configuration file. |
public static Mappings | getInstance(URL mappingsUri) Returns a new configured instance of this Mappings configured from the
mappings configuration URI.
Parameters: mappingsUri - the URI to the XML type mappings configuration file. |
public Mapping | getMapping(String from) Gets the mapping having the given from .
Parameters: from - the from mapping. |
public Collection | getMappings() Gets all Mapping instances for for this Mappings instance. |
public String | getName() Returns the name name (this is the name for which the type mappings are
for). |
public URL | getResource() Returns the resource URI from which this Mappings object was loaded. |
public String | getTo(String from) Returns the to mapping from a given from
mapping.
Parameters: from - the from mapping, this is the type/identifierthat is in the model. |
public static void | initializeLogicalMappings() This initializes all logical mappings that
are contained with global Mapping set. |
public void | setExtendsUri(String extendsUri) Sets the name of the mappings which this
instance extends. |
public void | setName(String name) Sets the name name. |
public String | toString() |