org.deegree.portal.standard.csw
Class MetadataTransformer
java.lang.Object
org.deegree.portal.standard.csw.MetadataTransformer
public class MetadataTransformer
- extends java.lang.Object
A ${type_name}
class.
TODO class description
- Since:
- 2.0
- Version:
- 2.0, $Revision: 23921 $, $Date: 2010-04-28 11:36:21 +0200 (Mi, 28 Apr 2010) $
- Author:
- Judit Mays, last edited by: $Author: apoth $
Constructor Summary |
MetadataTransformer(java.lang.String filePathName)
Creates a new MetadataTransformer and initializes it with the given file (path and name). |
Method Summary |
java.lang.String |
toString()
|
java.lang.String |
transformMetadata(java.io.Reader metadataXml,
java.lang.String catalog,
java.lang.String[] serviceCatalogs,
int hits,
int startPosition,
java.lang.String metaVersion)
Transforms the context pointed to by context into html using xsltURL |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
MetadataTransformer
public MetadataTransformer(java.lang.String filePathName)
throws java.io.FileNotFoundException
- Creates a new MetadataTransformer and initializes it with the given
file
(path and name).
- Parameters:
filePathName
-
- Throws:
java.io.FileNotFoundException
- , if filePathName does not point to an existing file.
transformMetadata
public java.lang.String transformMetadata(java.io.Reader metadataXml,
java.lang.String catalog,
java.lang.String[] serviceCatalogs,
int hits,
int startPosition,
java.lang.String metaVersion)
throws javax.xml.transform.TransformerException,
java.io.IOException
- Transforms the context pointed to by
context
into html using xsltURL
- Parameters:
metadataXml
- The Reader
containing the xml document to be transformed.catalog
- The name of the catalog.serviceCatalogs
- hits
- The number of records matched for this catalog.startPosition
- The position to start displaying the matched records from.metaVersion
- The version of metadata to transform ( list, overview, detailed ).
- Returns:
- Returns result of transformation.
- Throws:
javax.xml.transform.TransformerException
java.io.IOException
toString
public java.lang.String toString()
- Overrides:
toString
in class java.lang.Object
an open source project founded by lat/lon, Bonn, Germany.
For more information visit: http://www.deegree.org