Package com.helger.schematron.resolve
Class DefaultSchematronIncludeResolver
java.lang.Object
com.helger.schematron.resolve.DefaultSchematronIncludeResolver
- All Implemented Interfaces:
ISchematronIncludeResolver
The default implementation of
ISchematronIncludeResolver using the
DefaultResourceResolver.getResolvedResource(String, String) method
internally.- Author:
- Philip Helger
-
Constructor Summary
ConstructorsConstructorDescriptionDefaultSchematronIncludeResolver(com.helger.commons.io.resource.IReadableResource aResource) DefaultSchematronIncludeResolver(String sBaseHref) -
Method Summary
Modifier and TypeMethodDescriptioncom.helger.commons.io.resource.IReadableResourceResolve the content of the passed href to a resourcetoString()
-
Constructor Details
-
DefaultSchematronIncludeResolver
public DefaultSchematronIncludeResolver(@Nonnull com.helger.commons.io.resource.IReadableResource aResource) -
DefaultSchematronIncludeResolver
-
-
Method Details
-
getBaseHref
-
getResolvedSchematronResource
@Nonnull public com.helger.commons.io.resource.IReadableResource getResolvedSchematronResource(@Nonnull @Nonempty String sHref) throws IOException Description copied from interface:ISchematronIncludeResolverResolve the content of the passed href to a resource- Specified by:
getResolvedSchematronResourcein interfaceISchematronIncludeResolver- Parameters:
sHref- The source href that needs to be resolved relative to some base href- Returns:
- The location of the included href
- Throws:
IOException- In case of a resolution error
-
toString
-