|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.colle.xml.Transformation
Information regarding a transformation. This object is immutable and contains static information found in a transformation such as processing instructions and a stylesheet. Created: 30 Dec 2001
Constructor Summary | |
Transformation(URL pxStylesheetURL,
String psRootNode)
Constructs a transformation with a path to the stylesheet. |
Method Summary | |
static void |
addDataPath(String psRootNode,
String psDataPath,
Set pxDataPaths)
Adds the specfied datapath and all the parent datapaths it implies to the specified set of datapaths. |
String |
getContentType()
Returns the mime type of the output based on the output method and media type. |
Set |
getDataPaths()
Returns an unmodifiable set of xpath strings representing each object requested by this transformation through process instructions. |
String |
getFileExtension()
Returns the common file extension based on the content type. |
String |
getOutputMediaType()
Returns the output method as defined in the xsl:output tag. |
String |
getOutputMethod()
Returns the output method as defined in the xsl:output tag. |
org.jdom.ProcessingInstruction |
getProcessingInstruction(String psTarget)
Returns the processing instruction identified by the given target. |
Map |
getProcessingInstructions()
Returns an unmodifiable map of processing instructions keyed by the PI's target. |
(package private) static javax.xml.transform.TransformerFactory |
getTransformerFactory()
|
boolean |
isStandalone()
Returns true if this transformation is to be used only without a controller. |
boolean |
isUnauthenticated()
Returns true if this transformation can be viewed by an unauthenticated (anonymous) operator. |
void |
transform(javax.xml.transform.Source pxSource,
javax.xml.transform.Result pxResult)
Performs this transformation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Transformation(URL pxStylesheetURL, String psRootNode) throws FileNotFoundException
pxStylesheetURL
- location of the stylesheetpsRootNode
- name of the root element of the document this
stylesheet processes. Typically the main template will have a selection
on this node (ie: <xsl:template match="/{psRootNode}" ...).Method Detail |
static javax.xml.transform.TransformerFactory getTransformerFactory()
public static void addDataPath(String psRootNode, String psDataPath, Set pxDataPaths)
public boolean isStandalone()
public boolean isUnauthenticated()
public Set getDataPaths()
public String getOutputMethod()
public String getOutputMediaType()
public Map getProcessingInstructions()
public org.jdom.ProcessingInstruction getProcessingInstruction(String psTarget)
public String getContentType()
public String getFileExtension()
public void transform(javax.xml.transform.Source pxSource, javax.xml.transform.Result pxResult)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |