|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--com.xerox.bantam.util.AbstractDocument
This is a base class for working up a Document. It has some basic functionality, but also implements Document, forcing all of its subclasses to implement that.
| Field Summary | |
protected Schema |
schemaSchema
The magic schema that references all other schemas. |
| Constructor Summary | |
AbstractDocument()
|
|
| Method Summary | |
protected void |
addPersistentSchema(Schema schema)
Add a schema to the persistent schema record. |
protected abstract void |
addSchema(Schema schema)
Add a schema. |
boolean |
clearProperty(FieldDescriptor desc)
Remove all values of a property |
boolean |
containsValue(FieldDescriptor desc,
Serializable val)
Test for existance of a value |
String[] |
get_all_property_names()
Get property names including those for internal properties |
FieldDescriptor[] |
getDescriptors(Schema schema)
Get descriptors of set properties from a schema. |
String[] |
getPropertyNames(String prefix)
Returns all properties with the indicated property name prefix. |
String[] |
getUnenforcedPropertyNames(String prefix)
Get unenforced property names |
protected abstract boolean |
propertyInSchema(String property)
Returns whether the specified property is implicated in any schemas that exist on the document. |
protected void |
removePersistentSchema(Schema schema)
Remove a schema from the permanent schema record. |
boolean |
removeValue(FieldDescriptor desc,
Serializable value)
Remove a value by field descriptor |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.xerox.bantam.Document |
addMultiValue, addMultiValue, clearProperty, conformsTo, containsValue, delete, enforceSchema, enforceSchema, flush, getEnforcedSchemas, getID, getMultiValues, getMultiValues, getName, getPropertyNames, getPropertyValue, getPropertyValue, getStorage, isEnforced, propertyExists, propertyExists, removeValue, setMultiValues, setMultiValues, setName, setPropertyValue, setPropertyValue, unenforceSchema |
| Field Detail |
protected final Schema schemaSchema
| Constructor Detail |
public AbstractDocument()
| Method Detail |
protected abstract void addSchema(Schema schema)
throws StorageException
protected void addPersistentSchema(Schema schema)
throws StorageException
Schema - schema the schema to make persistent.StorageException - problem was detected while adding the
persistent schema
protected void removePersistentSchema(Schema schema)
throws StorageException
Schema - schema the schema to removeStorageException - something went wrong while removing
the persistent schema
public boolean removeValue(FieldDescriptor desc,
Serializable value)
throws StorageException
removeValue in interface Documentcom.xerox.bantam.Documentdesc - field descriptor identifying a property
public boolean clearProperty(FieldDescriptor desc)
throws StorageException
clearProperty in interface Documentcom.xerox.bantam.Documentdesc - field descriptor identifying a property
public boolean containsValue(FieldDescriptor desc,
Serializable val)
throws StorageException
containsValue in interface Documentcom.xerox.bantam.Documentdesc - field descriptor identifying a propertyval - a value to test
public String[] getPropertyNames(String prefix)
throws StorageException
getPropertyNames in interface DocumentString - prefix the prefix to check all names forStorageException - something went wrong in getting the set
of property names
public String[] getUnenforcedPropertyNames(String prefix)
throws StorageException
getUnenforcedPropertyNames in interface Documentcom.xerox.bantam.Documentprefix - prefix to filter with or null
public String[] get_all_property_names()
throws StorageException
get_all_property_names in interface Document
public FieldDescriptor[] getDescriptors(Schema schema)
throws StorageException
getDescriptors in interface Documentschema - the schema to checkprotected abstract boolean propertyInSchema(String property)
String - property property name to test
|
Project Harland | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||