Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.nwalsh.saxon
Class UnwrapLinks  view UnwrapLinks download UnwrapLinks.java

java.lang.Object
  extended bycom.nwalsh.saxon.UnwrapLinks

public class UnwrapLinks
extends java.lang.Object

Saxon extension for unwrapping nested links

$Id: UnwrapLinks.java,v 1.1 2002/06/26 11:02:05 nwalsh Exp $

Copyright (C) 2000, 2002 Norman Walsh.

This class provides a Saxon 6.* implementation of a link unwrapper.

Change Log:

1.0

Initial release.

Version:
$Id: UnwrapLinks.java,v 1.1 2002/06/26 11:02:05 nwalsh Exp $

Field Summary
private static boolean foStylesheet
          True if the stylesheet is producing formatting objects
 
Constructor Summary
UnwrapLinks()
          Constructor for UnwrapLinks
 
Method Summary
protected static java.lang.String getVariable(Context context, java.lang.String varName)
          Find the string value of a stylesheet variable or parameter
private static void setupUnwrapLinks(Context context)
          Setup the parameters associated with unwrapping links
static NodeSetValue unwrapLinks(Context context, NodeSetValue rtf_ns)
          Unwrap links
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

foStylesheet

private static boolean foStylesheet
True if the stylesheet is producing formatting objects

Constructor Detail

UnwrapLinks

public UnwrapLinks()

Constructor for UnwrapLinks

All of the methods are static, so the constructor does nothing.

Method Detail

getVariable

protected static java.lang.String getVariable(Context context,
                                              java.lang.String varName)

Find the string value of a stylesheet variable or parameter

Returns the string value of varName in the current context. Returns the empty string if the variable is not defined.


setupUnwrapLinks

private static void setupUnwrapLinks(Context context)

Setup the parameters associated with unwrapping links


unwrapLinks

public static NodeSetValue unwrapLinks(Context context,
                                       NodeSetValue rtf_ns)

Unwrap links