de.init.its.process
Class ItsStyleProcessor

java.lang.Object
  extended by de.init.its.process.ItsStyleProcessor

public class ItsStyleProcessor
extends java.lang.Object

Service class to provide the style section node for an ODT file and the appropriate style mapping

Author:
mkandora

Method Summary
static ItsStyleProcessor getProcessor()
          Returns a singleton instance of the styleprocessor uninitialized
static ItsStyleProcessor getProcessor(boolean init)
          Returns an instance of the ItsStyleProcessor using an optional initializing
 java.lang.String getStyleId(IitsTagElement element)
          Returns the style id for an IitsTagElement
 java.lang.String getStyleId(ItsAttributes.DataCategories dc)
          Returns the style id
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getProcessor

public static ItsStyleProcessor getProcessor(boolean init)
Returns an instance of the ItsStyleProcessor using an optional initializing

Parameters:
init - boolean flag to indicate initializing (reseting ids, reload style configuration)
Returns:
the instance

getProcessor

public static ItsStyleProcessor getProcessor()
Returns a singleton instance of the styleprocessor uninitialized

Returns:

getStyleId

public java.lang.String getStyleId(ItsAttributes.DataCategories dc)
Returns the style id

Parameters:
dc - the data category to look for a style
Returns:
the style id as string

getStyleId

public java.lang.String getStyleId(IitsTagElement element)
Returns the style id for an IitsTagElement

Parameters:
element -
Returns: