public class DomainModel extends Object
| Modifier and Type | Field and Description |
|---|---|
Map<Table,Composite> |
composites
Maps each table to the composite where the table is the main table.
|
| Constructor and Description |
|---|
DomainModel(DataModel dataModel)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
check()
Checks model invariants:
two different domains are disjoint.
|
Composite |
getComposite(Table table)
Gets composite in which a given table is contained.
|
Domain |
getDomain(Table table)
Gets domain of table.
|
Map<String,Domain> |
getDomains()
Gets all domains.
|
String |
toString()
Stringifies the model.
|
public Map<String,Domain> getDomains()
public Domain getDomain(Table table)
table - the tablenull, if table belongs to no domainpublic Composite getComposite(Table table)
table - the tablepublic boolean check()
true if no errors are found