ST-Developer Java Reference

com.steptools.stdev
Class SchemaBase

java.lang.Object
  extended by com.steptools.stdev.SchemaBase

public abstract class SchemaBase
extends Object

Represents an EXPRESS schema.

This class must be extended by an EXPRESS class to provide a comcrete implementation of the schema. Within the namespace for the schema, the extention class is named Schema.


Constructor Summary
protected SchemaBase()
           
 
Method Summary
 StaticEntityDomain findEntityDomain(String name)
          Gets the EntityDomain within the schema.
static SchemaBase forName(String name)
          Gets the schema with the specified name
 String getName()
          Gets the name of the schema
protected abstract  PopulationBase newPopulation(Model mod, Object id)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaBase

protected SchemaBase()
Method Detail

forName

public static SchemaBase forName(String name)
                          throws SchemaNotFoundException,
                                 SchemaStructureException
Gets the schema with the specified name

Parameters:
name - The name to search for.
Returns:
The requested schema.
Throws:
SchemaNotFoundException - the requested schema could not be located.
SchemaStructureException - The schema classes are incompatible with this class library.

newPopulation

protected abstract PopulationBase newPopulation(Model mod,
                                                Object id)

getName

public String getName()
Gets the name of the schema


findEntityDomain

public StaticEntityDomain findEntityDomain(String name)
                                    throws DomainNotFoundException,
                                           SchemaStructureException
Gets the EntityDomain within the schema.

Parameters:
name - The name of the entity to find.
Returns:
The requested EntityDomain
Throws:
DomainNotFoundException - The requested domain could not be found
SchemaStructureException - Malformed schema classes.

ST-Developer Java Reference