aspoev.manager.schema
Class ContextVersioningManager
java.lang.Object
aspoev.manager.schema.SchemaManager
aspoev.manager.schema.ContextVersioningManager
- public class ContextVersioningManager
- extends SchemaManager
|
Field Summary |
protected java.util.LinkedList |
contexts
|
| 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 |
contexts
protected java.util.LinkedList contexts
ContextVersioningManager
public ContextVersioningManager()
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()