|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.argouml.model.Model
public final class Model
This is the root class of the Model subsystem. All other subsystems can retrieve the correct version of the API from this class.
Notice that all API's returned from this class are to be independent of and specific UML model implementation.
For this to work the Model subsystem needs to be initialized with a
ModelImplementation
. This is done by calling the static member
setImplementation(ModelImplementation)
.
Method Summary | |
---|---|
static java.lang.Object |
execute(ModelCommand command)
Notify any observer that a command has been created and execute that it. |
static ActivityGraphsFactory |
getActivityGraphsFactory()
Getter for ActivityGraphsFactory. |
static ActivityGraphsHelper |
getActivityGraphsHelper()
Getter for the ActivityGraphsHelper. |
static AggregationKind |
getAggregationKind()
Getter for the AggregationKind object. |
static ChangeableKind |
getChangeableKind()
Deprecated. for 0.25.4 by tfmorris. This enumeration has been removed from UML 2. Use the getter for the isReadOnly attribute. |
static CollaborationsFactory |
getCollaborationsFactory()
Getter for CollaborationsFactory. |
static CollaborationsHelper |
getCollaborationsHelper()
Getter for CollaborationsHelper. |
static CommonBehaviorFactory |
getCommonBehaviorFactory()
Getter for CommonBehaviorFactory. |
static CommonBehaviorHelper |
getCommonBehaviorHelper()
Getter for CommonBehaviorHelper. |
static ConcurrencyKind |
getConcurrencyKind()
Getter for the ConcurrencyKind object. |
static CopyHelper |
getCopyHelper()
Getter for CopyHelper. |
static CoreFactory |
getCoreFactory()
Getter for CoreFactory. |
static CoreHelper |
getCoreHelper()
Getter for CoreHelper. |
static DataTypesFactory |
getDataTypesFactory()
Getter for DataTypesFactory. |
static DataTypesHelper |
getDataTypesHelper()
Getter for DataTypesHelper. |
static DiagramInterchangeModel |
getDiagramInterchangeModel()
Getter for DiagramInterchangeModel. |
static DirectionKind |
getDirectionKind()
Getter for the DirectionKind object. |
static ExtensionMechanismsFactory |
getExtensionMechanismsFactory()
Getter for ExtensionMechanismsFactory. |
static ExtensionMechanismsHelper |
getExtensionMechanismsHelper()
Getter for ExtensionMechanismsHelper. |
static Facade |
getFacade()
Get the facade. |
static MetaTypes |
getMetaTypes()
Getter for the MetaTypes object. |
static ModelCommandCreationObserver |
getModelCommandCreationObserver()
Gets the external class responsible for handling commands. |
static ModelManagementFactory |
getModelManagementFactory()
Getter for ModelManagementFactory. |
static ModelManagementHelper |
getModelManagementHelper()
Getter for ModelManagementHelper. |
static OrderingKind |
getOrderingKind()
Getter for the OrderingKind object. |
static PseudostateKind |
getPseudostateKind()
Getter for the PseudostateKind object. |
static ModelEventPump |
getPump()
Get the event pump. |
static ScopeKind |
getScopeKind()
Deprecated. for 0.25.4 by tfmorris. This has been removed from UML 2. Use Facade.isStatic(Object) instead. |
static StateMachinesFactory |
getStateMachinesFactory()
Getter for StateMachinesFactory. |
static StateMachinesHelper |
getStateMachinesHelper()
Getter for StateMachinesHelper. |
static UmlFactory |
getUmlFactory()
Getter for UmlFactory. |
static UmlHelper |
getUmlHelper()
Getter for UmlHelper. |
static UseCasesFactory |
getUseCasesFactory()
Getter for UseCasesFactory. |
static UseCasesHelper |
getUseCasesHelper()
Getter for UseCasesHelper. |
static VisibilityKind |
getVisibilityKind()
Getter for the VisibilityKind object. |
static XmiReader |
getXmiReader()
Getter for the XmiReader object. |
static XmiWriter |
getXmiWriter(java.lang.Object model,
java.io.OutputStream stream,
java.lang.String version)
Get the XmiWriter object. |
static java.lang.Throwable |
initialise(java.lang.String modelName)
Initialise the model repository, based on the name of a ModelImplementation class. |
static boolean |
isInitiated()
|
static void |
setImplementation(ModelImplementation newImpl)
Selects the implementation. |
static void |
setModelCommandCreationObserver(ModelCommandCreationObserver observer)
Allows an external system to register itself to receive commands created by the model implementation. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static void setImplementation(ModelImplementation newImpl)
This must be called with a working ModelImplementation
to make the Model subsystem operational.
newImpl
- The ModelImplementation object of the selected
implementation.public static Facade getFacade()
The facade is probably the most used interface. It contains recognizers and getters for all method kinds.
public static ModelEventPump getPump()
public static DiagramInterchangeModel getDiagramInterchangeModel()
public static ActivityGraphsFactory getActivityGraphsFactory()
public static ActivityGraphsHelper getActivityGraphsHelper()
public static CollaborationsFactory getCollaborationsFactory()
public static CollaborationsHelper getCollaborationsHelper()
public static CommonBehaviorFactory getCommonBehaviorFactory()
public static CommonBehaviorHelper getCommonBehaviorHelper()
public static CoreFactory getCoreFactory()
public static CoreHelper getCoreHelper()
public static DataTypesFactory getDataTypesFactory()
public static DataTypesHelper getDataTypesHelper()
public static ExtensionMechanismsFactory getExtensionMechanismsFactory()
public static ExtensionMechanismsHelper getExtensionMechanismsHelper()
public static ModelManagementFactory getModelManagementFactory()
public static ModelManagementHelper getModelManagementHelper()
public static StateMachinesFactory getStateMachinesFactory()
public static StateMachinesHelper getStateMachinesHelper()
public static UmlFactory getUmlFactory()
public static UmlHelper getUmlHelper()
public static UseCasesFactory getUseCasesFactory()
public static UseCasesHelper getUseCasesHelper()
public static MetaTypes getMetaTypes()
@Deprecated public static ChangeableKind getChangeableKind()
public static AggregationKind getAggregationKind()
public static PseudostateKind getPseudostateKind()
@Deprecated public static ScopeKind getScopeKind()
Facade.isStatic(Object)
instead.
public static ConcurrencyKind getConcurrencyKind()
public static DirectionKind getDirectionKind()
public static OrderingKind getOrderingKind()
public static VisibilityKind getVisibilityKind()
public static XmiReader getXmiReader() throws UmlException
UmlException
- on any error while readingpublic static XmiWriter getXmiWriter(java.lang.Object model, java.io.OutputStream stream, java.lang.String version) throws UmlException
model
- the project member modelstream
- the stream to write toversion
- string to be written into file header as XMI writer version
UmlException
- on any error while writingpublic static java.lang.Throwable initialise(java.lang.String modelName)
The name shall include the path, e.g. "org.argouml.model.mdr.MDRModelImplementation".
modelName
- class name of the model implementation
public static boolean isInitiated()
true
if the Model subsystem is correctly initiated.public static void setModelCommandCreationObserver(ModelCommandCreationObserver observer)
observer
- the interested partyModelCommand
public static ModelCommandCreationObserver getModelCommandCreationObserver()
public static java.lang.Object execute(ModelCommand command)
command
- The newly created command.
public static CopyHelper getCopyHelper()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ArgoUML © 1996-2006 | ArgoUML Homepage | ArgoUML Developers' page | ArgoUML Cookbook |