Class ProfileRegistry
- java.lang.Object
-
- java.util.Observable
-
- org.modelversioning.emfprofile.registry.internal.ProfileRegistry
-
- All Implemented Interfaces:
IProfileRegistry
public class ProfileRegistry extends Observable implements IProfileRegistry
-
-
Field Summary
-
Fields inherited from interface org.modelversioning.emfprofile.registry.IProfileRegistry
eINSTANCE, PROFILE_EXTENSION_POINT_ID, PROFILE_EXTENSION_POINT_RESOURCE_NAME
-
-
Constructor Summary
Constructors Constructor Description ProfileRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
doRegisterProfile(IProfileProvider profileProvider)
protected void
doUnregisterProfile(IProfileProvider profileProvider)
Collection<IProfileProvider>
getRegisteredProfileProviders()
Returns an unmodifiable collection of all registered profile providers.Collection<Profile>
getRegisteredProfiles()
Returns an unmodifiable collection of all registered profiles.protected Collection<ProjectProfileProvider>
getRegisteredProjectProfileProviders()
void
registerProfile(IProfileProvider profileProvider)
Registers the specified profile.void
unregisterProfile(IProfileProvider profileProvider)
Removes the specified profile from the registry.-
Methods inherited from class java.util.Observable
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.modelversioning.emfprofile.registry.IProfileRegistry
addObserver
-
-
-
-
Method Detail
-
getRegisteredProfiles
public Collection<Profile> getRegisteredProfiles()
Description copied from interface:IProfileRegistry
Returns an unmodifiable collection of all registered profiles.- Specified by:
getRegisteredProfiles
in interfaceIProfileRegistry
- Returns:
- all registered profiles.
-
getRegisteredProfileProviders
public Collection<IProfileProvider> getRegisteredProfileProviders()
Description copied from interface:IProfileRegistry
Returns an unmodifiable collection of all registered profile providers.- Specified by:
getRegisteredProfileProviders
in interfaceIProfileRegistry
- Returns:
- all registered profile providers.
-
registerProfile
public void registerProfile(IProfileProvider profileProvider)
Description copied from interface:IProfileRegistry
Registers the specified profile.- Specified by:
registerProfile
in interfaceIProfileRegistry
- Parameters:
profileProvider
- provider for the profile to register.
-
doRegisterProfile
protected void doRegisterProfile(IProfileProvider profileProvider)
-
unregisterProfile
public void unregisterProfile(IProfileProvider profileProvider)
Description copied from interface:IProfileRegistry
Removes the specified profile from the registry.- Specified by:
unregisterProfile
in interfaceIProfileRegistry
- Parameters:
profileProvider
- provider for the profile to register.
-
doUnregisterProfile
protected void doUnregisterProfile(IProfileProvider profileProvider)
-
getRegisteredProjectProfileProviders
protected Collection<ProjectProfileProvider> getRegisteredProjectProfileProviders()
-
-