public class Uml2Helper extends Base
Modifier and Type | Field and Description |
---|---|
static java.lang.ThreadLocal<Uml2Helper> |
instance |
Constructor and Description |
---|
Uml2Helper() |
Modifier and Type | Method and Description |
---|---|
void |
applyProfile(org.eclipse.uml2.uml.Package pkg,
org.eclipse.uml2.uml.Profile profile) |
org.eclipse.uml2.uml.Association |
createAssociation(org.eclipse.uml2.uml.Type type1,
boolean end1IsNavigable,
org.eclipse.uml2.uml.AggregationKind end1Aggregation,
java.lang.String end1Name,
int end1LowerBound,
int end1UpperBound,
org.eclipse.uml2.uml.Type type2,
boolean end2IsNavigable,
org.eclipse.uml2.uml.AggregationKind end2Aggregation,
java.lang.String end2Name,
int end2LowerBound,
int end2UpperBound) |
org.eclipse.uml2.uml.Property |
createAttribute(org.eclipse.uml2.uml.Class class_,
java.lang.String name,
org.eclipse.uml2.uml.Type type,
int lowerBound,
int upperBound) |
org.eclipse.uml2.uml.Class |
createClass(org.eclipse.uml2.uml.Package nestingPackage,
java.lang.String name,
boolean... isAbstract)
Cria uma Classe.
|
org.eclipse.uml2.uml.Enumeration |
createEnumeration(org.eclipse.uml2.uml.Package pkg,
java.lang.String name) |
org.eclipse.uml2.uml.EnumerationLiteral |
createEnumerationLiteral(org.eclipse.uml2.uml.Enumeration enumeration,
java.lang.String name) |
org.eclipse.uml2.uml.Extension |
createExtension(org.eclipse.uml2.uml.Class metaclass,
org.eclipse.uml2.uml.Stereotype stereotype,
boolean required) |
org.eclipse.uml2.uml.Generalization |
createGeneralization(org.eclipse.uml2.uml.Classifier child,
org.eclipse.uml2.uml.Classifier parent) |
org.eclipse.uml2.uml.Model |
createModel(java.lang.String name) |
org.eclipse.uml2.uml.Operation |
createOperation(org.eclipse.uml2.uml.Classifier klass,
java.lang.String methodName,
org.eclipse.emf.common.util.EList<java.lang.String> parameterNames,
org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Type> parameterTypes,
org.eclipse.uml2.uml.Type returnType) |
org.eclipse.uml2.uml.Package |
createPackage(org.eclipse.uml2.uml.Package nestingPackage,
java.lang.String name) |
org.eclipse.uml2.uml.Profile |
createProfile(java.lang.String name) |
org.eclipse.uml2.uml.Stereotype |
createStereotype(org.eclipse.uml2.uml.Profile prof,
java.lang.String name,
boolean isAbstract) |
void |
err(java.lang.String error) |
org.eclipse.uml2.uml.PackageableElement |
getEnumerationByName(org.eclipse.uml2.uml.Profile profile,
java.lang.String name) |
org.eclipse.uml2.uml.Package |
getExternalResources(java.lang.String uri) |
org.eclipse.uml2.uml.EnumerationLiteral |
getLiteralEnumeration(java.lang.String name) |
org.eclipse.uml2.uml.Type |
getPrimitiveType(java.lang.String typeName) |
org.eclipse.uml2.uml.Profile |
getSMartyProfile() |
org.eclipse.uml2.uml.PackageableElement |
getStereotypeByName(org.eclipse.uml2.uml.Profile prof,
java.lang.String name) |
org.eclipse.uml2.uml.Package |
load(java.lang.String pathAbsolute) |
org.eclipse.uml2.uml.Profile |
loadConcernProfile()
Retorno o Profile Concern.
|
org.eclipse.uml2.uml.Profile |
loadSMartyProfile()
Retorno o Profile SMarty.
|
org.eclipse.uml2.uml.Class |
referenceMetaclass(org.eclipse.uml2.uml.Profile profile,
java.lang.String name) |
void |
saveResources(org.eclipse.uml2.uml.Package package_,
org.eclipse.emf.common.util.URI uri) |
void |
setSMartyProfile() |
getResources
public static java.lang.ThreadLocal<Uml2Helper> instance
public org.eclipse.uml2.uml.Profile createProfile(java.lang.String name)
public void saveResources(org.eclipse.uml2.uml.Package package_, org.eclipse.emf.common.util.URI uri) throws java.io.IOException
java.io.IOException
public org.eclipse.uml2.uml.Generalization createGeneralization(org.eclipse.uml2.uml.Classifier child, org.eclipse.uml2.uml.Classifier parent)
public org.eclipse.uml2.uml.Class createClass(org.eclipse.uml2.uml.Package nestingPackage, java.lang.String name, boolean... isAbstract)
nestingPackage
- name
- isAbstract
- Opcional.public org.eclipse.uml2.uml.Package createPackage(org.eclipse.uml2.uml.Package nestingPackage, java.lang.String name)
public org.eclipse.uml2.uml.Model createModel(java.lang.String name)
public void err(java.lang.String error)
public org.eclipse.uml2.uml.Class referenceMetaclass(org.eclipse.uml2.uml.Profile profile, java.lang.String name) throws ModelNotFoundException
ModelNotFoundException
public org.eclipse.uml2.uml.Extension createExtension(org.eclipse.uml2.uml.Class metaclass, org.eclipse.uml2.uml.Stereotype stereotype, boolean required)
public org.eclipse.uml2.uml.Association createAssociation(org.eclipse.uml2.uml.Type type1, boolean end1IsNavigable, org.eclipse.uml2.uml.AggregationKind end1Aggregation, java.lang.String end1Name, int end1LowerBound, int end1UpperBound, org.eclipse.uml2.uml.Type type2, boolean end2IsNavigable, org.eclipse.uml2.uml.AggregationKind end2Aggregation, java.lang.String end2Name, int end2LowerBound, int end2UpperBound)
public org.eclipse.uml2.uml.Property createAttribute(org.eclipse.uml2.uml.Class class_, java.lang.String name, org.eclipse.uml2.uml.Type type, int lowerBound, int upperBound)
public org.eclipse.uml2.uml.Enumeration createEnumeration(org.eclipse.uml2.uml.Package pkg, java.lang.String name)
public org.eclipse.uml2.uml.EnumerationLiteral createEnumerationLiteral(org.eclipse.uml2.uml.Enumeration enumeration, java.lang.String name)
public org.eclipse.uml2.uml.Package load(java.lang.String pathAbsolute) throws ModelNotFoundException, ModelIncompleteException, SMartyProfileNotAppliedToModelExcepetion
public org.eclipse.uml2.uml.PackageableElement getEnumerationByName(org.eclipse.uml2.uml.Profile profile, java.lang.String name) throws EnumerationNotFoundException
EnumerationNotFoundException
public org.eclipse.uml2.uml.Type getPrimitiveType(java.lang.String typeName) throws ModelNotFoundException
ModelNotFoundException
public org.eclipse.uml2.uml.Stereotype createStereotype(org.eclipse.uml2.uml.Profile prof, java.lang.String name, boolean isAbstract)
public org.eclipse.uml2.uml.PackageableElement getStereotypeByName(org.eclipse.uml2.uml.Profile prof, java.lang.String name) throws StereotypeNotFoundException
StereotypeNotFoundException
public void applyProfile(org.eclipse.uml2.uml.Package pkg, org.eclipse.uml2.uml.Profile profile)
public org.eclipse.uml2.uml.Package getExternalResources(java.lang.String uri)
public org.eclipse.uml2.uml.Profile loadSMartyProfile()
public org.eclipse.uml2.uml.Profile loadConcernProfile()
public org.eclipse.uml2.uml.Profile getSMartyProfile()
public void setSMartyProfile()
public org.eclipse.uml2.uml.EnumerationLiteral getLiteralEnumeration(java.lang.String name) throws EnumerationNotFoundException
EnumerationNotFoundException
public org.eclipse.uml2.uml.Operation createOperation(org.eclipse.uml2.uml.Classifier klass, java.lang.String methodName, org.eclipse.emf.common.util.EList<java.lang.String> parameterNames, org.eclipse.emf.common.util.EList<org.eclipse.uml2.uml.Type> parameterTypes, org.eclipse.uml2.uml.Type returnType)