Class TableUsage


public class TableUsage extends TypePart
Describes the model information for a table usage.
  • Constructor Details

    • TableUsage

      public TableUsage(Type parent, Method getter)
  • Method Details

    • getTable

      public ITable<?> getTable(IProductComponent productComponent, Calendar effectiveDate)
      Returns the table the given product component references for this table usage. If this table usage is changing over time (resides in the generation) the date is used to retrieve the correct generation. If the date is null the latest generation is used. If the table usage is not changing over time the date will be ignored.
      Parameters:
      productComponent - The product component that holds the table instance
      effectiveDate - the date to determine the product component generation. If null the latest generation is used. Is ignored if the table usage configuration is not changing over time.
      Returns:
      The table instance hold by the product component and is identified by this table usage
    • getTableStructure

      public TableStructure getTableStructure()
      Returns:
      the model for the table structure referenced in this table usage.
      Throws:
      UnsupportedOperationException - if this table usage uses multiple table structures.
    • toString

      public String toString()
      Overrides:
      toString in class ModelElement