Interface Resolvable

All Known Implementing Classes:
BookmarkData, DestinationData, LinkResolver, PageViewport, UnresolvedPageNumber

public interface Resolvable
Resolvable Interface. Classes that implement this interface contain idrefs (see Section 5.11 of spec for definition of <idref> datatype) that are resolved when their target IDs are added to the area tree.
  • Method Summary

    Modifier and Type
    Method
    Description
    Get the array of idrefs of this resolvable object.
    boolean
    Check if this area has been resolved.
    void
    This method allows the Resolvable object to resolve one of its unresolved idrefs with the actual set of PageViewports containing the target ID.
  • Method Details

    • isResolved

      boolean isResolved()
      Check if this area has been resolved.
      Returns:
      true once this area is resolved
    • getIDRefs

      String[] getIDRefs()
      Get the array of idrefs of this resolvable object. If this object contains child resolvables that are resolved through this then it should return the idref's of the child also.
      Returns:
      the id references for resolving this object
    • resolveIDRef

      void resolveIDRef(String id, List<PageViewport> pages)
      This method allows the Resolvable object to resolve one of its unresolved idrefs with the actual set of PageViewports containing the target ID. The Resolvable object initially identifies to the AreaTreeHandler which idrefs it needs resolved. After the idrefs are resolved, the ATH calls this method to allow the Resolvable object to update itself with the PageViewport information.
      Parameters:
      id - an ID matching one of the Resolvable object's unresolved idref's.
      pages - the list of PageViewports with the given ID