org.apache.ws.jaxme.impl

Class JMControllerImpl

public abstract class JMControllerImpl extends 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
protected ValidationEventHandlereventHandler
static StringJAXME_DATATYPE_CONVERTER
Name of the property for setting the DatatypeConverterInterface: "jaxme.datatypeConverter".
static StringJAXME_FORMAT_DATE
Property for setting an instance of java.text.Format, which is being used for parsing and printing xs:date values.
static StringJAXME_FORMAT_DATETIME
Property for setting an instance of java.text.Format, which is being used for parsing and printing xs:dateTime values.
static StringJAXME_FORMAT_TIME
Property for setting an instance of java.text.Format, which is being used for parsing and printing xs:time values.
static StringJAXME_PRIVATE
Property prefix for users private settings: "jaxme.private.".
Method Summary
DatatypeConverterInterfacegetDatatypeConverter()
Returns the marshallers or unmarshallers datatype converter.
FormatgetDateFormat()

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

FormatgetDateTimeFormat()

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

ValidationEventHandlergetEventHandler()
Returns a users event handler for validation events, if any.
JAXBContextImplgetJAXBContextImpl()
Returns the marshallers or unmarshallers JAXBContext.
ObjectgetProperty(String pProperty)
Returns the value for property pProperty.
FormatgetTimeFormat()

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

voidsetDatatypeConverter(DatatypeConverterInterface pConverter)
Sets the marshallers or unmarshallers datatype converter.
voidsetDateFormat(Format pFormat)

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

voidsetDateTimeFormat(Format pFormat)

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

voidsetEventHandler(ValidationEventHandler pEventHandler)
Sets a users event handler for validation events.
voidsetJAXBContextImpl(JAXBContextImpl pContext)
Sets the marshallers or unmarshallers JAXBContext.
voidsetProperty(String pProperty, Object pValue)
Sets the property pProperty to the value pValue.
voidsetTimeFormat(Format pFormat)

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

Field Detail

eventHandler

protected ValidationEventHandler eventHandler

JAXME_DATATYPE_CONVERTER

public static final String JAXME_DATATYPE_CONVERTER
Name of the property for setting the DatatypeConverterInterface: "jaxme.datatypeConverter".

JAXME_FORMAT_DATE

public static final String JAXME_FORMAT_DATE
Property for setting an instance of java.text.Format, which is being used for parsing and printing xs:date values. Defaults to an instance of XsDateFormat.

JAXME_FORMAT_DATETIME

public static final String JAXME_FORMAT_DATETIME
Property for setting an instance of java.text.Format, which is being used for parsing and printing xs:dateTime values. Defaults to an instance of XsDateTimeFormat.

JAXME_FORMAT_TIME

public static final String JAXME_FORMAT_TIME
Property for setting an instance of java.text.Format, which is being used for parsing and printing xs:time values. Defaults to an instance of XsTimeFormat.

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.

Method Detail

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.

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

getDateTimeFormat

public Format getDateTimeFormat()

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

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

getEventHandler

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

See Also: setEventHandler

getJAXBContextImpl

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

getProperty

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

getTimeFormat

public Format getTimeFormat()

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

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

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.

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

setDateTimeFormat

public void setDateTimeFormat(Format pFormat)

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

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

setEventHandler

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

See Also: getEventHandler

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)
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.

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