Oxygen XML Editor, Version ${standalone-version-number}

ro.sync.sample.plugin.converter
Class ConversionManager

java.lang.Object
  extended by ro.sync.sample.plugin.converter.ConversionManager

public class ConversionManager
extends Object

Contain all formats.

Version:
$Revision: 1.31 $

Field Summary
static String CONFIG_RESOURCE
          The path to conversion.xml file.
 
Constructor Summary
ConversionManager()
          Extract all formats from configuration file.
 
Method Summary
 Boolean getDefaultValueAsBoolean(String key)
          Gets the defaultValueAsBoolean attribute of the ConversionManager object
 String getDefaultValueAsString(String key)
          Gets the defaultValueAsString attribute of the ConversionManager object
 ConversionFormat getFormatByName(String formatName)
          Gets a conversion format by name.
 List getFormats()
          Return all formats.
 String getStringResource(String key)
          Gets the stringResource attribute of the ConversionManager object
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

CONFIG_RESOURCE

public static String CONFIG_RESOURCE
The path to conversion.xml file.

Constructor Detail

ConversionManager

public ConversionManager()
                  throws IOException,
                         ConversionException
Extract all formats from configuration file.

Throws:
IOException - Thrown when conversion.xml file not found.
ConversionException - Thrown when invalid format is found.
Method Detail

getFormats

public List getFormats()
Return all formats.

Returns:
All formats.

getFormatByName

public ConversionFormat getFormatByName(String formatName)
Gets a conversion format by name. If format not found then return null.

Parameters:
formatName - The format name.
Returns:
The conversion format

getStringResource

public String getStringResource(String key)
Gets the stringResource attribute of the ConversionManager object

Parameters:
key - Description of Parameter
Returns:
The stringResource value

getDefaultValueAsString

public String getDefaultValueAsString(String key)
Gets the defaultValueAsString attribute of the ConversionManager object

Parameters:
key - Description of Parameter
Returns:
The defaultValueAsString value

getDefaultValueAsBoolean

public Boolean getDefaultValueAsBoolean(String key)
Gets the defaultValueAsBoolean attribute of the ConversionManager object

Parameters:
key - Description of Parameter
Returns:
The defaultValueAsBoolean value

Oxygen XML Editor, Version ${standalone-version-number}

© Copyright Syncro Soft SRL 2002 - 2010.