Esri Geoportal Server
1.0

com.esri.gpt.catalog.arcims
Class EsriIsoTranslator

java.lang.Object
  extended by com.esri.gpt.catalog.arcims.EsriIsoTranslator

public class EsriIsoTranslator
extends Object

Handles the translation of documents to EsriIso format.

When a schema is neither FGDC or ISO19115, the document must be translated to ISO19115 and enclosed as a binary node prior to publishing to the ArcIMS metdata server.

The translation process uses a Java implementation of a metadata document transformation mechanism developed for ArcGIS Desktop.

The underlying files for the process are stored within: gpt/metadata/ArcGIS_Translator

The API for translation is found within esri-translator.jar.


Constructor Summary
EsriIsoTranslator()
          Default constructor.
 
Method Summary
 String transformAndEnclose(String uuid, String fileIdentifier, String originalXml, String toEsriIsoXslt)
          Transforma an original XML string to EsriIso format, then encloses the original XML as a base64 node with the EsriIso document.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EsriIsoTranslator

public EsriIsoTranslator()
Default constructor.

Method Detail

transformAndEnclose

public String transformAndEnclose(String uuid,
                                  String fileIdentifier,
                                  String originalXml,
                                  String toEsriIsoXslt)
                           throws TransformerException,
                                  ParserConfigurationException,
                                  SAXException,
                                  IOException
Transforma an original XML string to EsriIso format, then encloses the original XML as a base64 node with the EsriIso document.

Parameters:
uuid - the document UUID
fileIdentifier - the file identifier
originalXml - the original XML string for the metadata document
toEsriIsoXslt - the path to an XSLT that generates the EsriIso document
Returns:
the EsriIso document
Throws:
TransformerException - if a transformation exception occurs
ParserConfigurationException - if a configuration exception occurs
SAXException - if an exception occurs during XML parsing
IOException - if an i/o exception occurs

Esri Geoportal Server
1.0

Copyright 2011 Environmental Systems Research Institute. All rights reserved. Use is subject to license terms.