Package nl.siegmann.epublib.domain
Class ResourceReference
- java.lang.Object
-
- nl.siegmann.epublib.domain.ResourceReference
-
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
SpineReference,TitledResourceReference
public class ResourceReference extends java.lang.Object implements java.io.Serializable- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected Resourceresourceprivate static longserialVersionUID
-
Constructor Summary
Constructors Constructor Description ResourceReference(Resource resource)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourcegetResource()java.lang.StringgetResourceId()The id of the reference referred to.voidsetResource(Resource resource)Besides setting the resource it also sets the fragmentId to null.
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
resource
protected Resource resource
-
-
Constructor Detail
-
ResourceReference
public ResourceReference(Resource resource)
-
-
Method Detail
-
getResource
public Resource getResource()
-
setResource
public void setResource(Resource resource)
Besides setting the resource it also sets the fragmentId to null.- Parameters:
resource-
-
getResourceId
public java.lang.String getResourceId()
The id of the reference referred to. null of the reference is null or has a null id itself.- Returns:
- The id of the reference referred to.
-
-