|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.felix.metatype.internal.MetaTypeInformationImpl
public class MetaTypeInformationImpl
The MetaTypeInformationImpl
class implements the
MetaTypeInformation
interface returned from the
MetaTypeService
.
Field Summary | |
---|---|
static String |
SERVICE_FACTORYPID
|
Constructor Summary | |
---|---|
protected |
MetaTypeInformationImpl(Bundle bundle)
|
Method Summary | |
---|---|
protected void |
addFactoryPids(String[] factoryPids)
|
protected void |
addMetaData(MetaData md)
|
protected void |
addMetaTypeProvider(String key,
MetaTypeProvider mtp)
|
protected void |
addPids(String[] pids)
|
Bundle |
getBundle()
Return the bundle for which this object provides meta type information. |
String[] |
getFactoryPids()
Return the Factory PIDs (for ManagedServiceFactories) for which ObjectClassDefinition information is available. |
String[] |
getLocales()
Return a list of available locales. |
ObjectClassDefinition |
getObjectClassDefinition(String id,
String locale)
Returns an object class definition for the specified id localized to the specified locale. |
String[] |
getPids()
Return the PIDs (for ManagedServices) for which ObjectClassDefinition information is available. |
protected void |
removeFactoryPid(String factoryPid)
|
protected MetaTypeProvider |
removeMetaTypeProvider(String key)
|
protected void |
removePid(String pid)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String SERVICE_FACTORYPID
Constructor Detail |
---|
protected MetaTypeInformationImpl(Bundle bundle)
Method Detail |
---|
public Bundle getBundle()
MetaTypeInformation
getBundle
in interface MetaTypeInformation
public String[] getFactoryPids()
MetaTypeInformation
getFactoryPids
in interface MetaTypeInformation
public String[] getPids()
MetaTypeInformation
getPids
in interface MetaTypeInformation
public String[] getLocales()
MetaTypeProvider
Locale
class.
getLocales
in interface MetaTypeProvider
null
if there is no
locale specific localization can be found.public ObjectClassDefinition getObjectClassDefinition(String id, String locale)
MetaTypeProvider
The locale parameter must be a name that consists of language
[
"_" country
[ "_" variation
] ] as is customary in
the Locale
class. This Locale
class is not used
because certain profiles do not contain it.
getObjectClassDefinition
in interface MetaTypeProvider
id
- The ID of the requested object class. This can be a pid or
factory pid returned by getPids or getFactoryPids.locale
- The locale of the definition or null
for default
locale.
ObjectClassDefinition
object.protected void addMetaData(MetaData md)
protected void addPids(String[] pids)
protected void removePid(String pid)
protected void addFactoryPids(String[] factoryPids)
protected void removeFactoryPid(String factoryPid)
protected void addMetaTypeProvider(String key, MetaTypeProvider mtp)
protected MetaTypeProvider removeMetaTypeProvider(String key)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |