public interface OptionsManager extends Remote
Session
Modifier and Type | Interface and Description |
---|---|
static class |
OptionsManager.ReorderSelectableStringListValueData
This class holds the data returned from
getReorderSelectableStringListValue(java.lang.String) |
Modifier and Type | Method and Description |
---|---|
String[] |
getAllOptions()
Gets the names of all available options.
|
int |
getIntValue(String name)
Gets the value of an
Options.OptionType#INT option. |
int |
getIntValue(String name,
LevelType level)
Gets the value of an
Options.OptionType#INT option at the specified level. |
boolean |
getLogicalValue(String name)
Gets the value of a
Options.OptionType#LOGICAL option. |
boolean |
getLogicalValue(String name,
LevelType level)
Gets the value of a
Options.OptionType#LOGICAL option at the specified level. |
OptionType |
getOptionType(String name)
Returns an option's type.
|
double |
getRealValue(String name)
Gets the value of a
Options.OptionType#REAL option. |
double |
getRealValue(String name,
LevelType level)
Gets the value of a
Options.OptionType#REAL option at the specified level. |
OptionsManager.ReorderSelectableStringListValueData |
getReorderSelectableStringListValue(String name)
Gets the value of a
Options.OptionType#REORDER_SEL_LIST option. |
OptionsManager.ReorderSelectableStringListValueData |
getReorderSelectableStringListValue(String name,
LevelType level)
Gets the value of a
Options.OptionType#REORDER_SEL_LIST option at the specified level. |
String[] |
getStringListValue(String name)
Gets the value of a
Options.OptionType#STRING_LIST option. |
String[] |
getStringListValue(String name,
LevelType level)
Gets the value of a
Options.OptionType#STRING_LIST option at the specified level. |
String |
getStringValue(String name)
Gets the value of a
Options.OptionType#STRING option. |
String |
getStringValue(String name,
LevelType level)
Gets the value of a
Options.OptionType#STRING option at the specified level. |
String |
getUserComment(String name,
LevelType level)
Returns then user comment at the specified level.
|
String |
getUtf8stringValue(String name)
Gets the value of a
Options.OptionType#UTF8STRING option. |
String |
getUtf8stringValue(String name,
LevelType level)
Gets the value of a
Options.OptionType#UTF8STRING option at the specified level. |
boolean |
isLevelLockedByDefault(LevelType level)
Returns true if the option's values at the specified level are locked by default.
|
boolean |
isValueLocked(String name,
LevelType level)
Returns true if the option value is locked at the specified level.
|
boolean |
isValueSet(String name,
LevelType level)
Returns true if the option value exists at the specified level.
|
ChangeList |
newOptionsChangeList(LevelType level,
LevelLockedByDefault lockedByDefault)
Creates an instance of
ChangeList class, in order to edit a set of options. |
DraftingStandardChangeList |
newOptionsDraftingStandardChangeList(LevelType level,
String filename)
Creates an instance of
DraftingStandardChangeList class, in order to edit a set of options. |
int getIntValue(String name) throws NXException, RemoteException
Options.OptionType#INT
option.
Throws an error if option type is not Options.OptionType#INT
.
name
- Option name. NXException
RemoteException
double getRealValue(String name) throws NXException, RemoteException
Options.OptionType#REAL
option.
Throws an error if the option is not of type Options.OptionType#REAL
.
name
- Option name. NXException
RemoteException
String getStringValue(String name) throws NXException, RemoteException
Options.OptionType#STRING
option.
Throws an error if the option is not of type Options.OptionType#STRING
.
name
- Option name. NXException
RemoteException
String getUtf8stringValue(String name) throws NXException, RemoteException
Options.OptionType#UTF8STRING
option.
Throws an error if the option is not of type Options.OptionType#UTF8STRING
.
name
- Option name. NXException
RemoteException
String[] getStringListValue(String name) throws NXException, RemoteException
Options.OptionType#STRING_LIST
option.
Throws an error if the option is not of type Options.OptionType#STRING_LIST
.
name
- Option name. NXException
RemoteException
OptionsManager.ReorderSelectableStringListValueData getReorderSelectableStringListValue(String name) throws NXException, RemoteException
Options.OptionType#REORDER_SEL_LIST
option.
Throws an error if the option is not of type Options.OptionType#REORDER_SEL_LIST
.
name
- Option name. NXException
RemoteException
boolean getLogicalValue(String name) throws NXException, RemoteException
Options.OptionType#LOGICAL
option.
Throws an error if the option is not of type Options.OptionType#LOGICAL
.
name
- Option name. NXException
RemoteException
int getIntValue(String name, LevelType level) throws NXException, RemoteException
Options.OptionType#INT
option at the specified level.
Throws an error if the option is not of type Options.OptionType#INT
.
name
- Option name. level
- Options level.NXException
RemoteException
double getRealValue(String name, LevelType level) throws NXException, RemoteException
Options.OptionType#REAL
option at the specified level.
Throws an error if the option is not of type Options.OptionType#REAL
.
name
- Option name. level
- Options level.NXException
RemoteException
String getStringValue(String name, LevelType level) throws NXException, RemoteException
Options.OptionType#STRING
option at the specified level.
Throws an error if the option is not of type Options.OptionType#STRING
.
name
- Option name. level
- Options level.NXException
RemoteException
String getUtf8stringValue(String name, LevelType level) throws NXException, RemoteException
Options.OptionType#UTF8STRING
option at the specified level.
Throws an error if the option is not of type Options.OptionType#STRING
.
name
- Option name. level
- Options level.NXException
RemoteException
String[] getStringListValue(String name, LevelType level) throws NXException, RemoteException
Options.OptionType#STRING_LIST
option at the specified level.
Throws an error if the option is not of type Options.OptionType#STRING_LIST
.
name
- Option name. level
- Options level.NXException
RemoteException
OptionsManager.ReorderSelectableStringListValueData getReorderSelectableStringListValue(String name, LevelType level) throws NXException, RemoteException
Options.OptionType#REORDER_SEL_LIST
option at the specified level.
Throws an error if the option is not of type Options.OptionType#REORDER_SEL_LIST
.
name
- Option name. level
- Options level.NXException
RemoteException
boolean getLogicalValue(String name, LevelType level) throws NXException, RemoteException
Options.OptionType#LOGICAL
option at the specified level.
Throws an error if the option is not of type Options.OptionType#LOGICAL
.
name
- Option name. level
- Options level.NXException
RemoteException
ChangeList newOptionsChangeList(LevelType level, LevelLockedByDefault lockedByDefault) throws NXException, RemoteException
ChangeList
class, in order to edit a set of options.
It is not possible to create an instance of ChangeList
for Options.LevelType#SHIPPED
level,
or for a level that is not defined or is not writeable.
level
- Options level.lockedByDefault
- Specifies whether Options level is locked by default.
Ignored at Options.LevelType#USER
level as locks at Options.LevelType#USER
level are not supported.
If specified default lock status is different from the current one, then all exisitng locks are cleared.ChangeList
classNXException
RemoteException
DraftingStandardChangeList newOptionsDraftingStandardChangeList(LevelType level, String filename) throws NXException, RemoteException
DraftingStandardChangeList
class, in order to edit a set of options.
It is not possible to create an instance of DraftingStandardChangeList
for Options.LevelType#SHIPPED
level,
or for a level that is not defined or is not writeable.
level
- Options level.filename
- Specifies the filename to save/save as. DraftingStandardChangeList
classNXException
RemoteException
String[] getAllOptions() throws NXException, RemoteException
NXException
RemoteException
boolean isValueLocked(String name, LevelType level) throws NXException, RemoteException
Options.LevelType#USER
and Options.LevelType#SHIPPED
levels.
name
- Option name level
- Options level.NXException
RemoteException
boolean isValueSet(String name, LevelType level) throws NXException, RemoteException
Options.LevelType#SHIPPED
level.
name
- Option name level
- Options level.NXException
RemoteException
String getUserComment(String name, LevelType level) throws NXException, RemoteException
Options.LevelType#SHIPPED
level.
name
- Option name level
- Options level.NXException
RemoteException
OptionType getOptionType(String name) throws NXException, RemoteException
name
- Option name NXException
RemoteException
boolean isLevelLockedByDefault(LevelType level) throws NXException, RemoteException
level
- Options level.NXException
RemoteException
Copyright 2011 Siemens Product Lifecycle Management Software Inc. All Rights Reserved.