Package se.conciliate.extensions.type
Interface ModelFamily
- All Superinterfaces:
Type
Uniquely describes a family of model types, such as the
core models available in 2c8 Modeling Tool, or for example
UML diagrams.
-
Method Summary
Modifier and TypeMethodDescriptionbooleanaddEdgeType(EdgeType edgeType) Tries to add a relation type to a diagram family.booleanaddModelType(ModelType modelType) Tries to add a model type to a family.booleanaddSymbolType(SymbolType symbolType) Tries to add a symbol type to a diagram family.Returns the relation types available in the family.Returns the model types available in the family.Returns the symbol types available in the family.booleanremoveEdgeType(EdgeType edgeType) Removes a relation type from a diagram.booleanremoveModelType(ModelType modelType) Removes a model type from a family.booleanremoveSymbolType(SymbolType symbolType) Removes a symbol type from a diagram.
-
Method Details
-
addModelType
Tries to add a model type to a family.- Parameters:
modelType- the model type to add.- Returns:
- true if this family added the model type, false otherwise.
-
removeModelType
Removes a model type from a family.- Parameters:
modelType- the model type to remove.- Returns:
- true if the model type was removed, false otherwise.
-
addSymbolType
Tries to add a symbol type to a diagram family.- Parameters:
symbolType- the type to add.- Returns:
trueif the family allowed the adding of the symbol type.
-
removeSymbolType
Removes a symbol type from a diagram.- Parameters:
symbolType- the type to remove.- Returns:
trueif the symbol type was found and the family allowed its removal.
-
addEdgeType
Tries to add a relation type to a diagram family.- Parameters:
edgeType- the type to add.- Returns:
trueif the family allowed the adding of the relation type.
-
removeEdgeType
Removes a relation type from a diagram.- Parameters:
edgeType- the type to remove.- Returns:
trueif the relation type was found and the family allowed its removal.
-
getModelTypes
Returns the model types available in the family.- Returns:
- the model types available in the family.
-
getSymbolTypes
List<SymbolType> getSymbolTypes()Returns the symbol types available in the family.- Returns:
- a list of symbol types
-
getEdgeTypes
Returns the relation types available in the family.- Returns:
- a list of edge types
-