public class DestinationData extends AbstractOffDocumentItem implements Resolvable
AFTER_PAGE, END_OF_DOC, IMMEDIATELY, START_OF_DOC, whenToProcess
Constructor and Description |
---|
DestinationData(Destination destination)
Create a new pdf destination data object.
|
DestinationData(java.lang.String idRef)
Create a new named destination.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getIDRef()
Get the idref for this destination
|
java.lang.String[] |
getIDRefs()
Get the array of idrefs of this resolvable object.
|
java.lang.String |
getName()
Return a human-readable name for this ODI (for error messages, etc.)
|
PageViewport |
getPageViewport()
Get the PageViewport object that this destination refers to
|
boolean |
isResolved()
Check if this resolvable object has been resolved.
|
void |
resolveIDRef(java.lang.String id,
java.util.List<PageViewport> pages)
Resolves the idref of this object by getting the PageViewport
object that corresponds to the IDRef
This method allows the Resolvable object to resolve one of
its unresolved idrefs with the actual set of PageViewports
containing the target ID.
TODO check to make sure it works if multiple bookmark-items
have the same idref
|
getWhenToProcess
public DestinationData(Destination destination)
destination
- the fo:bookmark objectpublic DestinationData(java.lang.String idRef)
idRef
- the id reference of the destinationpublic java.lang.String getIDRef()
public java.lang.String[] getIDRefs()
getIDRefs
in interface Resolvable
public PageViewport getPageViewport()
public boolean isResolved()
isResolved
in interface Resolvable
public void resolveIDRef(java.lang.String id, java.util.List<PageViewport> pages)
resolveIDRef
in interface Resolvable
id
- an ID matching one of the Resolvable object's
unresolved idref's.pages
- the list of PageViewports with the given IDpublic java.lang.String getName()
getName
in interface OffDocumentItem
getName
in class AbstractOffDocumentItem
Copyright 1999-2012 The Apache Software Foundation. All Rights Reserved.