public class Uml13ModelFactory extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
STEREOTYPE_ELEMENT
The stereotype that indicates the ELEMENT declarations in the XSD
|
| Constructor and Description |
|---|
Uml13ModelFactory(javax.jmi.reflect.RefPackage extent) |
| Modifier and Type | Method and Description |
|---|---|
UmlAssociation |
constructAssociation(Classifier thisClass,
String thisRole,
int thisEndUpper,
boolean isComposition,
boolean isThisNavigable,
Classifier otherClass,
String otherRole,
int otherEndUpper,
Namespace namespace,
String documentation) |
Attribute |
constructAttribute(String name) |
UmlClass |
constructClass(Namespace namespace,
String simpleTypeName) |
UmlClass |
constructClass(String simpleTypeName) |
DataType |
constructDataType(String dataTypeName)
Construct the data type with the name
|
Dependency |
constructDependency(ModelElement client,
ModelElement supplier,
String name) |
Classifier |
constructException(String qualifiedName)
Instantiate a public exception with the qualified name provided, but the Exceptions might be messed with the regular classes so they
are registered as DataTypes at the model level instead of UnlExceprion-s when they are also
reverse engineered.
|
Expression |
constructExpression(String body) |
void |
constructGeneralization(Classifier subClass,
Classifier superClass) |
Interface |
constructInterface(Namespace umlPackage,
String name)
This method creates the public interface in the package provided
|
Multiplicity |
constructMultiplicity(int otherEndUpper) |
Operation |
constructOperation(String name) |
UmlPackage |
constructPackage(Name name) |
UmlPackage |
constructPackage(String name) |
Parameter |
constructParameter(String name) |
void |
constructStereotype(ModelElement extendedElement,
String name) |
void |
constructStereotypeElement(ModelElement extendedElement) |
void |
constructTag(ModelElement modelElement,
String name,
String value) |
void |
constructTagDocumentation(ModelElement otherClass,
String contents) |
void |
constructTagFieldPrecision(ModelElement intoClass,
int precision) |
void |
constructTagPersistent(UmlClass intoClass) |
void |
constructTagPrimaryKey(Attribute attribute,
int order) |
void |
constructTagSize(ModelElement intoClass,
int parseInt) |
TaggedValue |
getTaggedValue(ModelElement modelElement,
String tagName) |
ModelElement |
locateLocalModelElement(Namespace namespace,
String elementName)
This method locates the model element with name provided in elementName within the UML
namespace outerPackage .
|
javax.jmi.reflect.RefObject |
locateModelElement(Name<?> name)
Locate the model element using its qualified Name in this model object.
|
javax.jmi.reflect.RefObject |
locateModelElement(Namespace namespace,
Name<?> name)
Locate the model element using its Name in this model object.
|
javax.jmi.reflect.RefObject |
locateModelElement(String qualifiedName)
Locate the model element using its qualified name in this model object.
|
void |
setModelName(String modelName) |
public static final String STEREOTYPE_ELEMENT
public Uml13ModelFactory(javax.jmi.reflect.RefPackage extent)
public void setModelName(String modelName)
public UmlAssociation constructAssociation(Classifier thisClass, String thisRole, int thisEndUpper, boolean isComposition, boolean isThisNavigable, Classifier otherClass, String otherRole, int otherEndUpper, Namespace namespace, String documentation)
public Multiplicity constructMultiplicity(int otherEndUpper)
public UmlClass constructClass(String simpleTypeName)
public UmlClass constructClass(Namespace namespace, String simpleTypeName)
public DataType constructDataType(String dataTypeName)
dataTypeName - is the non-null type namepublic Attribute constructAttribute(String name)
public Parameter constructParameter(String name)
public Expression constructExpression(String body)
public Interface constructInterface(Namespace umlPackage, String name)
umlPackage - the containing packagename - is the name of the interface to createpublic Classifier constructException(String qualifiedName)
qualifiedName - of the exception to be createdpublic Operation constructOperation(String name)
public void constructGeneralization(Classifier subClass, Classifier superClass)
public Dependency constructDependency(ModelElement client, ModelElement supplier, String name)
public UmlPackage constructPackage(String name)
public UmlPackage constructPackage(Name name)
name - not null name of the UML package to lookup/constructpublic void constructStereotypeElement(ModelElement extendedElement)
public void constructStereotype(ModelElement extendedElement, String name)
public TaggedValue getTaggedValue(ModelElement modelElement, String tagName)
tagName - a non-null tag namepublic void constructTagDocumentation(ModelElement otherClass, String contents)
public void constructTag(ModelElement modelElement, String name, String value)
public void constructTagFieldPrecision(ModelElement intoClass, int precision)
public void constructTagSize(ModelElement intoClass, int parseInt)
public void constructTagPersistent(UmlClass intoClass)
public void constructTagPrimaryKey(Attribute attribute, int order)
public javax.jmi.reflect.RefObject locateModelElement(String qualifiedName) throws IllegalArgumentException
qualifiedName - is a non-empty string with the qualified name of a model elementIllegalArgumentExceptionpublic javax.jmi.reflect.RefObject locateModelElement(Name<?> name) throws IllegalArgumentException
name - is a non-empty qualified name of a model elementIllegalArgumentExceptionpublic javax.jmi.reflect.RefObject locateModelElement(Namespace namespace, Name<?> name) throws IllegalArgumentException
namespace - not null namespace to look for the namename - not null element nameIllegalArgumentException - when not foundpublic ModelElement locateLocalModelElement(Namespace namespace, String elementName)
elementName - is a non-null nameCopyright © 2001–2018 MDA Tools. All rights reserved.