|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.fop.datatypes.IDReferences
IDReferences contains a map of IDs and the objects to which they refer. It also contains a list of references to IDs which have yet to be encountered. Modified by Mark Lillywhite mark-fop@inomial.com. Added getInvalidElements() so that StreamRenderer can tell what hasn't been determined yet. Modified by lmckenzi@ca.ibm.com Sometimes IDs are created, but not validated. This code fixes the incorrect complaint that the ID already exists which prevents basic-links from working (sometimes).
Constructor Summary | |
IDReferences()
Constructor for IDReferences |
Method Summary | |
void |
addToIdValidationList(java.lang.String id)
Adds id to validation list to be validated. |
void |
addToUnvalidatedIdList(java.lang.String id)
Adds created id list of unvalidated ids that have already been created. |
void |
configureID(java.lang.String id,
Area area)
Configures this id |
void |
createID(java.lang.String id)
Creates id entry |
java.lang.String |
createInternalLinkGoTo(java.lang.String id,
int objectNumber)
creates an Internal Link GoTo object for this id |
void |
createNewId(java.lang.String id)
Adds an id to IDReferences |
void |
createUnvalidatedID(java.lang.String id)
Creates id entry that hasn't been validated |
boolean |
doesGoToReferenceExist(java.lang.String id)
Determines whether the GoTo reference for the specified id is defined |
boolean |
doesIDExist(java.lang.String id)
Determines whether specified id already exists in IDReferences |
boolean |
doesUnvalidatedIDExist(java.lang.String id)
Determines whether specified id already exists in idUnvalidated |
java.lang.String |
getDestinationRef(java.lang.String id)
Returns a destination reference for the node with the specified id. |
java.lang.String |
getInternalLinkGoToReference(java.lang.String id)
Returns the reference to the GoTo object used for the internal link |
java.util.Iterator |
getInvalidElements()
|
java.lang.String |
getInvalidIds()
Returns all invalid id's still remaining in the validation list |
java.lang.String |
getPageNumber(java.lang.String id)
Returns the page number where the specified id is found |
PDFGoTo |
getPDFGoTo(java.lang.String id)
Returns the PDFGoTo object for the specified id |
void |
initializeID(java.lang.String id,
Area area)
Creates and configures the specified id. |
boolean |
isEveryIdValid()
Determines whether all id's are valid |
void |
removeFromIdValidationList(java.lang.String id)
Removes id from validation list. |
void |
removeFromUnvalidatedIDList(java.lang.String id)
Removes id from list of unvalidated ids. |
void |
removeID(java.lang.String id)
Removes id from IDReferences |
void |
setInternalGoToPageReference(java.lang.String id,
java.lang.String pageReference)
sets the page reference for the internal link's GoTo. |
void |
setPageNumber(java.lang.String id,
java.lang.String pageNumber)
Sets the page number for the specified id |
void |
setPosition(java.lang.String id,
int x,
int y)
Sets the x and y position of specified id |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public IDReferences()
Method Detail |
public void initializeID(java.lang.String id, Area area) throws FOPException
id
- The id to initializearea
- The area where this id was encountered
FOPException
public void createID(java.lang.String id) throws FOPException
id
- The id to create
FOPException
public void createUnvalidatedID(java.lang.String id)
id
- The id to createpublic void addToUnvalidatedIdList(java.lang.String id)
id
- The id to createpublic void removeFromUnvalidatedIDList(java.lang.String id)
id
- The id to removepublic boolean doesUnvalidatedIDExist(java.lang.String id)
id
- The id to search for
public void configureID(java.lang.String id, Area area)
id
- The id to configurearea
- The area where the id was encounteredpublic void addToIdValidationList(java.lang.String id)
id
- id to be addedpublic void removeFromIdValidationList(java.lang.String id)
id
- the id to removepublic void removeID(java.lang.String id)
id
- The id to removepublic boolean isEveryIdValid()
public java.lang.String getInvalidIds()
public boolean doesIDExist(java.lang.String id)
id
- the id to search for
public boolean doesGoToReferenceExist(java.lang.String id)
id
- the id to search for
public java.lang.String getInternalLinkGoToReference(java.lang.String id)
id
- the id whose reference to use
public java.lang.String createInternalLinkGoTo(java.lang.String id, int objectNumber)
id
- The id for which to set the Internal Link Go ToobjectNumber
- The object number to use for the GoTo object
public void createNewId(java.lang.String id)
id
- the id to addpublic PDFGoTo getPDFGoTo(java.lang.String id)
id
- the id for which the PDFGoTo to be retrieved is associated
public void setInternalGoToPageReference(java.lang.String id, java.lang.String pageReference)
pageReference
- the page reference to which the internal link GoTo should jump
ex. 23 0 Rpublic void setPageNumber(java.lang.String id, java.lang.String pageNumber)
id
- The id whose page number is being setpageNumber
- The page number of the specified idpublic java.lang.String getPageNumber(java.lang.String id)
id
- The id whose page number to return
public void setPosition(java.lang.String id, int x, int y)
id
- the id whose position is to be setx
- x position of idy
- y position of idpublic java.util.Iterator getInvalidElements()
public java.lang.String getDestinationRef(java.lang.String id)
id
- The id whose destination reference to return
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |