com.steptools.stdev
Class StaticEntityDomain

java.lang.Object
  extended by com.steptools.stdev.Domain
      extended by com.steptools.stdev.EntityDomain
          extended by com.steptools.stdev.StaticEntityDomain

public final class StaticEntityDomain
extends EntityDomain

Represents the domain for entities for which an EXPRESS class is provided.


Constructor Summary
StaticEntityDomain(java.lang.Class ifc, java.lang.Class imp, java.lang.Class prt, Attribute[] atts, Attribute[] redl)
           
 
Method Summary
 java.util.Set getAllRedeclaredAttributes()
          Gets the list of explicit attributes that are redeclated as derived by this domain or its supertypes.
 EntityDomain[] getKnownSubtypes()
          Gets the immediate subtypes of this domain.
 Attribute[] getLocalAttributes()
          Gets the immediate (EXPRESS defined) attributes of this domain.
 StaticEntityDomain[] getLocalSupertypes()
          Gets the immediate (EXPRESS defined) supertypes of the domain.
 boolean isComplex()
          Determines if this domain is an AND-OR domain.
 boolean isInSchema(SchemaBase sch)
          Determined if this Domain is a member of this schema.
 EntityInstance newInstance(PopulationBase sect)
          Creates a new instance of the entity.
 
Methods inherited from class com.steptools.stdev.EntityDomain
domain, domain, getAllAttributes, getAllKnownSubtypes, getAllSupertypes, getAttribute, getLocalAttribute, isAttributeRedeclared, isEntity, newInstance, typeIsa
 
Methods inherited from class com.steptools.stdev.Domain
getName, isAggregate, isBoolean, isEnumeration, isInteger, isLogical, isReal, isSelect, isString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StaticEntityDomain

public StaticEntityDomain(java.lang.Class ifc,
                          java.lang.Class imp,
                          java.lang.Class prt,
                          Attribute[] atts,
                          Attribute[] redl)
                   throws SchemaStructureException
Throws:
SchemaStructureException
Method Detail

isInSchema

public boolean isInSchema(SchemaBase sch)
Description copied from class: EntityDomain
Determined if this Domain is a member of this schema.

Specified by:
isInSchema in class EntityDomain
Parameters:
sch - The schema we are checking
Returns:
true If this instance is in the specified schema.

getKnownSubtypes

public EntityDomain[] getKnownSubtypes()
Description copied from class: EntityDomain
Gets the immediate subtypes of this domain. A subtype is known if it has been instances of it have been created, or it has otherwise been initialized. Due to the just-in-time class loading provided by the JVM, and the fact that complex (AND-OR) objects can be created dynamically, it may not be possible to determine all of the subtypes of this domain. This will, however, include at least all of the the subtypes for which instances exist in memory.

Specified by:
getKnownSubtypes in class EntityDomain
Returns:
The list of subtypes.

isComplex

public boolean isComplex()
Description copied from class: EntityDomain
Determines if this domain is an AND-OR domain.

Specified by:
isComplex in class EntityDomain
Returns:
false

getLocalAttributes

public Attribute[] getLocalAttributes()
Description copied from class: EntityDomain
Gets the immediate (EXPRESS defined) attributes of this domain.

Specified by:
getLocalAttributes in class EntityDomain
Returns:
The list of attributes.

getLocalSupertypes

public StaticEntityDomain[] getLocalSupertypes()
                                        throws SchemaStructureException
Description copied from class: EntityDomain
Gets the immediate (EXPRESS defined) supertypes of the domain.

Specified by:
getLocalSupertypes in class EntityDomain
Returns:
The list of supertypes.
Throws:
SchemaStructureException

newInstance

public EntityInstance newInstance(PopulationBase sect)
                           throws SchemaStructureException
Description copied from class: EntityDomain
Creates a new instance of the entity. This method provides a late-bound interface for creating instances. The preferred, early bound interface for creating instances is to call the newXXX method on a population.

Specified by:
newInstance in class EntityDomain
Parameters:
sect - The population in which the entity will be created. null may be specified to create non-persistent objects
Returns:
The newly created instance.
Throws:
SchemaStructureException

getAllRedeclaredAttributes

public java.util.Set getAllRedeclaredAttributes()
Description copied from class: EntityDomain
Gets the list of explicit attributes that are redeclated as derived by this domain or its supertypes.

Overrides:
getAllRedeclaredAttributes in class EntityDomain
Returns:
A set containing those Attribues that are declared