Interface ModelFamily

All Superinterfaces:
Type

public interface ModelFamily extends Type
Uniquely describes a family of model types, such as the core models available in 2c8 Modeling Tool, or for example UML diagrams.
  • Method Details

    • addModelType

      boolean addModelType(ModelType modelType)
      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

      boolean removeModelType(ModelType modelType)
      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

      boolean addSymbolType(SymbolType symbolType)
      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

      boolean removeSymbolType(SymbolType symbolType)
      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

      boolean addEdgeType(EdgeType edgeType)
      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

      boolean removeEdgeType(EdgeType edgeType)
      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

      List<ModelType> 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

      List<EdgeType> getEdgeTypes()
      Returns the relation types available in the family.
      Returns:
      a list of edge types