aspoev.manager.schema
Class ContextVersioningManager

java.lang.Object
  extended byaspoev.manager.schema.SchemaManager
      extended byaspoev.manager.schema.ContextVersioningManager

public class ContextVersioningManager
extends SchemaManager


Field Summary
protected  java.util.LinkedList contexts
           
 
Fields inherited from class aspoev.manager.schema.SchemaManager
defaultSchema, reassignedTypes, SCHEMA_EXTENT, substitutibleTypes
 
Constructor Summary
ContextVersioningManager()
           
 
Method Summary
 void addContext(Context context)
           
 void addType(TypeReferenceElement newType)
          Submits a new version of a type, or a new type entirely to the schema manager.
 TypeReferenceElement getActiveVersion(TypeReferenceElement type)
          This method returns the version of the argument type that is active or preferred in the current context ('context' to be defined and evaluated by the schema manager).
 void prefabricatedInit()
          For demo, so we don't have to init the contexts each time.
protected  Context resolveContext()
           
 java.lang.String toString()
           
 
Methods inherited from class aspoev.manager.schema.SchemaManager
alteredFieldReferenced, alteredMethodReferenced, assignableFrom, bindType, compareTypes, declareSubstitutable, fieldExposed, fieldOverridden, getEquivalentTypes, getReassignedType, getSchemaExtent, getSubstitutableTypes, getTypeExtent, isSubstitutibleFor, methodExposed, methodOverridden, print, reclassifyType, removedFieldReferenced, removedMethodReferenced, removeType, renamedMemberReferenced, renamedTypeReferenced, setSchemaExtent, transitionFrom, typeMismatch, unknownField, unknownMethod
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

contexts

protected java.util.LinkedList contexts
Constructor Detail

ContextVersioningManager

public ContextVersioningManager()
Method Detail

prefabricatedInit

public void prefabricatedInit()
For demo, so we don't have to init the contexts each time.


addContext

public void addContext(Context context)

addType

public void addType(TypeReferenceElement newType)
Description copied from class: SchemaManager
Submits a new version of a type, or a new type entirely to the schema manager. Implementing strategies must define how this addition affects the schema. Default implementation simply adds the type or version to the schema.

Overrides:
addType in class SchemaManager

getActiveVersion

public TypeReferenceElement getActiveVersion(TypeReferenceElement type)
Description copied from class: SchemaManager
This method returns the version of the argument type that is active or preferred in the current context ('context' to be defined and evaluated by the schema manager). Default implementation returns the most current version of the argument type which is present in the schema. Implementing strategies should override this method to reflect the appropriate type.

Overrides:
getActiveVersion in class SchemaManager

resolveContext

protected Context resolveContext()

toString

public java.lang.String toString()