org.knopflerfish.util.metatype
public class MTP extends java.lang.Object implements MetaTypeInformation, java.lang.Comparable<MTP>
MetaTypeInformation interface.METATYPE_FACTORY_PID, METATYPE_PID| Constructor and Description |
|---|
MTP(java.lang.String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
addFactory(java.lang.String pid,
ObjectClassDefinition ocd) |
void |
addService(java.lang.String pid,
ObjectClassDefinition ocd) |
int |
compareTo(MTP o) |
boolean |
equals(java.lang.Object other) |
Bundle |
getBundle()
Return the bundle for which this object provides meta type information.
|
java.lang.String[] |
getFactoryPids()
Return the Factory PIDs (for ManagedServiceFactories) for which
ObjectClassDefinition information is available.
|
java.lang.String |
getId() |
java.lang.String[] |
getLocales()
Return a list of available locales.
|
ObjectClassDefinition |
getObjectClassDefinition(java.lang.String pid,
java.lang.String locale)
Returns an object class definition for the specified id localized to the
specified locale.
|
java.lang.String[] |
getPids()
Return the PIDs (for ManagedServices) for which ObjectClassDefinition
information is available.
|
int |
hashCode() |
java.lang.String |
toString() |
java.lang.String |
toString(boolean bFull) |
public void addService(java.lang.String pid,
ObjectClassDefinition ocd)
public void addFactory(java.lang.String pid,
ObjectClassDefinition ocd)
public Bundle getBundle()
MetaTypeInformationgetBundle in interface MetaTypeInformationpublic java.lang.String[] getPids()
MetaTypeInformationgetPids in interface MetaTypeInformationpublic java.lang.String[] getFactoryPids()
MetaTypeInformationgetFactoryPids in interface MetaTypeInformationpublic java.lang.String[] getLocales()
MetaTypeProviderLocale class.getLocales in interface MetaTypeProvidernull if there is no locale
specific localization can be found.public ObjectClassDefinition getObjectClassDefinition(java.lang.String pid, java.lang.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 MetaTypeProviderpid - 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.public java.lang.String toString()
toString in class java.lang.Objectpublic java.lang.String toString(boolean bFull)
public java.lang.String getId()
public int compareTo(MTP o)
compareTo in interface java.lang.Comparable<MTP>public int hashCode()
hashCode in class java.lang.Objectpublic boolean equals(java.lang.Object other)
equals in class java.lang.Object