org.apache.ws.jaxme.impl

Class JMControllerImpl

Known Direct Subclasses:
JMMarshallerImpl, JMUnmarshallerImpl, JMValidatorImpl

public abstract class JMControllerImpl
extends java.lang.Object

Common subclass for JMMarshallerImpl, JMUnmarshallerImpl and JMValidatorImpl.
Version:
$Id: JMControllerImpl.java 279090 2005-09-06 20:26:11Z jochen $
Author:
Jochen Wiedmann

Field Summary

static String
JAXME_DATATYPE_CONVERTER
Name of the property for setting the DatatypeConverterInterface: "jaxme.datatypeConverter".
static String
JAXME_FORMAT_DATE
Property for setting an instance of java.text.Format, which is being used for parsing and printing xs:date values.
static String
JAXME_FORMAT_DATETIME
Property for setting an instance of java.text.Format, which is being used for parsing and printing xs:dateTime values.
static String
JAXME_FORMAT_TIME
Property for setting an instance of java.text.Format, which is being used for parsing and printing xs:time values.
static String
JAXME_PRIVATE
Property prefix for users private settings: "jaxme.private.".
protected ValidationEventHandler
eventHandler

Method Summary

DatatypeConverterInterface
getDatatypeConverter()
Returns the marshallers or unmarshallers datatype converter.
Format
getDateFormat()
Returns the java.text.Format for parsing and printing xs:date values.
Format
getDateTimeFormat()
Returns the java.text.Format for parsing and printing xs:dateTime values.
ValidationEventHandler
getEventHandler()
Returns a users event handler for validation events, if any.
JAXBContextImpl
getJAXBContextImpl()
Returns the marshallers or unmarshallers JAXBContext.
Object
getProperty(String pProperty)
Returns the value for property pProperty.
Format
getTimeFormat()
Returns the java.text.Format for parsing and printing xs:time values.
void
setDatatypeConverter(DatatypeConverterInterface pConverter)
Sets the marshallers or unmarshallers datatype converter.
void
setDateFormat(Format pFormat)
Sets the java.text.Format for parsing and printing xs:date values.
void
setDateTimeFormat(Format pFormat)
Sets the java.text.Format for parsing and printing xs:dateTime values.
void
setEventHandler(ValidationEventHandler pEventHandler)
Sets a users event handler for validation events.
void
setJAXBContextImpl(JAXBContextImpl pContext)
Sets the marshallers or unmarshallers JAXBContext.
void
setProperty(String pProperty, Object pValue)
Sets the property pProperty to the value pValue.
void
setTimeFormat(Format pFormat)
Sets the java.text.Format for parsing and printing xs:date values.

Field Details

JAXME_DATATYPE_CONVERTER

public static final String JAXME_DATATYPE_CONVERTER

JAXME_FORMAT_DATE

public static final String JAXME_FORMAT_DATE

JAXME_FORMAT_DATETIME

public static final String JAXME_FORMAT_DATETIME

JAXME_FORMAT_TIME

public static final String JAXME_FORMAT_TIME

JAXME_PRIVATE

public static final 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.

eventHandler

protected ValidationEventHandler eventHandler

Method Details

getDatatypeConverter

public DatatypeConverterInterface getDatatypeConverter()
Returns the marshallers or unmarshallers datatype converter. Defaults to an instance of DatatypeConverterImpl.

getDateFormat

public Format getDateFormat()
Returns the java.text.Format for parsing and printing xs:date values.

getDateTimeFormat

public Format getDateTimeFormat()
Returns the java.text.Format for parsing and printing xs:dateTime values.

getEventHandler

public ValidationEventHandler getEventHandler()
Returns a users event handler for validation events, if any. Defaults to null.

getJAXBContextImpl

public JAXBContextImpl getJAXBContextImpl()
Returns the marshallers or unmarshallers JAXBContext. This is used mainly as an object factory.

getProperty

public Object getProperty(String pProperty)
            throws PropertyException
Returns the value for property pProperty.

getTimeFormat

public Format getTimeFormat()
Returns the java.text.Format for parsing and printing xs:time values.

setDatatypeConverter

public void setDatatypeConverter(DatatypeConverterInterface pConverter)
Sets the marshallers or unmarshallers datatype converter. Defaults to an instance of DatatypeConverterImpl.

setDateFormat

public void setDateFormat(Format pFormat)
Sets the java.text.Format for parsing and printing xs:date values.

setDateTimeFormat

public void setDateTimeFormat(Format pFormat)
Sets the java.text.Format for parsing and printing xs:dateTime values.

setEventHandler

public void setEventHandler(ValidationEventHandler pEventHandler)
Sets a users event handler for validation events. Defaults to null.

setJAXBContextImpl

public void setJAXBContextImpl(JAXBContextImpl pContext)
Sets the marshallers or unmarshallers JAXBContext. This is used mainly as an object factory.

setProperty

public void setProperty(String pProperty,
                        Object pValue)
            throws PropertyException
Sets the property pProperty to the value pValue.

setTimeFormat

public void setTimeFormat(Format pFormat)
Sets the java.text.Format for parsing and printing xs:date values.