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 abstract class JMControllerImpl
extends java.lang.Object

Common subclass for JMMarshallerImpl, JMUnmarshallerImpl and JMValidatorImpl.

Version:
$Id$
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.".
 
Constructor Summary
JMControllerImpl()
           
 
Method Summary
 DatatypeConverterInterface getDatatypeConverter()
          Returns the marshallers or unmarshallers datatype converter.
 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()
          Returns a users event handler for validation events, if any.
 JAXBContextImpl getJAXBContextImpl()
          Returns the marshallers or unmarshallers JAXBContext.
 java.lang.Object getProperty(java.lang.String pProperty)
          Returns the value for property pProperty.
 java.text.Format getTimeFormat()
          Returns the Format for parsing and printing xs:time values.
 void setDatatypeConverter(DatatypeConverterInterface pConverter)
          Sets the marshallers or unmarshallers datatype converter.
 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)
          Sets a users event handler for validation events.
 void setJAXBContextImpl(JAXBContextImpl pContext)
          Sets the marshallers or unmarshallers JAXBContext.
 void setProperty(java.lang.String pProperty, java.lang.Object pValue)
          Sets the property pProperty to the value 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
Sets the property pProperty to the value pValue.

Throws:
PropertyException

getProperty

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

Throws:
PropertyException

getEventHandler

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

See Also:
setEventHandler(ValidationEventHandler)

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.


getJAXBContextImpl

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


setDatatypeConverter

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


getDatatypeConverter

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


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