fi.hut.tml.xsmiles.mlfc.xforms
Class XFormsConfiguration

java.lang.Object
  extended byfi.hut.tml.xsmiles.mlfc.xforms.XFormsConfiguration
Direct Known Subclasses:
XFormsConfigurationPSVI

public class XFormsConfiguration
extends java.lang.Object

This class holds the current configuration: whether or not to use XercesPSVI, which datatype factory to use, etc. This class is extended by XFormsConfigurationPSVI, which implements XForms FULL

Author:
honkkis

Field Summary
protected static boolean basic
           
protected static XFormsConfiguration config
           
protected  DataFactory dfact
           
static java.lang.String PROPERTY_XPATH_ENGINE
           
protected  PSVI psvi
           
static java.lang.String XPATH_JAXEN_CLASS
           
static java.lang.String XPATH_XALAN_CLASS
           
 
Constructor Summary
XFormsConfiguration()
           
 
Method Summary
 SchemaPool createSchemaPool()
           
 XPathEngine createXPathEngine(XFormsContext handler, ModelContext mcontext)
           
 XsiType createXsiType(java.lang.String typeNamespace, java.lang.String typeLocalName, SchemaPool pool)
           
 java.util.Calendar getCalendarFromSchemaString(java.lang.String str)
           
 java.lang.String getConformanceLevel()
          this is returned to the XPath function for conformance level
 DataFactory getDataFactory()
           
protected  java.lang.String getDefaultXPathEngineClass()
           
static XFormsConfiguration getInstance()
           
 java.lang.String getInstanceDocumentClassName()
           
 PSVI getPSVI()
           
 org.w3c.dom.Document loadDocument(java.io.Reader r, java.lang.String baseURL, boolean plain, SchemaPool pool, java.lang.Object entityResolver, java.lang.Object errorHandler)
           
protected static void setRunBasic(boolean b)
           
 boolean shouldHandleXsiType()
           
static void tryToUsePSVI()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

config

protected static XFormsConfiguration config

dfact

protected DataFactory dfact

psvi

protected PSVI psvi

basic

protected static boolean basic

XPATH_XALAN_CLASS

public static final java.lang.String XPATH_XALAN_CLASS
See Also:
Constant Field Values

XPATH_JAXEN_CLASS

public static final java.lang.String XPATH_JAXEN_CLASS
See Also:
Constant Field Values

PROPERTY_XPATH_ENGINE

public static java.lang.String PROPERTY_XPATH_ENGINE
Constructor Detail

XFormsConfiguration

public XFormsConfiguration()
Method Detail

setRunBasic

protected static void setRunBasic(boolean b)

tryToUsePSVI

public static void tryToUsePSVI()

getInstance

public static XFormsConfiguration getInstance()

createSchemaPool

public SchemaPool createSchemaPool()

getDefaultXPathEngineClass

protected java.lang.String getDefaultXPathEngineClass()

createXPathEngine

public XPathEngine createXPathEngine(XFormsContext handler,
                                     ModelContext mcontext)

getPSVI

public PSVI getPSVI()

getDataFactory

public DataFactory getDataFactory()

getInstanceDocumentClassName

public java.lang.String getInstanceDocumentClassName()

createXsiType

public XsiType createXsiType(java.lang.String typeNamespace,
                             java.lang.String typeLocalName,
                             SchemaPool pool)

loadDocument

public org.w3c.dom.Document loadDocument(java.io.Reader r,
                                         java.lang.String baseURL,
                                         boolean plain,
                                         SchemaPool pool,
                                         java.lang.Object entityResolver,
                                         java.lang.Object errorHandler)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

shouldHandleXsiType

public boolean shouldHandleXsiType()

getConformanceLevel

public java.lang.String getConformanceLevel()
this is returned to the XPath function for conformance level


getCalendarFromSchemaString

public java.util.Calendar getCalendarFromSchemaString(java.lang.String str)


X-Smiles 1.2