Class ValidationContext
java.lang.Object
com.adobe.epubcheck.opf.ValidationContext
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classBuilds a newValidationContextfrom various member objects or by copying a parent context.static final classUtility to createPredicates applying toValidationContextinstances. -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal com.google.common.base.Optional<OCFContainer> The OCF Package the resource being validated belongs to.final FeatureReportUsed to report some features of the validated resource, without logging.final LocaleThe locale used to log validation messages.final StringThe media type of the validated resource.final com.google.common.base.Optional<OPFItem> The Package Document item for the validated resource.final com.google.common.base.Optional<OverlayTextChecker> The src checker for media overlay text elements, absent for single-file validationfinal StringThe path to the validated resource.final EPUBProfileThe validation profile in use (e.g.The set of properties associated to the resource being validated.final Set<PublicationType> The set of 'dc:type' values declared at the OPF level.final com.google.common.base.Optional<ReferenceRegistry> The references registry, absent for single-file validationfinal ReportThe report object used to log validation messages.final GenericResourceProviderUsed to open resource streams.final com.google.common.base.Optional<ResourceRegistry> The publication resource registry, absent for single-file validation.final io.mola.galimatias.URLThe URL of the validated resource.final EPUBVersionThe EPUB version being used for validation. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate -
Method Summary
Modifier and TypeMethodDescriptionprivate Stringcopy()getMimeType(io.mola.galimatias.URL url) booleanisRemote(io.mola.galimatias.URL url) static final ValidationContext.ValidationContextBuilderof(io.mola.galimatias.URL url) relativize(io.mola.galimatias.URL url) static final ValidationContext.ValidationContextBuildertest()
-
Field Details
-
url
public final io.mola.galimatias.URL urlThe URL of the validated resource. Guaranteed non-null. -
path
The path to the validated resource. Guaranteed non-null. -
mimeType
The media type of the validated resource. Guaranteed non-null. -
version
The EPUB version being used for validation. Guaranteed non-null. -
profile
The validation profile in use (e.g. DEFAULT, EDUPUB, etc.). Guaranteed non-null. -
report
The report object used to log validation messages. Guaranteed non-null. -
locale
The locale used to log validation messages. Guaranteed non-null. -
featureReport
Used to report some features of the validated resource, without logging. Guaranteed non-null. -
resourceProvider
Used to open resource streams. Guaranteed non-null. -
opfItem
The Package Document item for the validated resource. Is absent if there is no item representing this resource in the Package Document. -
container
The OCF Package the resource being validated belongs to. Is absent for single-file validations. -
resourceRegistry
The publication resource registry, absent for single-file validation. -
referenceRegistry
The references registry, absent for single-file validation -
overlayTextChecker
The src checker for media overlay text elements, absent for single-file validation -
pubTypes
The set of 'dc:type' values declared at the OPF level. Guaranteed non-null, can be empty. -
properties
-
-
Constructor Details
-
ValidationContext
-
-
Method Details
-
computePath
-
copy
-
isRemote
public boolean isRemote(io.mola.galimatias.URL url) -
relativize
-
of
-
test
-
getMimeType
-