@Immutable public class PSBoundSchemaCacheKey extends Object
PSBoundSchemaCache. It is a
combination of a resource and a phase. It is the responsible class for
reading and binding a Schematron resource.| Constructor and Description |
|---|
PSBoundSchemaCacheKey(com.helger.commons.io.resource.IReadableResource aResource,
String sPhase,
IPSErrorHandler aErrorHandler,
XPathVariableResolver aVariableResolver,
XPathFunctionResolver aFunctionResolver) |
| Modifier and Type | Method and Description |
|---|---|
IPSBoundSchema |
createBoundSchema()
The main routine to create a bound schema from the passed resource and
phase.
|
PSSchema |
createPreprocessedSchema(PSSchema aSchema,
IPSQueryBinding aQueryBinding)
Pre-process the read schema, using the determined query binding.
|
PSPreprocessor |
createPreprocessor(IPSQueryBinding aQueryBinding)
Create the pre-processor to be used for
createPreprocessedSchema(PSSchema, IPSQueryBinding). |
boolean |
equals(Object o) |
IPSErrorHandler |
getErrorHandler() |
XPathFunctionResolver |
getFunctionResolver() |
String |
getPhase() |
IPSQueryBinding |
getQueryBinding(PSSchema aSchema)
Determine the query binding for the read schema.
|
com.helger.commons.io.resource.IReadableResource |
getResource() |
XPathVariableResolver |
getVariableResolver() |
int |
hashCode() |
PSSchema |
readSchema(com.helger.commons.io.resource.IReadableResource aResource,
IPSErrorHandler aErrorHandler)
Read the specified schema from the passed resource.
|
String |
toString() |
public PSBoundSchemaCacheKey(@Nonnull com.helger.commons.io.resource.IReadableResource aResource, @Nullable String sPhase, @Nullable IPSErrorHandler aErrorHandler, @Nullable XPathVariableResolver aVariableResolver, @Nullable XPathFunctionResolver aFunctionResolver)
@Nonnull public final com.helger.commons.io.resource.IReadableResource getResource()
null.@Nullable public final String getPhase()
null.@Nullable public final IPSErrorHandler getErrorHandler()
null.@Nullable public final XPathVariableResolver getVariableResolver()
null.@Nullable public final XPathFunctionResolver getFunctionResolver()
null.@Nonnull @OverrideOnDemand public PSSchema readSchema(@Nonnull com.helger.commons.io.resource.IReadableResource aResource, @Nullable IPSErrorHandler aErrorHandler) throws SchematronException
aResource - The resource to read from. Never null.aErrorHandler - The error handler to use. May be null.null.SchematronException - In case there is an error reading.@Nonnull @OverrideOnDemand public IPSQueryBinding getQueryBinding(@Nonnull PSSchema aSchema) throws SchematronException
aSchema - The read schema. Never null.null.SchematronException - In case the determination fails.@Nonnull @OverrideOnDemand public PSPreprocessor createPreprocessor(@Nonnull IPSQueryBinding aQueryBinding)
createPreprocessedSchema(PSSchema, IPSQueryBinding).aQueryBinding - The query binding to be determined from the read schema. Never
null.@Nonnull @OverrideOnDemand public PSSchema createPreprocessedSchema(@Nonnull PSSchema aSchema, @Nonnull IPSQueryBinding aQueryBinding) throws SchematronException
aSchema - The read schema. Never null.aQueryBinding - The determined query binding. Never null.null.SchematronException - In case pre-processing fails@Nonnull public IPSBoundSchema createBoundSchema() throws SchematronException
readSchema(IReadableResource, IPSErrorHandler)getQueryBinding(PSSchema)createPreprocessedSchema(PSSchema, IPSQueryBinding)IPSQueryBinding.bind(PSSchema, String, IPSErrorHandler, javax.xml.xpath.XPathVariableResolver, javax.xml.xpath.XPathFunctionResolver)
null.SchematronException - In case reading or binding fails.Copyright © 2014–2016 Philip Helger. All rights reserved.