Class LinkedResource
java.lang.Object
com.adobe.epubcheck.opf.LinkedResource
Represents a linked resource in a Package Document, i.e. a resource
referenced from a
link element (either at the package level or
in collections).-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionio.mola.galimatias.URLReturns the URL of the linked resource document, i.e.com.google.common.base.Optional<String> getId()Returns anOptionalcontaining the value of the ID of thelink, orOptional.absent()if the element has no ID.com.google.common.base.Optional<String> Returns anOptionalcontaining the declared media type of this resource as specified in themedia-typeattribute, orOptional.absent()if the media type is not declared.com.google.common.base.Optional<String> Returns anOptionalcontaining the value of therefinesattribute of thelink, orOptional.absent()if the element has no such attribute.getRel()Returns the set of properties defining the nature of the resource, as defined in therelattribute.io.mola.galimatias.URLgetURL()Returns the URL of the linked resource as defined in thehrefattribute of thelinkelement.private static com.google.common.base.Optional<String>
-
Field Details
-
id
-
url
private final io.mola.galimatias.URL url -
rel
-
refines
-
mimetype
-
-
Constructor Details
-
LinkedResource
-
-
Method Details
-
getId
Returns anOptionalcontaining the value of the ID of thelink, orOptional.absent()if the element has no ID. -
getURL
public io.mola.galimatias.URL getURL()Returns the URL of the linked resource as defined in thehrefattribute of thelinkelement. Guaranteed non-null. -
getDocumentURL
public io.mola.galimatias.URL getDocumentURL()Returns the URL of the linked resource document, i.e. the linked URL minus a possible fragment. Guaranteed non-null. -
getRel
-
getRefines
Returns anOptionalcontaining the value of therefinesattribute of thelink, orOptional.absent()if the element has no such attribute. -
getMimeType
Returns anOptionalcontaining the declared media type of this resource as specified in themedia-typeattribute, orOptional.absent()if the media type is not declared. -
optional
-