|
ArcGIS Server Geoportal extension 10
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.esri.gpt.framework.xml.XsltTemplate
public class XsltTemplate
Repesents a compiled XSLT transformation stylesheet.
| Constructor Summary | |
|---|---|
XsltTemplate()
Default constructor. |
|
| Method Summary | |
|---|---|
protected void |
compileFromResourcePath(String resourcePath)
Compiles the XSLT based upon a relative resource path. |
protected void |
compileFromSystemId(String systemId)
Compiles the XSLT based upon a system path. |
protected String |
getSystemId()
Gets the system id for the XSLT. |
protected Templates |
getTemplates()
Gets the compiled transformer templates. |
static XsltTemplate |
makeFromResourcePath(String resourcePath)
Makes a compiled XSLT template based upon a relative resource path. |
static XsltTemplate |
makeFromSystemId(String systemId)
Makes a compiled XSLT template based upon a system path. |
static XsltTemplate |
makeTemplate(String path)
Makes a template by trying out various mechanisms to find the correct path |
protected void |
setSystemId(String systemId)
Sets the system id for the XSLT. |
protected void |
setTemplates(Templates templates)
Sets the compiled transformer templates. |
Result |
transform(Source source,
Result result,
Map mapParams)
Transforms an xml document using the parameters specified. |
String |
transform(String xml)
Transforms an xml document using the parameters specifiled. |
String |
transform(String xml,
Map mapParams)
Transforms an xml document using the parameters specified. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public XsltTemplate()
| Method Detail |
|---|
protected final String getSystemId()
protected final void setSystemId(String systemId)
systemId - the system idprotected final Templates getTemplates()
protected final void setTemplates(Templates templates)
templates - compiled templates
protected void compileFromResourcePath(String resourcePath)
throws IOException,
TransformerConfigurationException
resourcePath - the relative resource path to XSLT file
IOException - if the is an io problem with the XSLT file
TransformerConfigurationException - if a configuration exception occurs
protected void compileFromSystemId(String systemId)
throws TransformerConfigurationException
systemId - the system path to XSLT file
TransformerConfigurationException - if a configuration exception occurs
public static XsltTemplate makeFromResourcePath(String resourcePath)
throws IOException,
TransformerConfigurationException
resourcePath - the relative resource path to XSLT file
TransformerConfigurationException - if a configuration exception occurs
IOException
public static XsltTemplate makeFromSystemId(String systemId)
throws TransformerConfigurationException
systemId - the system path to XSLT file
TransformerConfigurationException - if a configuration exception occurs
public static XsltTemplate makeTemplate(String path)
throws TransformerConfigurationException
path - or system id
TransformerConfigurationException - when template cannot be made
public String transform(String xml)
throws TransformerException,
TransformerConfigurationException
xml - document to be transformed
TransformerException - if an exception occurs during transformation
TransformerConfigurationException - if a configuration exception occurs
public String transform(String xml,
Map mapParams)
throws TransformerException,
TransformerConfigurationException
xml - document to be transformedmapParams - parameters to be used for transformation (can be null)
TransformerException - if an exception occurs during transformation
TransformerConfigurationException - if a configuration exception occurs
public Result transform(Source source,
Result result,
Map mapParams)
throws TransformerException,
TransformerConfigurationException
source - the sourceresult - the resultmapParams - the map params (can be null)
TransformerException - the transformer exception
TransformerConfigurationException - the transformer configuration exception
|
ArcGIS Server Geoportal extension 10
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||