org.outerj.daisy.repository
Class FieldHelper

java.lang.Object
  extended by org.outerj.daisy.repository.FieldHelper

public class FieldHelper
extends java.lang.Object

Some helper methods that can be useful when working with Fields.


Constructor Summary
FieldHelper()
           
 
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, Repository repository)
          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
 

Constructor Detail

FieldHelper

public FieldHelper()
Method Detail

getFormattedValue

public static java.lang.String getFormattedValue(java.lang.Object value,
                                                 ValueType valueType,
                                                 java.util.Locale locale,
                                                 Repository repository)
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 © -2012 . All Rights Reserved.