Modifier and Type | Field and Description |
---|---|
protected XMIGenerator |
gen |
protected PetalFile |
tree |
Modifier | Constructor and Description |
---|---|
protected |
XMIFactory() |
protected |
XMIFactory(PetalFile tree,
XMIGenerator gen)
create me with the given PetalFile
|
Modifier and Type | Method and Description |
---|---|
protected void |
addTaggedValue(ru.novosoft.uml.foundation.core.MModelElement element,
String tag,
String value) |
ru.novosoft.uml.foundation.core.MAssociation |
createAssociation(Association assoc) |
ru.novosoft.uml.foundation.core.MAssociationEnd |
createAssociationEnd(Role role) |
ru.novosoft.uml.foundation.core.MAttribute |
createAttribute(ClassAttribute attr) |
ru.novosoft.uml.foundation.core.MClassifier |
createBasicType(String name)
Create classifier for data type not directly contained in the model such as
attribute types like "int".
|
ru.novosoft.uml.foundation.core.MClassifier |
createClass(Class clazz) |
ru.novosoft.uml.foundation.core.MClassifier |
createComponent(Module module) |
ru.novosoft.uml.foundation.core.MDependency |
createDependency(DependencyRelationship rel) |
ru.novosoft.uml.foundation.core.MGeneralization |
createGeneralization(InheritanceRelationship rel) |
ru.novosoft.uml.model_management.MModel |
createModel() |
ru.novosoft.uml.foundation.core.MOperation |
createOperation(Operation op) |
ru.novosoft.uml.model_management.MPackage |
createPackage(ClassCategory cat) |
ru.novosoft.uml.model_management.MPackage |
createPackage(SubSystem sys) |
ru.novosoft.uml.foundation.core.MAbstraction |
createRealization(RealizeRelationship rel) |
ru.novosoft.uml.foundation.core.MClassifier |
createSubSystem(SubSystem sys) |
ru.novosoft.uml.foundation.core.MUsage |
createUsage(UsesRelationship rel) |
ru.novosoft.uml.foundation.core.MClassifier |
createUseCase(UseCase caze) |
protected ru.novosoft.uml.foundation.core.MClassifier |
getClassifierFor(String type)
Look for classifier in model or create a new data type.
|
protected ru.novosoft.uml.foundation.data_types.MMultiplicity |
getMultiplicityFor(Role role) |
protected ru.novosoft.uml.foundation.core.MAssociationEnd |
getRoleFor(Role role) |
protected ru.novosoft.uml.foundation.extension_mechanisms.MStereotype |
getStereotype(String stereo) |
protected String |
makeName(String name)
Convert Rose identifier to normal one.
|
protected String[] |
makeNames(String qual)
Convert fully qualified rose name (with "foo::bar")
|
protected void |
setConcurrency(Operation op,
ru.novosoft.uml.foundation.core.MOperation o) |
protected void |
setStereotype(StereoTyped s,
ru.novosoft.uml.foundation.core.MModelElement e) |
protected void |
setupAssociation(Association assoc,
ru.novosoft.uml.foundation.core.MAssociation a) |
protected void |
setVisibility(AccessQualified a,
ru.novosoft.uml.foundation.core.MModelElement e) |
protected PetalFile tree
protected XMIGenerator gen
protected XMIFactory()
protected XMIFactory(PetalFile tree, XMIGenerator gen)
tree
- gen
- public ru.novosoft.uml.model_management.MModel createModel()
protected final ru.novosoft.uml.foundation.extension_mechanisms.MStereotype getStereotype(String stereo)
public ru.novosoft.uml.model_management.MPackage createPackage(ClassCategory cat)
public ru.novosoft.uml.model_management.MPackage createPackage(SubSystem sys)
protected void setStereotype(StereoTyped s, ru.novosoft.uml.foundation.core.MModelElement e)
protected void setVisibility(AccessQualified a, ru.novosoft.uml.foundation.core.MModelElement e)
protected void setConcurrency(Operation op, ru.novosoft.uml.foundation.core.MOperation o)
public ru.novosoft.uml.foundation.core.MClassifier createClass(Class clazz)
public ru.novosoft.uml.foundation.core.MClassifier createUseCase(UseCase caze)
public ru.novosoft.uml.foundation.core.MClassifier createComponent(Module module)
public ru.novosoft.uml.foundation.core.MClassifier createSubSystem(SubSystem sys)
public ru.novosoft.uml.foundation.core.MClassifier createBasicType(String name)
protected ru.novosoft.uml.foundation.core.MClassifier getClassifierFor(String type)
public ru.novosoft.uml.foundation.core.MAttribute createAttribute(ClassAttribute attr)
protected void addTaggedValue(ru.novosoft.uml.foundation.core.MModelElement element, String tag, String value)
public ru.novosoft.uml.foundation.core.MOperation createOperation(Operation op)
public ru.novosoft.uml.foundation.core.MGeneralization createGeneralization(InheritanceRelationship rel)
public ru.novosoft.uml.foundation.core.MAbstraction createRealization(RealizeRelationship rel)
public ru.novosoft.uml.foundation.core.MUsage createUsage(UsesRelationship rel)
public ru.novosoft.uml.foundation.core.MDependency createDependency(DependencyRelationship rel)
protected ru.novosoft.uml.foundation.data_types.MMultiplicity getMultiplicityFor(Role role)
protected ru.novosoft.uml.foundation.core.MAssociationEnd getRoleFor(Role role)
public ru.novosoft.uml.foundation.core.MAssociationEnd createAssociationEnd(Role role)
role
- protected void setupAssociation(Association assoc, ru.novosoft.uml.foundation.core.MAssociation a)
public ru.novosoft.uml.foundation.core.MAssociation createAssociation(Association assoc)
Copyright © 2018 BITPlan GmbH. All rights reserved.