Top Description Fields Constructors Methods
com.sun.org.apache.xerces.internal.jaxp.validation

pack-priv final Class WeakReferenceXMLSchema

extends AbstractXMLSchema
Class Inheritance
Imports
java.lang.ref.WeakReference, com.sun.org.apache.xerces.internal.xni.grammars.XMLGrammarPool

An implementation of Schema for W3C XML Schemas that keeps a weak reference to its grammar pool. If no validators currently have a reference to the grammar pool, the garbage collector is free to reclaim its memory.

Author
Michael Glavassevich, IBM

Field Summary

Modifier and TypeField and Description
private WeakReference<XMLGrammarPool>
fGrammarPool

Weak reference to grammar pool.

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public synchronized XMLGrammarPool
getGrammarPool()

Implements com.sun.org.apache.xerces.internal.jaxp.validation.XSGrammarPoolContainer.getGrammarPool.

Returns the grammar pool contained inside the container.

public boolean
isFullyComposed()

Implements com.sun.org.apache.xerces.internal.jaxp.validation.XSGrammarPoolContainer.isFullyComposed.

Returns whether the schema components contained in this object can be considered to be a fully composed schema and should be used to the exclusion of other schema components which may be present elsewhere.

Inherited from com.sun.org.apache.xerces.internal.jaxp.validation.AbstractXMLSchema:
getFeaturegetPropertynewValidatornewValidatorHandlersetFeaturesetProperty

Field Detail

fGrammarPoolback to summary
private WeakReference<XMLGrammarPool> fGrammarPool

Weak reference to grammar pool.

Constructor Detail

WeakReferenceXMLSchemaback to summary
public WeakReferenceXMLSchema()

Method Detail

getGrammarPoolback to summary
public synchronized XMLGrammarPool getGrammarPool()

Implements com.sun.org.apache.xerces.internal.jaxp.validation.XSGrammarPoolContainer.getGrammarPool.

Doc from com.sun.org.apache.xerces.internal.jaxp.validation.XSGrammarPoolContainer.getGrammarPool.

Returns the grammar pool contained inside the container.

Returns:XMLGrammarPool

the grammar pool contained inside the container

isFullyComposedback to summary
public boolean isFullyComposed()

Implements com.sun.org.apache.xerces.internal.jaxp.validation.XSGrammarPoolContainer.isFullyComposed.

Doc from com.sun.org.apache.xerces.internal.jaxp.validation.XSGrammarPoolContainer.isFullyComposed.

Returns whether the schema components contained in this object can be considered to be a fully composed schema and should be used to the exclusion of other schema components which may be present elsewhere.

Returns:boolean

whether the schema components contained in this object can be considered to be a fully composed schema