public abstract class EntityDomain extends Domain
Modifier and Type | Field and Description |
---|---|
protected Set<Attribute> |
all_redecls |
Modifier | Constructor and Description |
---|---|
protected |
EntityDomain() |
Modifier and Type | Method and Description |
---|---|
static EntityDomain |
domain(Collection<StaticEntityDomain> supers)
Gets or (possibly) creates complex domain.
|
static EntityDomain |
domain(StaticEntityDomain[] sups)
Gets or creates (possibly) complex domain.
|
List<Attribute> |
getAllAttributes()
Gets the all the attributes (local and inherited) of this domain.
|
Set<EntityDomain> |
getAllKnownSubtypes()
Gets all the subtypes of this domain.
|
Set<Attribute> |
getAllRedeclaredAttributes()
Gets the list of explicit attributes that are redeclated as derived by
this domain or its supertypes.
|
List<StaticEntityDomain> |
getAllSupertypes()
Gets all the supertypes of the domain.
|
Attribute |
getAttribute(String name)
Finds an attribute by name.
|
abstract Set<EntityDomain> |
getKnownSubtypes()
Gets the immediate subtypes of this domain.
|
Attribute |
getLocalAttribute(String name)
Finds a non-inherited attribute by name.
|
abstract List<Attribute> |
getLocalAttributes()
Gets the immediate (EXPRESS defined) attributes of this domain.
|
abstract List<StaticEntityDomain> |
getLocalSupertypes()
Gets the immediate (EXPRESS defined) supertypes of the domain.
|
boolean |
isAttributeRedeclared(Attribute att)
Determines if the specified attribute is redeclared as derived in this
entity.
|
abstract boolean |
isComplex()
Determines if this domain is an AND-OR domain.
|
boolean |
isEntity() |
abstract boolean |
isInSchema(SchemaBase sch)
Determined if this Domain is a member of this schema.
|
EntityInstance |
newInstance()
Create a new non-persistent instance of the entity
|
abstract EntityInstance |
newInstance(PopulationBase pop)
Creates a new instance of the entity.
|
boolean |
typeIsa(Class cls) |
boolean |
typeIsa(Domain other)
Tests if this Domain is assignable to the other Domain.
|
convert, domainClass, forClass, getName, isAggregate, isBoolean, isEnumeration, isInteger, isLogical, isReal, isSelect, isString
public abstract EntityInstance newInstance(PopulationBase pop)
newXXX
method
on a population
.pop
- The population in which the entity will be created.
null
may be specified to create non-persistent objectspublic EntityInstance newInstance()
public abstract List<StaticEntityDomain> getLocalSupertypes()
public abstract boolean isInSchema(SchemaBase sch)
sch
- The schema we are checkingtrue
If this instance is in the specified schema.public List<StaticEntityDomain> getAllSupertypes()
public abstract List<Attribute> getLocalAttributes()
public List<Attribute> getAllAttributes()
public Attribute getAttribute(String name)
name
- The attribute to search fornull
if not found.public Attribute getLocalAttribute(String name)
name
- The attribute to search fornull
if not found.public boolean typeIsa(Domain other)
Domain
public boolean typeIsa(Class cls) throws DomainNotFoundException
DomainNotFoundException
public abstract Set<EntityDomain> getKnownSubtypes()
public abstract boolean isComplex()
true
If this domain is an AND-OR.public Set<EntityDomain> getAllKnownSubtypes()
public static EntityDomain domain(Collection<StaticEntityDomain> supers)
supers
- The list of supertypes of the domain that needs to be
retrieved. This list may include the types that are themselves subtypes
of other types in the list.public static EntityDomain domain(StaticEntityDomain[] sups)
sups
- Array of supertypes of the domain that needs to be
retrieved. This list may include the types that are themselves subtypes
of other types in the list.public Set<Attribute> getAllRedeclaredAttributes()
public boolean isAttributeRedeclared(Attribute att)
att
- The attribute to check.true
If the attribute is redeclared as derived.