Business Objects
Quark Platform Documentation
Version 1.7.0_0
Business Objects

org.openquark.cal.runtime
Class ExecutionContextProperties.Builder

java.lang.Object
  extended by org.openquark.cal.runtime.ExecutionContextProperties.Builder
Enclosing class:
ExecutionContextProperties

public static final class ExecutionContextProperties.Builder
extends Object

An instance of this class can be used to gather up key-value pairs to turn into a ExecutionContextProperties instance.

Author:
Joseph Wong

Constructor Summary
ExecutionContextProperties.Builder()
          Constructs a Builder.
 
Method Summary
 void setLocale(Locale locale)
          Sets the current locale associated with the execution context.
 void setProperty(String key, Object value)
          Sets the value for a particular key.
 void setTimeZone(String timeZoneID)
          Sets the current time zone associated with the execution context.
 void setTimeZone(TimeZone timeZone)
          Sets the current time zone associated with the execution context.
 ExecutionContextProperties toProperties()
          Builds an ExecutionContextProperties instance based on the information gathered so far.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecutionContextProperties.Builder

public ExecutionContextProperties.Builder()
Constructs a Builder.

Method Detail

setLocale

public void setLocale(Locale locale)
Sets the current locale associated with the execution context.

Parameters:
locale - the locale.

setTimeZone

public void setTimeZone(TimeZone timeZone)
Sets the current time zone associated with the execution context.

Parameters:
timeZone - the time zone.

setTimeZone

public void setTimeZone(String timeZoneID)
Sets the current time zone associated with the execution context.

Parameters:
timeZoneID - the time zone ID.

setProperty

public void setProperty(String key,
                        Object value)
Sets the value for a particular key. This method cannot be used for system properties - for these properties, use the dedicated set methods instead.

Parameters:
key - the key of the property.
value - the value of the property.

toProperties

public ExecutionContextProperties toProperties()
Builds an ExecutionContextProperties instance based on the information gathered so far.

Returns:
a new instance of ExecutionContextProperties.

Business Objects
Quark Platform Documentation
Version 1.7.0_0
Business Objects

Copyright © 2007 Business Objects. All rights reserved.