|
BEA Systems, Inc. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--weblogic.apache.xerces.validators.datatype.DatatypeValidatorFactoryImpl
This class implements a factory of Datatype Validators. Internally the
DatatypeValidators are kept in a registry.
There is one instance of DatatypeValidatorFactoryImpl per Parser.
There is one datatype Registry per instance of DatatypeValidatorFactoryImpl,
such registry is first allocated with the number DatatypeValidators needed.
e.g.
If Parser finds an XML document with a DTD, a registry of DTD validators (only
9 validators) get initialized in the registry.
The initialization process consist of instantiating the Datatype and
facets and registering the Datatype into registry table.
This implementatio uses a Hahtable as a registry table but future implementation
should use a lighter object, maybe a Map class ( not use a derived Map class
because of JDK 1.1.8 no supporting Map).
As the Parser parses an instance document it knows if validation needs
to be checked. If no validation is necesary we should not instantiate a
DatatypeValidatorFactoryImpl.
If validation is needed, we need to instantiate a DatatypeValidatorFactoryImpl.
Constructor Summary | |
DatatypeValidatorFactoryImpl()
|
Method Summary | |
DatatypeValidator |
createDatatypeValidator(java.lang.String typeName,
DatatypeValidator base,
java.util.Hashtable facets,
boolean list)
|
DatatypeValidator |
createDatatypeValidator(java.lang.String typeName,
java.util.Vector validators)
|
void |
expandRegistryToFullSchemaSet()
|
DatatypeValidator |
getDatatypeValidator(java.lang.String type)
|
void |
initializeDTDRegistry()
Initializes registry with primitive and derived Simple types. |
void |
resetRegistry()
An optimization option that we should write in the future is to separate the static list of Datatype Validators from the dynamic part where anonymous, and user derived datatype are kept, then when we resetRegistry only the dynamic part of the registry should be cleared. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public DatatypeValidatorFactoryImpl()
Method Detail |
public void initializeDTDRegistry()
registrySet
- public void expandRegistryToFullSchemaSet()
public void resetRegistry()
public DatatypeValidator createDatatypeValidator(java.lang.String typeName, DatatypeValidator base, java.util.Hashtable facets, boolean list) throws InvalidDatatypeFacetException
public DatatypeValidator createDatatypeValidator(java.lang.String typeName, java.util.Vector validators)
public DatatypeValidator getDatatypeValidator(java.lang.String type)
|
Documentation is available at http://e-docs.bea.com/wls/docs61 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |