Package org.osgi.service.metatype
Interface MetaTypeProvider
- All Known Subinterfaces:
MetaTypeInformation
public interface MetaTypeProvider
Provides access to metatypes.
- Version:
- $Revision: 5673 $
-
Method Summary
Modifier and TypeMethodDescriptionString[]
Return a list of available locales.getObjectClassDefinition
(String id, String locale) Returns an object class definition for the specified id localized to the specified locale.
-
Method Details
-
getObjectClassDefinition
Returns an object class definition for the specified id localized to the specified locale.The locale parameter must be a name that consists of
language
[ "_"country
[ "_"variation
] ] as is customary in theLocale
class. ThisLocale
class is not used because certain profiles do not contain it.- Parameters:
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 ornull
for default locale.- Returns:
- A
ObjectClassDefinition
object. - Throws:
IllegalArgumentException
- If the id or locale arguments are not valid
-
getLocales
String[] getLocales()Return a list of available locales. The results must be names that consists of language [ _ country [ _ variation ]] as is customary in theLocale
class.- Returns:
- An array of locale strings or
null
if there is no locale specific localization can be found.
-