|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.ibm.as400.access.SystemValue
public class SystemValue
The SystemValue class represents a system value or network attribute on the system.
Constructor Summary | |
---|---|
SystemValue()
Constructs a SystemValue object. |
|
SystemValue(AS400 system,
String name)
Constructs a SystemValue object. |
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a PropertyChangeListener. |
void |
addSystemValueListener(SystemValueListener listener)
Adds an SystemValueListener. |
void |
addVetoableChangeListener(VetoableChangeListener listener)
Adds a VetoableChangeListener. |
void |
clear()
Clears this system value from the cache. |
String |
getDescription()
Returns the description for this system value. |
int |
getGroup()
Returns the system value group to which this system value belongs. |
String |
getGroupDescription()
Returns the user-defined group description. |
String |
getGroupName()
Returns the user-defined group name. |
String |
getName()
Returns the name of this system value. |
int |
getRelease()
Returns the supported release for this system value. |
int |
getSize()
Returns the length (in bytes) of this system value's data value component. |
AS400 |
getSystem()
Returns the system object representing the system on which the system value exists. |
int |
getType()
Returns the type for this system value. |
Object |
getValue()
Returns the current value of this system value. |
boolean |
isReadOnly()
Indicates if this system value is read only or if it can be set by the user. |
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes the PropertyChangeListener. |
void |
removeSystemValueListener(SystemValueListener listener)
Removes the SystemValueListener. |
void |
removeVetoableChangeListener(VetoableChangeListener listener)
Removes the VetoableChangeListener. |
void |
setName(String name)
Sets the system value name. |
void |
setSystem(AS400 system)
Sets the system object representing the system on which the system value exists. |
void |
setValue(Object value)
Sets the value for this system value. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SystemValue()
public SystemValue(AS400 system, String name)
system
- The system object representing the system on which the system value exists.name
- The name of the system value.Method Detail |
---|
public void addSystemValueListener(SystemValueListener listener)
listener
- The listener object.public void addPropertyChangeListener(PropertyChangeListener listener)
listener
- The listener object.public void addVetoableChangeListener(VetoableChangeListener listener)
listener
- The listener object.public void clear()
public String getDescription()
public int getGroup()
SystemValueList
public String getGroupDescription()
public String getGroupName()
public String getName()
public int getRelease()
AS400.generateVRM(int, int, int)
public int getSize()
TYPE_ARRAY
, this method returns the total size of the data value.
public AS400 getSystem()
public int getType()
TYPE_ARRAY
- The data contained by this system value is a String[] object.
TYPE_DATE
- The data contained by this system value is a Date object.
TYPE_DECIMAL
- The data contained by this system value is a BigDecimal object.
TYPE_INTEGER
- The data contained by this system value is an Integer object.
TYPE_STRING
- The data contained by this system value is a String object.
SystemValueList
public Object getValue() throws AS400SecurityException, ErrorCompletingRequestException, InterruptedException, IOException, ObjectDoesNotExistException, RequestNotSupportedException
getType()
to determine the type of the returned object. For example, some system values are represented as arrays of String.
AS400SecurityException
- If a security or authority error occurs.
ErrorCompletingRequestException
- If an error occurs before the request is completed.
InterruptedException
- If this thread is interrupted.
IOException
- If an error occurs while communicating with the system.
ObjectDoesNotExistException
- If the object does not exist on the system.
RequestNotSupportedException
- If the IBM i release level of the system does not support the system value.getType()
public boolean isReadOnly()
public void removeSystemValueListener(SystemValueListener listener)
listener
- The listener object.public void removePropertyChangeListener(PropertyChangeListener listener)
listener
- The listener object.public void removeVetoableChangeListener(VetoableChangeListener listener)
listener
- The listener object.public void setName(String name) throws PropertyVetoException
name
- The system value.
PropertyVetoException
- If any of the registered listeners vetos the property change.public void setSystem(AS400 system) throws PropertyVetoException
system
- The system object representing the system on which the system value exists.
PropertyVetoException
- If any of the registered listeners vetos the property change.public void setValue(Object value) throws AS400SecurityException, ErrorCompletingRequestException, InterruptedException, IOException, RequestNotSupportedException
getType()
to determine the type of object to set. For example, some system values are represented as arrays of String.
value
- The data.
AS400SecurityException
- If a security or authority error occurs.
ErrorCompletingRequestException
- If an error occurs before the request is completed.
InterruptedException
- If this thread is interrupted.
IOException
- If an error occurs while communicating with the system.
RequestNotSupportedException
- If the IBM i release level of the system does not support the system value.getType()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |