Class TitledResourceReference
java.lang.Object
nl.siegmann.epublib.domain.ResourceReference
nl.siegmann.epublib.domain.TitledResourceReference
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GuideReference, TOCReference
- See Also:
-
Field Summary
FieldsFields inherited from class ResourceReference
resource -
Constructor Summary
ConstructorsConstructorDescriptionTitledResourceReference(Resource resource) TitledResourceReference(Resource resource, String title) TitledResourceReference(Resource resource, String title, String fragmentId) -
Method Summary
Modifier and TypeMethodDescriptionIf the fragmentId is blank it returns the resource href, otherwise it returns the resource href + '#' + the fragmentId.getTitle()voidsetFragmentId(String fragmentId) voidsetResource(Resource resource) Sets the resource to the given resource and sets the fragmentId to null.voidsetResource(Resource resource, String fragmentId) voidMethods inherited from class ResourceReference
getResource, getResourceId
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
fragmentId
-
title
-
-
Constructor Details
-
TitledResourceReference
-
TitledResourceReference
-
TitledResourceReference
-
-
Method Details
-
getFragmentId
-
setFragmentId
-
getTitle
-
setTitle
-
getCompleteHref
If the fragmentId is blank it returns the resource href, otherwise it returns the resource href + '#' + the fragmentId.- Returns:
- If the fragmentId is blank it returns the resource href, otherwise it returns the resource href + '#' + the fragmentId.
-
setResource
-
setResource
Sets the resource to the given resource and sets the fragmentId to null.- Overrides:
setResourcein classResourceReference- Parameters:
resource-
-