class: Util

public class: Util
Author: kleinfe1 (initial creation)
Project: Phase: 1.0; Status: Proposed; Version: $Revision: 1981 $ $LastChangedDate: 2009-05-13 17:; Complexity: 1
Dates: Created: 16.07.2009 15:21:06; Modified: 16.07.2009 15:21:06;
Flags: Active: false; IsRoot: false; IsLeaf: false;
Extension Points:
UUID: {EC934AA7-BEA8-4630-8C89-DCDCA2B78BB6}
Helper methods for the transformation service.
 

Goto: Custom Properties, Fields, Methods

See also: CitationTransformationInterface, CommonTransformationInterface, FeedTransformationInterface, MicroTransformationInterface, OtherFormatsTransformationInterface, ThirdPartyTransformationInterface, TransformationBean, TransformationTest

Appears in: transformation

Connections
 
Custom Properties
 
Util Attributes
Attribute Details
private static Logger
  logger
Initial: Logger.getLogger(Util.class)
 
Util Methods
Operation Details
public
containsFormat(
   Format[] formatArray,
   Format format):boolean
Sequential
Notes: Checks if a array contains a specific format object.
@return true if the array contains the format object, else false
public
createFormatsXml(
   Format[] formats):String
Sequential
Notes: Creates a format xml out of a format array.
@return xml as String
public
formatVectorToFormatArray(
   Vector formatsV):Format
Sequential
Notes: Converts a Aormat Vector into a Format Array.
@return Format[]
public
getRidOfDuplicatesInVector(
   Vector dirtyVector):Vector
Sequential
Notes: Eliminates duplicates in a Vector.
@return Vector with unique entries
public
isFormatEqual(
   Format src1,
   Format src2):boolean
Sequential
Notes: Checks if two Format Objects are equal.
@return true if equal, else false
public
mergeFormats(
   Vector allFormatsV):Format
Sequential
Notes: Merges a Vector of Format[] into Format[].
@return Format[]
public
normalizeMimeType(
   String mimetype):String
Sequential
Notes: Normalizes a given mimetype
@return
public static
queryCone(
   String model,
   String query):Node
Sequential
Notes: Queries CoNE service and returns the result as DOM node. The returned XML has the following structure:
<cone>
<author>
<familyname>Buxtehude-Mölln</familyname>
<givenname>Heribert</givenname>
<prefix>von und zu</prefix>
<title>König</title>
</author>
<author>
<familyname>Müller</familyname>
<givenname>Peter</givenname>
</author>
</authors>
@param authors
@return
public
simpleLiteralTostring(
   SimpleLiteral sl):String
Sequential
Notes: Converts a simpleLiteral Objects into a String Object.
@return String