|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--com.ashridgetech.jamda.uml.ModelElement
|
+--com.ashridgetech.jamda.uml.ModelPackage
A UML Package, which may contain other packages.
| Nested Class Summary |
| Nested classes inherited from class com.ashridgetech.jamda.uml.ModelElement |
ModelElement.DuplicateElementException, ModelElement.ElementListStore, ModelElement.ElementNameListStore, ModelElement.ElementNameStore, ModelElement.ElementStore, ModelElement.TaggedValue, ModelElement.UnknownElementException |
| Field Summary |
| Fields inherited from class com.ashridgetech.jamda.uml.ModelElement |
DUMMY_STORE |
| Constructor Summary | |
|
ModelPackage(ModelPackage parentPackage,
java.lang.String name)
Creates new ModelPackage belonging to another ModelPackage. |
|
ModelPackage(Model parentModel,
java.lang.String name)
Creates new ModelPackage belonging to a Model. |
protected |
ModelPackage(ru.novosoft.uml.model_management.MPackage mp,
Model parentModel)
Creates new ModelPackage during loading. |
protected |
ModelPackage(ru.novosoft.uml.model_management.MPackage mp,
ModelPackage parentPackage)
Creates new ModelPackage during loading. |
| Method Summary | |
void |
checkValid()
Check whether this object is valid. |
ClassType |
getClass(java.lang.String name)
Get the ClassType defined directly within this ModelPackage with a given name |
java.util.Collection |
getClasses()
Get the ClassTypes which are defined directly within this ModelPackage. |
DataType |
getDataType(java.lang.String name)
Get the DataType defined within this ModelPackage with a given name |
java.util.Collection |
getDataTypes()
Get the DataTypes which are defined within this ModelPackage. |
InterfaceType |
getInterface(java.lang.String name)
Get the InterfaceType defined directly within this ModelPackage with a given name |
java.util.Collection |
getInterfaces()
Get the InterfaceTypes which are defined directly within this ModelPackage. |
Model |
getParentModel()
Get the Model which directly contains this one, if this Package is not contained by another Package. |
ModelPackage |
getParentPackage()
Get the Package which contains this one, if any. |
protected ModelElement.ElementStore |
getSubElementStore(java.lang.Class meClass)
Overridden to return the sub-element ModelElement.ElementStore
into which an object of the class meClass should be stored. |
ModelPackage |
getSubPackage(java.lang.String name)
Get the subpackage of this ModelPackage with a given name |
java.util.Collection |
getSubPackages()
Get the ModelPackages which are subpackages of this one. |
| Methods inherited from class com.ashridgetech.jamda.uml.ModelElement |
add, addStereotype, addTaggedValue, addTaggedValue, addTaggedValues, addTaggedValuesInternal, checkInitialised, checkState, findTaggedValueCollection, getBooleanTaggedValue, getChildElements, getComment, getDescription, getDirectSource, getElement, getElementType, getFullName, getId, getModel, getName, getNsElement, getOriginalSource, getParentElement, getProperties, getStereotypes, getStringTaggedValue, getTaggedValue, getTaggedValues, getXpathContext, hasStereotype, hasTaggedValue, init, initLoad, isInitialised, load, load, load, loadElement, logChange, logger, logger, logLoad, logLoadWarning, logNew, logWarning, removeTaggedValue, select, setComment, setDirectSource, setTaggedValue, setTaggedValue, setTaggedValue, setTaggedValues, stereotype, tag, tagError, toString, type, type, type, xpath, xpathList |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public ModelPackage(Model parentModel,
java.lang.String name)
Model.
public ModelPackage(ModelPackage parentPackage,
java.lang.String name)
ModelPackage.
protected ModelPackage(ru.novosoft.uml.model_management.MPackage mp,
Model parentModel)
protected ModelPackage(ru.novosoft.uml.model_management.MPackage mp,
ModelPackage parentPackage)
| Method Detail |
public ModelPackage getParentPackage()
getParentModel()public Model getParentModel()
#getModelpublic java.util.Collection getSubPackages()
ModelPackages which are subpackages of this one.
ModelPackage objectspublic ModelPackage getSubPackage(java.lang.String name)
name - the name of the required ModelPackage
ModelPackage whose name is name,
or null if there is no such objectpublic java.util.Collection getDataTypes()
DataTypes which are defined within this ModelPackage.
DataType objectspublic DataType getDataType(java.lang.String name)
DataType defined within this ModelPackage with a given name
name - the name of the required DataType
DataType whose name is name,
or null if there is no such objectpublic java.util.Collection getClasses()
ClassTypes which are defined directly within this ModelPackage.
ClassType objectspublic ClassType getClass(java.lang.String name)
ClassType defined directly within this ModelPackage with a given name
name - the name of the required ClassType
ClassType whose name is name,
or null if there is no such objectpublic java.util.Collection getInterfaces()
InterfaceTypes which are defined directly within this ModelPackage.
InterfaceType objectspublic InterfaceType getInterface(java.lang.String name)
InterfaceType defined directly within this ModelPackage with a given name
name - the name of the required InterfaceType
InterfaceType whose name is name,
or null if there is no such object
public void checkValid()
throws java.lang.IllegalStateException
checkValid in class ModelElementjava.lang.IllegalStateException - if a problem is foundprotected ModelElement.ElementStore getSubElementStore(java.lang.Class meClass)
ModelElement.ElementStore
into which an object of the class meClass should be stored.
getSubElementStore in class ModelElement
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||