Package org.jetbrains.mps.openapi.module
Interface DetachableFacet
- 
- All Known Subinterfaces:
- SModuleFacet
 
 public interface DetachableFacetPresumably facet could store properties independent of the owning module; For instance copying/renaming is supposed to easier when we can detach the facet from one module and attach to the other module.
- 
- 
Method SummaryAll Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidattach(SModule module)voiddetach()#getModule will return null after this invocationSModulegetModule()The owning moduledefault booleanisAttached()
 
- 
- 
- 
Method Detail- 
getModule@Nullable SModule getModule() The owning module- Returns:
- null if the module is not attached to this facet
 
 - 
attachvoid attach(@NotNull SModule module) - Parameters:
- module- will be returned from #getModule afterwards
- Throws:
- IllegalStateException- if the facet is already attached to some module
 
 - 
detachvoid detach() #getModule will return null after this invocation
 - 
isAttacheddefault boolean isAttached() 
 
- 
 
-