org.modeldriven.fuml.repository.model
Class ModelFactory
java.lang.Object
org.modeldriven.fuml.repository.model.ModelFactory
public class ModelFactory
- extends Object
|
Method Summary |
Association |
createAssociation(String name,
String id)
|
Association |
createAssociation(String name,
String id,
Property[] members)
|
Property[] |
createAssociationEnds(Association assoc,
String ends)
|
Class_ |
createClass(String name,
String id,
Package pkg)
|
ValueSpecification |
createDefault(Property prop,
Object value,
String instance,
String id,
String xmiType,
String typeId)
|
Enumeration |
createEnumeration(String name,
String id)
|
EnumerationLiteral |
createEnumerationLiteral(Enumeration enumeration,
String name,
String id)
|
Generalization |
createGeneralization(Class_ c,
String general)
|
LiteralInteger |
createLowerValue(Property p,
boolean hasLowerValue,
String value)
|
Package |
createPackage(String name,
String qualifiedName,
String id,
Package parent,
RepositoryArtifact artifact)
|
Package |
createPackage(String name,
String qualifiedName,
String id,
RepositoryArtifact artifact)
|
PrimitiveType |
createPrimitiveType(String name,
String id)
|
Property |
createProperty(Association assoc,
String name,
String id,
String typeName,
String subsettedProperty,
String redefinedProperty,
boolean readOnly,
boolean derived,
boolean derivedUnion)
|
Property |
createProperty(Class_ c,
String name,
String id,
String typeName,
String redefinedProperty,
boolean readOnly,
boolean derived,
boolean derivedUnion)
|
Property |
createProperty(String name,
String id,
String typeName,
String redefinedProperty,
boolean readOnly,
boolean derived,
boolean derivedUnion)
|
LiteralSpecification |
createUpperValue(Property p,
boolean hasUpperValue,
String value)
multiplicity examples
---------------------------------------
1 - Default if omitted
* - zero or more
1..* - 1 or more
0..1 - zero or 1
2..5 - At least 2 and up to 5
2,5 - 2 or 5
n - Unknown at compile time
--------------------------------------- |
ModelFactory
public ModelFactory(RepositoryMapping mapping,
Repository model)
createPackage
public Package createPackage(String name,
String qualifiedName,
String id,
RepositoryArtifact artifact)
createPackage
public Package createPackage(String name,
String qualifiedName,
String id,
Package parent,
RepositoryArtifact artifact)
createClass
public Class_ createClass(String name,
String id,
Package pkg)
createEnumeration
public Enumeration createEnumeration(String name,
String id)
createPrimitiveType
public PrimitiveType createPrimitiveType(String name,
String id)
createAssociation
public Association createAssociation(String name,
String id,
Property[] members)
createAssociation
public Association createAssociation(String name,
String id)
createAssociationEnds
public Property[] createAssociationEnds(Association assoc,
String ends)
createGeneralization
public Generalization createGeneralization(Class_ c,
String general)
createProperty
public Property createProperty(Class_ c,
String name,
String id,
String typeName,
String redefinedProperty,
boolean readOnly,
boolean derived,
boolean derivedUnion)
createProperty
public Property createProperty(Association assoc,
String name,
String id,
String typeName,
String subsettedProperty,
String redefinedProperty,
boolean readOnly,
boolean derived,
boolean derivedUnion)
createProperty
public Property createProperty(String name,
String id,
String typeName,
String redefinedProperty,
boolean readOnly,
boolean derived,
boolean derivedUnion)
createLowerValue
public LiteralInteger createLowerValue(Property p,
boolean hasLowerValue,
String value)
createUpperValue
public LiteralSpecification createUpperValue(Property p,
boolean hasUpperValue,
String value)
- multiplicity examples
---------------------------------------
1 - Default if omitted
* - zero or more
1..* - 1 or more
0..1 - zero or 1
2..5 - At least 2 and up to 5
2,5 - 2 or 5
n - Unknown at compile time
---------------------------------------
- Parameters:
p - hasUpperValue - value -
createDefault
public ValueSpecification createDefault(Property prop,
Object value,
String instance,
String id,
String xmiType,
String typeId)
createEnumerationLiteral
public EnumerationLiteral createEnumerationLiteral(Enumeration enumeration,
String name,
String id)
Copyright © 2012. All Rights Reserved.