com.bluestream.sys.xml.util.link
Interface LinkResolver


public interface LinkResolver


Method Summary
 void fixupLinks(String xml, String template, String baseSrcPath, com.bluestream.sys.xml.pipeline.UriFixup uriFixup)
          Same as above except makes callback to the UriFixup interface to map templated links (as opposed to using PathFixupEngine and target map)
 void fixupLinks(String xml, com.bluestream.sys.xml.util.link.TemplateResolver templateResolver, com.bluestream.sys.xml.util.link.TargetMap targMap, String baseSrcPath, String relativeUriTarg)
          String xml: target xml LinkFixupList lfl: Initialized by caller previous to making this call String basePath: Used for resolving relative paths of Source link targets.
 Iterator getBoundedObjectSet(String xml, com.bluestream.sys.xml.util.link.TemplateResolver templateResolver, XmlStringResolver resolver, String baseSrcPath, boolean parseDescendants, HashMap hmXmlCache)
          Returns a vector of filenames.
 void registerDHTarget(com.bluestream.sys.xml.xpath.dhengine.DHTarget dht)
          Register you dochandler to accept output SAX events containing fixed up links.
 void setFileDependancy(String fnTarg, String fnDependancy)
          Set a one to many relationship between one non-xml target and 1...n depedancy filenames An example is a dtd file could itself have dependancied on several ent files .
 void setFixup(String template, String baseSrcPath, com.bluestream.sys.xml.pipeline.UriFixup uriFixup)
          Same as above fixupLinks(..), except used when emitting events externally
 

Method Detail

fixupLinks

public void fixupLinks(String xml,
                       com.bluestream.sys.xml.util.link.TemplateResolver templateResolver,
                       com.bluestream.sys.xml.util.link.TargetMap targMap,
                       String baseSrcPath,
                       String relativeUriTarg)
String xml: target xml LinkFixupList lfl: Initialized by caller previous to making this call String basePath: Used for resolving relative paths of Source link targets. IMPORTANT: It is assumed all target path are fully qualified, so base path only applies to relative source paths found in the file we are fixing up. (Ex href='./mydir/myfile' where base path== /mybase results in fully qualified '/mybase/mydir/myfile'


fixupLinks

public void fixupLinks(String xml,
                       String template,
                       String baseSrcPath,
                       com.bluestream.sys.xml.pipeline.UriFixup uriFixup)
Same as above except makes callback to the UriFixup interface to map templated links (as opposed to using PathFixupEngine and target map)

Parameters:
xml -
template -
baseSrcPath -
uriFixup -

setFixup

public void setFixup(String template,
                     String baseSrcPath,
                     com.bluestream.sys.xml.pipeline.UriFixup uriFixup)
Same as above fixupLinks(..), except used when emitting events externally

Parameters:
template -
baseSrcPath -
uriFixup -

registerDHTarget

public void registerDHTarget(com.bluestream.sys.xml.xpath.dhengine.DHTarget dht)
Register you dochandler to accept output SAX events containing fixed up links. If no link fixup performed, events are unchanged.

Parameters:
dht -

getBoundedObjectSet

public Iterator getBoundedObjectSet(String xml,
                                    com.bluestream.sys.xml.util.link.TemplateResolver templateResolver,
                                    XmlStringResolver resolver,
                                    String baseSrcPath,
                                    boolean parseDescendants,
                                    HashMap hmXmlCache)
Returns a vector of filenames. Filenames represent all graphic and xml links found in the file, including descendant links

Parameters:
resolver -
Returns:

setFileDependancy

public void setFileDependancy(String fnTarg,
                              String fnDependancy)
Set a one to many relationship between one non-xml target and 1...n depedancy filenames An example is a dtd file could itself have dependancied on several ent files .

Parameters:
fnTarg -
fnDependancy -


Copyright 2006 Bluestream Database Software Corp. All Rights Reserved.