fr.opensagres.xdocreport.converter
Class Options

java.lang.Object
  extended by fr.opensagres.xdocreport.converter.Options

public class Options
extends Object


Method Summary
 Options from(DocumentKind from)
           
 Options from(String from)
           
 String getFrom()
           
static Options getFrom(DocumentKind from)
           
static Options getFrom(String from)
           
 Object getProperty(String name)
           
 Object getSubOptions(Class<?> subOptionsClass)
           
 String getTo()
           
static Options getTo(ConverterTypeTo to)
           
static Options getTo(String to)
           
 String getVia()
           
 boolean hasProperty(String name)
           
 void setProperty(String name, Object value)
           
 Options subOptions(Object subOptionsValue)
          Set sub-options specific to some stage of processing.
 Options to(ConverterTypeTo to)
           
 Options to(String to)
           
 Options via(ConverterTypeVia via)
           
 Options via(String via)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getFrom

public static Options getFrom(DocumentKind from)

getFrom

public static Options getFrom(String from)

getTo

public static Options getTo(ConverterTypeTo to)

getTo

public static Options getTo(String to)

getFrom

public String getFrom()

from

public Options from(String from)

from

public Options from(DocumentKind from)

getTo

public String getTo()

to

public Options to(String to)

to

public Options to(ConverterTypeTo to)

getVia

public String getVia()

via

public Options via(String via)

via

public Options via(ConverterTypeVia via)

getSubOptions

public Object getSubOptions(Class<?> subOptionsClass)

subOptions

public Options subOptions(Object subOptionsValue)
Set sub-options specific to some stage of processing. In example to pass options to pdf converter use construction like Options.getTo(ConverterTypeTo.PDF).via(ConverterTypeVia.ITEXT).subOptions(PDFViaITextOptions.create().fontEncoding("windows-1250"))

Parameters:
subOptionsValue - sub-options to set
Returns:
this instance

setProperty

public void setProperty(String name,
                        Object value)

getProperty

public Object getProperty(String name)

hasProperty

public boolean hasProperty(String name)


Copyright © 2013. All rights reserved.