Operation |
Details |
public clearCache():void |
Sequential Tags: | throws=TechnicalException
| Notes: | Clear validation database. | |
public createCache():void |
Sequential Tags: | throws=TechnicalException
| Notes: | Create validation cache. | |
private getConnection():Connection |
Sequential Tags: | throws=TechnicalException
| Notes: | Initialize Connection to database. | |
public static getInstance():ValidationSchemaCache |
Sequential Tags: | throws=TechnicalException
| Notes: | Get a singleton instance. @return The singleton. | |
public getLastRefreshDate():Date |
Sequential |
private getPhaseTemplate():Transformer |
Sequential Tags: | throws=TechnicalException
| Notes: | Get the xslt template for extracting the phases. @return phase template. | |
public getPrecompiledSchema( String context, String contentType, String validationPoint):String |
Sequential Tags: | throws=TechnicalException,ValidationSchemaNotFoundException
| Notes: | Retrieve the precompiled schematron validation schema according to the given schemaName and content-type. @param schemaName The escidoc schemaName id. @param contentModel The escidoc content-type. @return The validation schema as xml. | |
public getPrecompiledTransformer( String context, String contentType, String validationPoint):Transformer |
Sequential Tags: | throws=TechnicalException,ValidationSchemaNotFoundException
| Notes: | Retrieve the precompiled schematron validation schema according to the given schemaName and content-type. @param schemaName The escidoc schemaName id. @param contentModel The escidoc content-type. @return The validation schema as xml. | |
private getSchematronTemplate():Transformer |
Sequential Tags: | throws=TechnicalException
| Notes: | Get the schematron skeleton template from the database. @return Schematron skeleton template. | |
public getValidationSchema( String schemaName, String contentModel):String |
Sequential Tags: | throws=TechnicalException,ValidationSchemaNotFoundException
| Notes: | Retrieve the precompiled schematron validation schema according to the given schemaName and content model. @return The validation schema as xml. | |
public getValidationSchemaId( String context):String |
Sequential |
private insertConeContent( String schema):String |
Sequential |
public static main( String[] args):void |
Sequential Notes: | Main method for testing. | |
private precompile( String context, String contentType, String metadataVersion):void |
Sequential Tags: | throws=TechnicalException,ValidationSchemaNotFoundException
| Notes: | Precompile a validation schema. @param schemaName The escidoc schemaName id. @param contentModel The escidoc content-type. | |
private precompileAll():void |
Sequential Tags: | throws=TechnicalException
| Notes: | Precompile every validation schema in the database. | |
public refreshCache():void |
Sequential Tags: | throws=TechnicalException
| Notes: | Update the cache from the main repository. | |
public refreshCache( Date lastRefresh):void |
Sequential Notes: | Update the cache from the main repository. | |
public resetCache():void |
Sequential Tags: | throws=TechnicalException
| Notes: | Resets the validation schema cache database. | |
private retrieveNewSchemas( Date lastRefresh):void |
Sequential |
public setLastRefreshDate( Date lastRefreshDate):void |
Sequential |
public setValidationSchema( String schemaName, String contentModel, String content):void |
Sequential Tags: | throws=TechnicalException,ValidationSchemaNotFoundException
| Notes: | Retrieve the precompiled schematron validation schema according to the given schemaName and content model. @return The validation schema as xml. | |
private transformSchema( String schema, String context, String contentType, String metadataVersion):void |
Sequential Tags: | throws=TechnicalException,SQLException
| Notes: | Internal method to store the preecompiled Template for each phase into the database. @param schemaId The schema uid. | |
private ValidationSchemaCache(): |
Sequential Tags: | throws=TechnicalException
| Notes: | Constructor is hidden. An instance can be retrieved by calling getInstance. | |