|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--ConForM.CoopnTools.CoKer.AspectMgr.AspectMgr
Aspect Manager. This class essentially defines the services provided by the aspect manager.
Field Summary | |
static java.lang.String |
VERSION
Package Manager version; |
Constructor Summary | |
AspectMgr(PackageMgr packageMgr,
CoopnEnv env)
Constructor. |
Method Summary | |
java.lang.String |
aspectModule(CoopnSyntacticElement element,
CoopnSyntacticSymbol symbol,
java.lang.String elementDescr)
Return the standard name of aspect module for syntactic elements of particular symbol. |
java.lang.String |
aspectModule(CoopnSyntacticModule mod)
Return the standard name of aspect module for syntactic modules. |
java.lang.String |
aspectModule(CoopnSyntacticSymbol symbol)
Return the standard name of aspect module for syntactic symbols. |
java.lang.String |
aspectModule(java.lang.String moduleName)
Return the standard name of aspect module for a module given by its name. |
java.lang.String |
aspectName(CoopnSyntacticElement element,
CoopnSyntacticSymbol symbol,
java.lang.String elementDescr)
Return the standard name of aspect for syntactic elements of particular symbol. |
java.lang.String |
aspectName(CoopnSyntacticModule mod)
Return the standard name of aspect for syntactic modules. |
java.lang.String |
aspectName(CoopnSyntacticSymbol symbol)
Return the standard name of aspect for syntactic symbols. |
java.lang.String |
aspectName(java.lang.String moduleName)
Return the standard name of aspect for a module given by its name. |
void |
createAspectModule(java.lang.String aspectName)
Creates a package. |
boolean |
defined(java.lang.String module)
Look if the aspect module containing an element is already defined. |
void |
dispose()
Leave a package manager. |
Aspect |
getAspect(java.lang.String module,
java.lang.String name)
Get the aspect of an element. |
CoopnUser |
lockModule(java.lang.String aspectName,
CoopnUser user)
Lock an aspect module. |
PackageMgr |
packageMgr()
Get the associated package manager. |
void |
registerObserver(java.lang.String aspectName,
AspectModuleObserver observer)
Register an aspect module observer. |
void |
reloadAspectModule(java.lang.String aspectName)
Reload an aspect module from the disk. |
void |
setAspect(java.lang.String module,
java.lang.String name,
Aspect aspect)
Set the aspect of an element. |
void |
unlockModule(java.lang.String aspectName)
Unlock an aspect module. |
void |
unregisterObserver(java.lang.String aspectName,
AspectModuleObserver observer)
unregister an aspect module observer. |
void |
use()
Uses an aspect manager. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String VERSION
Constructor Detail |
public AspectMgr(PackageMgr packageMgr, CoopnEnv env) throws java.lang.IllegalArgumentException
packageMgr
- the associated package managerenv
- the environment of the aspect managerjava.lang.IllegalArgumentException
- the environment is absent or inconsistent.java.io.IOException
- error was detected when loading the package
files used by the project.Method Detail |
public void use()
public void dispose()
public PackageMgr packageMgr()
public java.lang.String aspectModule(java.lang.String moduleName)
public java.lang.String aspectModule(CoopnSyntacticModule mod)
public java.lang.String aspectModule(CoopnSyntacticSymbol symbol)
public java.lang.String aspectModule(CoopnSyntacticElement element, CoopnSyntacticSymbol symbol, java.lang.String elementDescr)
element
- the elementsymbol
- the symbolelementDescr
- a description of the element; a String or nullpublic java.lang.String aspectName(java.lang.String moduleName)
public java.lang.String aspectName(CoopnSyntacticModule mod)
public java.lang.String aspectName(CoopnSyntacticSymbol symbol)
public java.lang.String aspectName(CoopnSyntacticElement element, CoopnSyntacticSymbol symbol, java.lang.String elementDescr)
element
- the elementsymbol
- the symbolelementDescr
- a description of the element; a String or nullpublic boolean defined(java.lang.String module) throws java.lang.IllegalArgumentException
module
- the modulejava.lang.IllegalArgumentException
- the aspect cannot be delivered (because it is
not found, erroneous, and so on).public Aspect getAspect(java.lang.String module, java.lang.String name) throws java.lang.IllegalArgumentException
module
- the modulename
- the namejava.lang.IllegalArgumentException
- the aspect cannot be delivered (because it is
not found, erroneous, and so on).public void setAspect(java.lang.String module, java.lang.String name, Aspect aspect) throws java.lang.IllegalAccessException
module
- the modulename
- the nameaspect
- the aspect of the element.java.lang.IllegalArgumentException
- the aspect cannot be stored.java.lang.IllegalAccessException
- locking errorpublic void registerObserver(java.lang.String aspectName, AspectModuleObserver observer) throws java.lang.IllegalArgumentException
aspectName
- the aspect module nameobserver
- the aspect module observerjava.lang.IllegalArgumentException
- A problem
occured with the environment.public void unregisterObserver(java.lang.String aspectName, AspectModuleObserver observer)
aspectName
- the aspect nameobserver
- the aspect module observerjava.lang.IllegalArgumentException
- A problem
occured with the environment.public void reloadAspectModule(java.lang.String aspectName) throws java.lang.IllegalAccessException
aspectName
- the aspect namejava.lang.IllegalArgumentException
- the package is not found.java.lang.IllegalAccessException
- the package is not locked.public void createAspectModule(java.lang.String aspectName) throws java.lang.IllegalAccessException
packageName
- the package namecomment
- the associated comment; may be nullversion
- the package version; may be nulldate
- the package date; may be nulljava.lang.IllegalArgumentException
- problem with arguments.java.lang.IllegalAccessException
- the package is not locked.public CoopnUser lockModule(java.lang.String aspectName, CoopnUser user)
aspectName
- the package to lockuser
- the user who want to acquire the lockjava.lang.IllegalArgumentException
- an argument is illegalpublic void unlockModule(java.lang.String aspectName)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |