org.outerj.daisy.repository
Class FieldHelper
java.lang.Object
org.outerj.daisy.repository.FieldHelper
- public class FieldHelper
- extends java.lang.Object
Some helper methods that can be useful when working with Field
s.
Method Summary |
static java.lang.Object |
getFieldValueFromXml(ValueType valueType,
boolean multiValue,
org.outerx.daisy.x10.FieldDocument.Field fieldXml)
Convenience method to get a value of a certain ValueType from a Field-as-XML.
|
static java.lang.Object[] |
getFieldValuesFromXml(ValueType valueType,
org.outerx.daisy.x10.FieldDocument.Field fieldXml)
|
static java.lang.String |
getFormattedValue(java.lang.Object value,
ValueType valueType,
java.util.Locale locale)
Convenience method to get a String representation of a value, taking into
account the locale (thus nicer then calling toString() on the value). |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
FieldHelper
public FieldHelper()
getFormattedValue
public static java.lang.String getFormattedValue(java.lang.Object value,
ValueType valueType,
java.util.Locale locale)
- Convenience method to get a String representation of a value, taking into
account the locale (thus nicer then calling toString() on the value).
getFieldValueFromXml
public static java.lang.Object getFieldValueFromXml(ValueType valueType,
boolean multiValue,
org.outerx.daisy.x10.FieldDocument.Field fieldXml)
- Convenience method to get a value of a certain ValueType from a Field-as-XML.
Useful if you're working with the XML representation of a field.
getFieldValuesFromXml
public static java.lang.Object[] getFieldValuesFromXml(ValueType valueType,
org.outerx.daisy.x10.FieldDocument.Field fieldXml)
Copyright © -2005 . All Rights Reserved.