com.xerox.bantam.util
Class SchemaSchema

java.lang.Object
  |
  +--com.xerox.bantam.Schema
        |
        +--com.xerox.bantam.util.SchemaSchema
All Implemented Interfaces:
Serializable

public class SchemaSchema
extends Schema

This is the schema for all documents that have persistent schemas on them. This schema is used to remember what other schemas are in effect.

The SchemaSchema lets a document persistently remember what schemas have been applied to it. AddSchema(), removeSchema(), etc should all muck with properties under this schema.

There are many possible ways to implement this. One could have the schema list be names which refer to singleton documents that persistently represent *particular* schemas (for example, a document that represents the fields of the ContentSchema or the ResourceSchema).

But currently our schemas are all "pure code," so I haven't taken this approach. Instead, the SchemaSchema remembers the fully-qualified class names of the SchemaDescriptors used to generate the schemas that are applied to it.

This may change in the future...

Version:
$Revision: 1.4 $, $Date: 2000/03/09 23:41:55 $
Author:
Keith Edwards
See Also:
Serialized Form

Inner classes inherited from class com.xerox.bantam.Schema
Schema.fieldCompare
 
Field Summary
static FieldDescriptor schemas
           
 
Fields inherited from class com.xerox.bantam.Schema
name, version
 
Constructor Summary
protected SchemaSchema()
           
 
Method Summary
static Schema getSchema()
           
 
Methods inherited from class com.xerox.bantam.Schema
equals, getFields, getName, getSchema, getSchema, getSchemaFields, getVersion, parse, size, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

schemas

public static final FieldDescriptor schemas
Constructor Detail

SchemaSchema

protected SchemaSchema()
Method Detail

getSchema

public static Schema getSchema()

Project Harland