|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface IMappingRegistry
A registry which allows easy access to an IMappingProvider which supports a given
cpc data mapping.
All IMappingProviders which are registered with the IProviderRegistry
are automatically known to this registry. Individual provider priorities are taken into account
if multiple providers claim to support a given cpc data mapping.
For convenience reasons the mapping registry also implements part of the IMappingProvider interface.
However, the IMappingProvider is not explicitly extended here, as many of our implementations
have different post conditions.
IMappingProvider,
IProviderRegistry| Method Summary | |
|---|---|
java.lang.String |
extractCloneObjectUuidFromString(java.lang.String data)
Extracts the ICloneObject.getUuid() from the main object in the given cpc
data string mapping by using the mapping provider with the highest priority which
claims to support the given cpc data type. |
IMappingProvider |
lookupMappingProviderForDataFormat(java.lang.String data)
Checks whether any of the registered IMappingProviders supports the given
cpc data mapping. |
MappingStore |
mapFromString(java.lang.String data)
Maps the given cpc data string mapping to a MappingStore using the mapping
provider with the highest priority which claims to support the given cpc data type. |
| Methods inherited from interface org.electrocodeogram.cpc.core.api.provider.IProvider |
|---|
getProviderName, toString |
| Method Detail |
|---|
IMappingProvider lookupMappingProviderForDataFormat(java.lang.String data)
IMappingProviders supports the given
cpc data mapping.
IMappingProvider.isSupportedMappingFormat(String).
data - the cpc data mapping to get a mapping provider for, never null.
IMappingProvider which claims to support the given cpc data mapping
or NULL if no corresponding mapping provider could be found.
MappingStore mapFromString(java.lang.String data)
throws MappingException
MappingStore using the mapping
provider with the highest priority which claims to support the given cpc data type.
lookupMappingProviderForDataFormat(String) followed by
a IMappingProvider.mapFromString(String).
data - the cpc data mapping to convert, never null.
MappingStore if an IMappingProvider could be found for
the given cpc data mapping, NULL otherwise.
MappingException - passed through from IMappingProvider.mapFromString(String).lookupMappingProviderForDataFormat(String),
IMappingProvider.mapFromString(String)
java.lang.String extractCloneObjectUuidFromString(java.lang.String data)
throws MappingException
ICloneObject.getUuid() from the main object in the given cpc
data string mapping by using the mapping provider with the highest priority which
claims to support the given cpc data type.
lookupMappingProviderForDataFormat(String) followed by
a IMappingProvider.extractCloneObjectUuidFromString(String).
data - the cpc data mapping to extract the main entries UUID from, never null.
ICloneObject entry in the given mapping or NULL.
See IMappingProvider.extractCloneObjectUuidFromString(String).
MappingException - passed through from IMappingProvider.extractCloneObjectUuidFromString(String).lookupMappingProviderForDataFormat(String),
IMappingProvider.extractCloneObjectUuidFromString(String)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||