org.apache.ws.jaxme.impl
Class JMControllerImpl

java.lang.Object
  extended by org.apache.ws.jaxme.impl.JMControllerImpl
Direct Known Subclasses:
JMMarshallerImpl, JMUnmarshallerImpl, JMValidatorImpl

public class JMControllerImpl
extends java.lang.Object

Common subclass for JMMarshallerImpl, JMUnmarshallerImpl and JMValidatorImpl.

Version:
$Id: JMControllerImpl.java 231712 2004-01-24 22:14:39Z jochen $
Author:
Jochen Wiedmann

Field Summary
protected  ValidationEventHandler eventHandler
           
static java.lang.String JAXME_DATATYPE_CONVERTER
          Name of the property for setting the DatatypeConverterInterface: "jaxme.datatypeConverter"
static java.lang.String JAXME_FORMAT_DATE
          Property for setting an instance of Format, which is being used for parsing and printing xs:date values.
static java.lang.String JAXME_FORMAT_DATETIME
          Property for setting an instance of Format, which is being used for parsing and printing xs:dateTime values.
static java.lang.String JAXME_FORMAT_TIME
          Property for setting an instance of Format, which is being used for parsing and printing xs:time values.
static java.lang.String JAXME_PRIVATE
          Property prefix for users private settings: "jaxme.private."; if a property name starts with this prefix, then the property value is stored in an internal Map.
 
Constructor Summary
JMControllerImpl()
           
 
Method Summary
 DatatypeConverterInterface getDatatypeConverter()
           
 java.text.Format getDateFormat()
          Returns the Format for parsing and printing xs:date values.
 java.text.Format getDateTimeFormat()
          Returns the Format for parsing and printing xs:dateTime values.
 ValidationEventHandler getEventHandler()
           
 JAXBContextImpl getJAXBContextImpl()
           
 java.lang.Object getProperty(java.lang.String pProperty)
           
 java.text.Format getTimeFormat()
          Returns the Format for parsing and printing xs:time values.
 void setDatatypeConverter(DatatypeConverterInterface pConverter)
           
 void setDateFormat(java.text.Format pFormat)
          Sets the Format for parsing and printing xs:date values.
 void setDateTimeFormat(java.text.Format pFormat)
          Sets the Format for parsing and printing xs:dateTime values.
 void setEventHandler(ValidationEventHandler pEventHandler)
           
 void setJAXBContextImpl(JAXBContextImpl pContext)
           
 void setProperty(java.lang.String pProperty, java.lang.Object pValue)
           
 void setTimeFormat(java.text.Format pFormat)
          Sets the Format for parsing and printing xs:date values.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

JAXME_PRIVATE

public static final java.lang.String JAXME_PRIVATE

Property prefix for users private settings: "jaxme.private."; if a property name starts with this prefix, then the property value is stored in an internal Map.

See Also:
Constant Field Values

JAXME_DATATYPE_CONVERTER

public static final java.lang.String JAXME_DATATYPE_CONVERTER

Name of the property for setting the DatatypeConverterInterface: "jaxme.datatypeConverter"

See Also:
Constant Field Values

JAXME_FORMAT_DATETIME

public static final java.lang.String JAXME_FORMAT_DATETIME

Property for setting an instance of Format, which is being used for parsing and printing xs:dateTime values. Defaults to an instance of XsDateTimeFormat.

See Also:
Constant Field Values

JAXME_FORMAT_DATE

public static final java.lang.String JAXME_FORMAT_DATE

Property for setting an instance of Format, which is being used for parsing and printing xs:date values. Defaults to an instance of XsDateFormat.

See Also:
Constant Field Values

JAXME_FORMAT_TIME

public static final java.lang.String JAXME_FORMAT_TIME

Property for setting an instance of Format, which is being used for parsing and printing xs:time values. Defaults to an instance of XsTimeFormat.

See Also:
Constant Field Values

eventHandler

protected ValidationEventHandler eventHandler
Constructor Detail

JMControllerImpl

public JMControllerImpl()
Method Detail

setProperty

public void setProperty(java.lang.String pProperty,
                        java.lang.Object pValue)
                 throws PropertyException
Throws:
PropertyException

getProperty

public java.lang.Object getProperty(java.lang.String pProperty)
                             throws PropertyException
Throws:
PropertyException

getEventHandler

public ValidationEventHandler getEventHandler()

setEventHandler

public void setEventHandler(ValidationEventHandler pEventHandler)

setJAXBContextImpl

public void setJAXBContextImpl(JAXBContextImpl pContext)

getJAXBContextImpl

public JAXBContextImpl getJAXBContextImpl()

setDatatypeConverter

public void setDatatypeConverter(DatatypeConverterInterface pConverter)

getDatatypeConverter

public DatatypeConverterInterface getDatatypeConverter()

setDateTimeFormat

public void setDateTimeFormat(java.text.Format pFormat)

Sets the Format for parsing and printing xs:dateTime values.

Parameters:
pFormat - An instance of DateFormat or an instance of XsDateTimeFormat (default).

getDateTimeFormat

public java.text.Format getDateTimeFormat()

Returns the Format for parsing and printing xs:dateTime values.

Returns:
An instance of DateFormat or an instance of XsDateTimeFormat (default).

setDateFormat

public void setDateFormat(java.text.Format pFormat)

Sets the Format for parsing and printing xs:date values.

Parameters:
pFormat - An instance of DateFormat or an instance of XsDateFormat (default).

getDateFormat

public java.text.Format getDateFormat()

Returns the Format for parsing and printing xs:date values.

Returns:
An instance of DateFormat or an instance of XsDateFormat (default).

setTimeFormat

public void setTimeFormat(java.text.Format pFormat)

Sets the Format for parsing and printing xs:date values.

Parameters:
pFormat - An instance of DateFormat or an instance of XsDateFormat (default).

getTimeFormat

public java.text.Format getTimeFormat()

Returns the Format for parsing and printing xs:time values.

Returns:
An instance of DateFormat or an instance of XsTimeFormat (default).