com.xerox.bantam.util
Class SchemaMap

java.lang.Object
  |
  +--com.xerox.bantam.util.SchemaMap
All Implemented Interfaces:
com.thinkdoc.log.LogConst, Serializable

public class SchemaMap
extends Object
implements Serializable, com.thinkdoc.log.LogConst

Implements a map-based container for Schemas; in some sense, the SchemaMap becomes a "super-Schema", since it has several of the same methods.

Version:
$Revision: 1.5 $, $Date: 2000/07/18 02:12:27 $
Author:
Keith Edwards
See Also:
Serialized Form

Fields inherited from interface com.thinkdoc.log.LogConst
ALERT, APP, CLASS_HIGHEST, CRITICAL, DEBUG, EMERG, ERR, FATAL, HUMAN_LEVEL, INFO, LEVEL_HIGHEST, LOGGING, NOTICE, STORAGE, TEST, WARNING
 
Constructor Summary
SchemaMap()
           
 
Method Summary
 void add(Schema schema)
           
 boolean contains(Schema schema)
           
 boolean containsProperty(String name)
           
 FieldDescriptor getFieldDescriptor(String name)
           
 Schema getSchema(String name)
           
 Schema[] getSchemas()
           
 void remove(Schema schema)
           
 boolean validateDelete(Document doc, String name)
           
 boolean validateSetMulti(Document doc, String name, Collection values)
           
 boolean validateSetMultiSingle(Document doc, String name, Object v)
           
 boolean validateSetSingle(Document doc, String name, Serializable value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaMap

public SchemaMap()
Method Detail

validateSetSingle

public boolean validateSetSingle(Document doc,
                                 String name,
                                 Serializable value)

validateSetMulti

public boolean validateSetMulti(Document doc,
                                String name,
                                Collection values)

validateSetMultiSingle

public boolean validateSetMultiSingle(Document doc,
                                      String name,
                                      Object v)

validateDelete

public boolean validateDelete(Document doc,
                              String name)

containsProperty

public boolean containsProperty(String name)

contains

public boolean contains(Schema schema)

getSchema

public Schema getSchema(String name)

getSchemas

public Schema[] getSchemas()

getFieldDescriptor

public FieldDescriptor getFieldDescriptor(String name)

add

public void add(Schema schema)

remove

public void remove(Schema schema)

Project Harland