be.SIRAPRISE.util
Class WaarListFactory

java.lang.Object
  extended by be.SIRAPRISE.util.WaarListFactory

public class WaarListFactory
extends java.lang.Object

Utility class to produce WAAR list values from a SIRA_PRISE query response

Author:
Erwin Smout

Constructor Summary
WaarListFactory()
           
 
Method Summary
static be.WAAR.PresentationLayer.ListValue fromSiraPriseRelationValue(be.WAAR.PresentationLayer.PresentationField listField, java.lang.String relationValue, be.WAAR.PresentationLayer.UserData userData, java.util.Locale locale)
          Creates a list value from a relation value obtained from a sira_prise server
static be.WAAR.PresentationLayer.DynamicColumnListValue varColumnListFromSiraPriseQueryResponse(java.lang.String listFieldName, AbstractRelation relation, java.util.Locale locale)
          Creates a ListValue off the textual result of a sira_prise query
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WaarListFactory

public WaarListFactory()
Method Detail

fromSiraPriseRelationValue

public static be.WAAR.PresentationLayer.ListValue fromSiraPriseRelationValue(be.WAAR.PresentationLayer.PresentationField listField,
                                                                             java.lang.String relationValue,
                                                                             be.WAAR.PresentationLayer.UserData userData,
                                                                             java.util.Locale locale)
                                                                      throws be.WAAR.PresentationLayer.WaarException
Creates a list value from a relation value obtained from a sira_prise server

Parameters:
listField - The listfield for which a value is being produced
relationValue - The relation value in text form, starting with the RELATION type keyword. The HEADING part of the value may be present or may be omitted. I.e. the textual value may be RELATION(HEADING(...)BODY(...)) or it may be RELATION(BODY(...))
userData - The userdata object
locale -
Returns:
A ListValue holding the information contained in the relationValue argument
Throws:
be.WAAR.PresentationLayer.WaarException

varColumnListFromSiraPriseQueryResponse

public static be.WAAR.PresentationLayer.DynamicColumnListValue varColumnListFromSiraPriseQueryResponse(java.lang.String listFieldName,
                                                                                                       AbstractRelation relation,
                                                                                                       java.util.Locale locale)
                                                                                                throws be.WAAR.PresentationLayer.WaarException
Creates a ListValue off the textual result of a sira_prise query

Parameters:
listFieldName - The name of the dynamic-list field on the presentation
relation -
locale -
Returns:
A list value with columns as determined by the text value
Throws:
be.WAAR.PresentationLayer.WaarException