class: ThirdPartyTransformation

public class: ThirdPartyTransformation
Author: Friederike Kleinfercher (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 1953 $ $LastChangedDate: 2009-05-07 10:; Complexity: 1
Dates: Created: 16.07.2009 15:21:01; Modified: 16.07.2009 15:21:01;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {42925A3F-A67E-47b3-BE0E-3AD913FA9827}
Handles all transformations for third party metadata records.
 

Goto: Custom Properties, Fields, Methods

See also: DataSourceHandlerBean, ThirdPartyTransformationInterface

Appears in: thirdPartyFormats

Connections
 
Custom Properties
 
ThirdPartyTransformation Attributes
Attribute Details
private const Logger
  logger
Initial: Logger.getLogger(ThirdPartyTransformation.class)
private const String
  METADATA_XSLT_LOCATION
Initial: "transformations/thirdParty/xslt"
private static Properties
  properties
 
ThirdPartyTransformation Methods
Operation Details
public
checkXsltTransformation(
   String formatFrom,
   String formatTo):boolean
Sequential
private static
getInputStream(
   String filepath):InputStream
Sequential
Tags: throws=IOException
Notes: Retrieves the Inputstream of the given file path. First the resource is searched in the file system, if this fails it is searched using the classpath.
@return The inputstream of the given file path.
public
getProperty(
   String key):String
Sequential
Tags: throws=IOException,URISyntaxException
Notes: Gets the value of a property for the given key from the escidoc property file.
@return The value of the property.
public
ThirdPartyTransformation():
Sequential
Notes: Public constructor.
public
xsltTransform(
   String formatFrom,
   String formatTo,
   String itemXML):String
Sequential
Tags: throws=RuntimeException
Notes: Metadata transformation method.
@return transformed metadata as String