Class ValidationContext


  • public final class ValidationContext
    extends java.lang.Object
    Holds various contextual objects used during validation. This validation context is notalby used by Checker instances.
    • Field Detail

      • url

        public final io.mola.galimatias.URL url
        The URL of the validated resource. Guaranteed non-null.
      • path

        public final java.lang.String path
        The path to the validated resource. Guaranteed non-null.
      • mimeType

        public final java.lang.String mimeType
        The media type of the validated resource. Guaranteed non-null.
      • version

        public final EPUBVersion version
        The EPUB version being used for validation. Guaranteed non-null.
      • profile

        public final EPUBProfile profile
        The validation profile in use (e.g. DEFAULT, EDUPUB, etc.). Guaranteed non-null.
      • report

        public final Report report
        The report object used to log validation messages. Guaranteed non-null.
      • locale

        public final java.util.Locale locale
        The locale used to log validation messages. Guaranteed non-null.
      • featureReport

        public final FeatureReport featureReport
        Used to report some features of the validated resource, without logging. Guaranteed non-null.
      • resourceProvider

        public final GenericResourceProvider resourceProvider
        Used to open resource streams. Guaranteed non-null.
      • opfItem

        public final com.google.common.base.Optional<OPFItem> opfItem
        The Package Document item for the validated resource. Is absent if there is no item representing this resource in the Package Document.
      • container

        public final com.google.common.base.Optional<OCFContainer> container
        The OCF Package the resource being validated belongs to. Is absent for single-file validations.
      • resourceRegistry

        public final com.google.common.base.Optional<ResourceRegistry> resourceRegistry
        The publication resource registry, absent for single-file validation.
      • referenceRegistry

        public final com.google.common.base.Optional<ReferenceRegistry> referenceRegistry
        The references registry, absent for single-file validation
      • overlayTextChecker

        public final com.google.common.base.Optional<OverlayTextChecker> overlayTextChecker
        The src checker for media overlay text elements, absent for single-file validation
      • pubTypes

        public final java.util.Set<PublicationType> pubTypes
        The set of 'dc:type' values declared at the OPF level. Guaranteed non-null, can be empty.
      • properties

        public final java.util.Set<Property> properties
        The set of properties associated to the resource being validated.