public class ModuleOption extends java.lang.Object implements IModuleOption
| 限定符和类型 | 字段和说明 |
|---|---|
protected java.util.Map<java.lang.String,java.lang.Object> |
options
Maps to store the key/value pairs.
|
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, SUPPORTED_UNKNOWN_VERSION_KEY, TO_LATEST_VERSION| 构造器和说明 |
|---|
ModuleOption()
Default constructor.
|
ModuleOption(java.util.Map options)
Constructs the module options with mapping of the option settings.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
close()
Clears all options for non-primitive values.
|
java.lang.Object |
copy()
Returns the copy of the current options.
|
com.ibm.icu.util.ULocale |
getLocale()
Gets the locale.
|
java.util.Map |
getOptions()
Returns a read-only map for all options.
|
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 |
isSupportedUnknownVersion()
return whether support unknown version
|
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 |
setOptions(java.util.Map options) |
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.
|
void |
setSupportedUnknownVersion(boolean isSupportedUnknownVersion)
set whether support unknown version
|
void |
setToLatestVersion(boolean toSet)
Sets the flag that is used to update the design to the latest version
when creates.
|
boolean |
toLatestVersion()
Returns the flag that indicates whether the report should be updated to
the latest version when creates.
|
boolean |
useSemanticCheck()
Determines whether to do some semantic checks when opening a module.
|
protected java.util.Map<java.lang.String,java.lang.Object> options
public ModuleOption()
public ModuleOption(java.util.Map options)
options - the option settings to addpublic 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 setpublic 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 searchnullpublic 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 localepublic void setToLatestVersion(boolean toSet)
toSet - public boolean toLatestVersion()
public java.lang.Object copy()
throws java.lang.CloneNotSupportedException
java.lang.CloneNotSupportedExceptionpublic java.util.Map getOptions()
public void setOptions(java.util.Map options)
options - public void close()
public boolean isSupportedUnknownVersion()
public void setSupportedUnknownVersion(boolean isSupportedUnknownVersion)
isSupportedUnknownVersion - Copyright © 2008 Actuate Corp. All rights reserved.