|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.birt.report.model.api.ModuleOption
public class ModuleOption
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 |
|---|
BLANK_CREATION_KEY, CREATED_BY_KEY, LOCALE_KEY, MARK_LINE_NUMBER_KEY, PARSER_SEMANTIC_CHECK_KEY, READ_ONLY_MODULE_PROPERTIES, 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 |
copy()
Returns the copy of the current options. |
com.ibm.icu.util.ULocale |
getLocale()
Gets the locale. |
java.lang.Object |
getProperty(java.lang.String key)
Gets the value in this setting. |
java.lang.String |
getResourceFolder()
Gets the resource folder. |
IResourceLocator |
getResourceLocator()
Gets the resource locator. |
boolean |
markLineNumber()
Determines whether to mark line number of element when opening/saving a module. |
void |
setLocale(com.ibm.icu.util.ULocale locale)
Sets the locale. |
void |
setMarkLineNumber(boolean markLineNumber)
Sets the marking line number control status. |
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 |
setResourceLocator(IResourceLocator locator)
Sets the resource locator. |
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 |
|---|
protected java.util.HashMap options
| Constructor Detail |
|---|
public ModuleOption()
public ModuleOption(java.util.Map options)
options - the option settings to add| Method Detail |
|---|
public boolean useSemanticCheck()
public void setSemanticCheck(boolean useSemanticCheck)
useSemanticCheck - the control statuspublic java.lang.String getResourceFolder()
public void setResourceFolder(java.lang.String resourceFolder)
resourceFolder - the resource folder to set
public void setProperty(java.lang.String key,
java.lang.Object value)
key - the option keyvalue - the option valuepublic java.lang.Object getProperty(java.lang.String key)
key - the key to search
nullpublic boolean markLineNumber()
public void setMarkLineNumber(boolean markLineNumber)
markLineNumber - the control statuspublic IResourceLocator getResourceLocator()
public void setResourceLocator(IResourceLocator locator)
locator - the resource locator to setpublic com.ibm.icu.util.ULocale getLocale()
public void setLocale(com.ibm.icu.util.ULocale locale)
locale - the locale
public java.lang.Object copy()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||