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 TypeMethodDescriptionboolean
addEdgeType
(EdgeType edgeType) Tries to add a relation type to a diagram family.boolean
addModelType
(ModelType modelType) Tries to add a model type to a family.boolean
addSymbolType
(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.boolean
removeEdgeType
(EdgeType edgeType) Removes a relation type from a diagram.boolean
removeModelType
(ModelType modelType) Removes a model type from a family.boolean
removeSymbolType
(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:
true
if the family allowed the adding of the symbol type.
-
removeSymbolType
Removes a symbol type from a diagram.- Parameters:
symbolType
- the type to remove.- Returns:
true
if 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:
true
if the family allowed the adding of the relation type.
-
removeEdgeType
Removes a relation type from a diagram.- Parameters:
edgeType
- the type to remove.- Returns:
true
if 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
-