|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object de.ispsoft.jaxme.jaxb.JMManagerFactoryAttachable
A common base class for MarshallerImpl, UnmarshallerImpl and ValidatorImpl.
Field Summary | |
static java.lang.String |
BUILTIN_DATE_FORMAT
Builtin default for formatting dates: yyyy-MM-dd |
static java.lang.String |
BUILTIN_DATETIME_FORMAT
Builtin default for formatting dateTimes: yyyy-MM-dd HH:mm:ss |
static java.lang.String |
BUILTIN_ENCODING
Builtin default encoding. |
static java.lang.String |
BUILTIN_TIME_FORMAT
Builtin default for formatting times: HH:mm:ss |
Constructor Summary | |
JMManagerFactoryAttachable()
Constructor for JMManagerFactoryAttachable. |
Method Summary | |
java.text.DateFormat |
getDateFormat()
Returns the default for parsing or formatting dates. |
java.text.DateFormat |
getDateFormat(java.lang.String pKey)
Returns an instance of DateFormat for formatting an instance of java.sql.Date . |
java.text.DateFormat |
getDateFormatForPattern(java.lang.String pPattern)
Returns an instance of DateFormat with the given format pattern. |
java.text.DateFormat |
getDateTimeFormat()
Returns the default for parsing or formatting datetime values. |
java.text.DateFormat |
getDateTimeFormat(java.lang.String pKey)
Returns an instance of DateFormat for formatting an instance of java.util.Date . |
java.lang.String |
getEncoding()
Returns this Marshallers encoding. |
JMManagerFactory |
getFactory()
Returns the factory that created this instance. |
java.util.Locale |
getLocale()
Returns the Locale. |
java.text.MessageFormat |
getMessageFormat(java.lang.String pPattern)
Returns an instance of MessageFormat with the given format pattern. |
java.text.NumberFormat |
getNumberFormat(java.lang.String pPattern)
Returns an instance of NumberFormat with the given format pattern. |
protected java.lang.Object |
getPrivateProperty(java.lang.String pName)
Fetches the given property from an internal map. |
java.lang.Object |
getProperty(java.lang.String pName)
Returns the value of the given property. |
java.util.ResourceBundle |
getResourceBundle()
Returns the Marshallers ResourceBundle. |
protected java.lang.String |
getResourceValue(java.lang.String pKey,
java.lang.String pDefault)
Looks in the ResourceBundle for the key pKey .
|
java.text.DateFormat |
getTimeFormat()
Returns the default for formatting or parsing time values. |
java.text.DateFormat |
getTimeFormat(java.lang.String pKey)
Returns an instance of DateFormat for formatting an instance of java.sql.Time . |
void |
setDateFormat(java.text.DateFormat pFormat)
Sets the default for parsing or formatting dates. |
void |
setDateTimeFormat(java.text.DateFormat pFormat)
Sets the default for parsing or formatting datetime values. |
void |
setEncoding(java.lang.String pEncoding)
Sets this Marshallers encoding. |
void |
setFactory(JMManagerFactory pFactory)
Sets the factory that created this instance. |
void |
setLocale(java.util.Locale pLocale)
Sets the Locale. |
protected void |
setPrivateProperty(java.lang.String pName,
java.lang.Object pValue)
Stores the given property in an internal map. |
void |
setProperty(java.lang.String pName,
java.lang.Object pValue)
Sets the value of the given property. |
void |
setResourceBundle(java.util.ResourceBundle pBundle)
Sets the Marshallers ResourceBundle. |
void |
setTimeFormat(java.text.DateFormat pFormat)
Sets the default for formatting or parsing time values. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final java.lang.String BUILTIN_ENCODING
Builtin default encoding.
setEncoding(java.lang.String)
,
Constant Field Valuespublic static final java.lang.String BUILTIN_DATE_FORMAT
Builtin default for formatting dates: yyyy-MM-dd
setDateFormat(java.text.DateFormat)
,
BUILTIN_DATETIME_FORMAT
,
BUILTIN_TIME_FORMAT
,
SimpleDateFormat
,
Constant Field Valuespublic static final java.lang.String BUILTIN_DATETIME_FORMAT
Builtin default for formatting dateTimes: yyyy-MM-dd HH:mm:ss
setDateTimeFormat(java.text.DateFormat)
,
BUILTIN_DATE_FORMAT
,
BUILTIN_TIME_FORMAT
,
SimpleDateFormat
,
Constant Field Valuespublic static final java.lang.String BUILTIN_TIME_FORMAT
Builtin default for formatting times: HH:mm:ss
setTimeFormat(java.text.DateFormat)
,
BUILTIN_DATETIME_FORMAT
,
BUILTIN_TIME_FORMAT
,
SimpleDateFormat
,
Constant Field ValuesConstructor Detail |
public JMManagerFactoryAttachable()
Method Detail |
public void setLocale(java.util.Locale pLocale)
Sets the Locale.
public java.util.Locale getLocale()
Returns the Locale.
protected java.lang.String getResourceValue(java.lang.String pKey, java.lang.String pDefault)
Looks in the ResourceBundle for the key pKey
.
If the key is found, returns the keys value. Otherwise
returns the given default pDefault
.
public void setFactory(JMManagerFactory pFactory)
Sets the factory that created this instance.
public JMManagerFactory getFactory()
Returns the factory that created this instance.
public void setEncoding(java.lang.String pEncoding)
Sets this Marshallers encoding. Can also be set with
setProperty("jaxb.encoding", pEncoding)
.
BUILTIN_ENCODING
,
getEncoding()
,
setResourceBundle(java.util.ResourceBundle)
public java.lang.String getEncoding()
Returns this Marshallers encoding. Can also be fetched with
getProperty("jaxb.encoding")
.
BUILTIN_ENCODING
,
setEncoding(java.lang.String)
,
getResourceBundle()
public void setResourceBundle(java.util.ResourceBundle pBundle)
Sets the Marshallers ResourceBundle. Can also be set
with setProperty("jaxme.resourcebundle", pBundle)
.
getResourceBundle()
public java.util.ResourceBundle getResourceBundle()
Returns the Marshallers ResourceBundle. Can also be fetched
with getProperty("jaxme.resourcebundle")
.
setResourceBundle(java.util.ResourceBundle)
public void setDateFormat(java.text.DateFormat pFormat)
Sets the default for parsing or formatting dates.
Defaults to BUILTIN_DATE_FORMAT. Can also be set with
setProperty("jaxme.format.date", pFormat)
.
BUILTIN_DATE_FORMAT
,
getDateFormat()
,
setResourceBundle(java.util.ResourceBundle)
public java.text.DateFormat getDateFormat()
Returns the default for parsing or formatting dates.
Defaults to BUILTIN_DATE_FORMAT. Can also be fetched with
getProperty("jaxme.format.date")
.
BUILTIN_DATE_FORMAT
,
setDateFormat(java.text.DateFormat)
,
getResourceBundle()
public void setDateTimeFormat(java.text.DateFormat pFormat)
Sets the default for parsing or formatting datetime
values. Defaults to BUILTIN_DATETIME_FORMAT. Can also be
set with
setProperty("jaxme.format.datetime", pFormat)
.
BUILTIN_DATETIME_FORMAT
,
getDateTimeFormat()
,
setResourceBundle(java.util.ResourceBundle)
public java.text.DateFormat getDateTimeFormat()
Returns the default for parsing or formatting datetime
values. Defaults to BUILTIN_DATETIME_FORMAT. Can also be
fetched with
getProperty("jaxme.format.datetime")
.
BUILTIN_DATETIME_FORMAT
,
setDateTimeFormat(java.text.DateFormat)
,
getResourceBundle()
public void setTimeFormat(java.text.DateFormat pFormat)
Sets the default for formatting or parsing time values.
Defaults to BUILTIN_TIME_FORMAT. Can also be set with
setProperty("jaxme.format.time", pFormat)
.
BUILTIN_TIME_FORMAT
,
getTimeFormat()
,
setResourceBundle(java.util.ResourceBundle)
public java.text.DateFormat getTimeFormat()
Returns the default for formatting or parsing time values.
Defaults to BUILTIN_TIME_FORMAT. Can also be set with
getProperty("jaxme.format.time")
.
BUILTIN_TIME_FORMAT
,
getTimeFormat()
,
getResourceBundle()
protected void setPrivateProperty(java.lang.String pName, java.lang.Object pValue)
Stores the given property in an internal map. May be used for all properties that don't offer a bean property. This applies in particular to "jaxme.locale" and "jaxme.private.*". Equivalent to
setProperty(pName, pValue);
getPrivateProperty(java.lang.String)
protected java.lang.Object getPrivateProperty(java.lang.String pName)
Fetches the given property from an internal map. May be used for all properties that don't offer a bean property. This applies in particular to "jaxme.locale" and "jaxme.private.*". Equivalent to
getProperty(pName);
getPrivateProperty(java.lang.String)
public java.lang.Object getProperty(java.lang.String pName) throws JAXBException, UnrecognizedPropertyException, UnsupportedPropertyException
Returns the value of the given property.
JAXBException
UnrecognizedPropertyException
UnsupportedPropertyException
public void setProperty(java.lang.String pName, java.lang.Object pValue) throws JAXBException, UnrecognizedPropertyException, UnsupportedPropertyException
Sets the value of the given property.
JAXBException
UnrecognizedPropertyException
UnsupportedPropertyException
public java.text.DateFormat getDateFormatForPattern(java.lang.String pPattern)
Returns an instance of DateFormat with the given format pattern.
public java.text.DateFormat getTimeFormat(java.lang.String pKey)
Returns an instance of DateFormat for formatting an instance of
java.sql.Time
. If pKey
is non-null, then
it is taken as the argument for a pattern lookup in the ResourceBundle.
public java.text.DateFormat getDateFormat(java.lang.String pKey)
Returns an instance of DateFormat for formatting an instance of
java.sql.Date
. If pKey
is non-null, then
it is taken as the argument for a pattern lookup in the ResourceBundle.
public java.text.DateFormat getDateTimeFormat(java.lang.String pKey)
Returns an instance of DateFormat for formatting an instance of
java.util.Date
. If pKey
is non-null, then
it is taken as the argument for a pattern lookup in the ResourceBundle.
public java.text.NumberFormat getNumberFormat(java.lang.String pPattern)
Returns an instance of NumberFormat with the given format pattern.
public java.text.MessageFormat getMessageFormat(java.lang.String pPattern)
Returns an instance of MessageFormat with the given format pattern.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |