org.eclipse.birt.report.model.api
Class ModuleOption

java.lang.Object
  extended byorg.eclipse.birt.report.model.api.ModuleOption
All Implemented Interfaces:
IModuleOption

public class ModuleOption
extends java.lang.Object
implements IModuleOption

Provide the way to do some setting about the module.


Field Summary
protected  java.util.HashMap options
          Maps to store the key/value pairs.
 
Fields inherited from interface org.eclipse.birt.report.model.api.IModuleOption
PARSER_SEMANTIC_CHECK_KEY, RESOURCE_FOLDER_KEY, RESOURCE_LOCATOR_KEY
 
Constructor Summary
ModuleOption()
          Default constructor.
ModuleOption(java.util.Map options)
          Constructs the module options with mapping of the option settings.
 
Method Summary
 java.lang.Object getProperty(java.lang.String key)
          Gets the value in this setting.
 java.lang.String getResourceFolder()
          Gets the resource folder.
 void setProperty(java.lang.String key, java.lang.Object value)
          Sets an option of this setting.
 void setResourceFolder(java.lang.String resourceFolder)
          Sets the resource folder
 void setSemanticCheck(boolean useSemanticCheck)
          Sets the semantic check control status.
 boolean useSemanticCheck()
          Determines whether to do some semantic checks when opening a module.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

options

protected java.util.HashMap options
Maps to store the key/value pairs.

Constructor Detail

ModuleOption

public ModuleOption()
Default constructor.


ModuleOption

public ModuleOption(java.util.Map options)
Constructs the module options with mapping of the option settings.

Parameters:
options - the option settings to add
Method Detail

useSemanticCheck

public boolean useSemanticCheck()
Determines whether to do some semantic checks when opening a module.

Returns:
true if user wants to do the checks, otherwise false

setSemanticCheck

public void setSemanticCheck(boolean useSemanticCheck)
Sets the semantic check control status. True if user wants to do the semantic checks when opening a module, otherwise false.

Parameters:
useSemanticCheck - the control status

getResourceFolder

public java.lang.String getResourceFolder()
Gets the resource folder.

Returns:
the resource folder

setResourceFolder

public void setResourceFolder(java.lang.String resourceFolder)
Sets the resource folder

Parameters:
resourceFolder - the resource folder to set

setProperty

public void setProperty(java.lang.String key,
                        java.lang.Object value)
Sets an option of this setting.

Parameters:
key - the option key
value - the option value

getProperty

public java.lang.Object getProperty(java.lang.String key)
Gets the value in this setting.

Parameters:
key - the key to search
Returns:
the value in this setting if found, otherwise null


Copyright © 2005 Actuate Corp. All rights reserved.