com.steptools.stdev
Class SchemaBase

java.lang.Object
  extended by com.steptools.stdev.SchemaBase
Direct Known Subclasses:
Schema

public abstract class SchemaBase
extends java.lang.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.


Method Summary
 EntityDomain findEntityDomain(java.lang.String name)
          Gets the EntityDomain within the schema.
static SchemaBase forName(java.lang.String name)
          Gets the schema with the specified name
 java.lang.String getName()
          Gets the name of the schema
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

forName

public static SchemaBase forName(java.lang.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.

getName

public java.lang.String getName()
Gets the name of the schema


findEntityDomain

public EntityDomain findEntityDomain(java.lang.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.