public class SystemValue
extends java.lang.Object
implements java.io.Serializable
Constructor and Description |
---|
SystemValue()
Constructs a SystemValue object.
|
SystemValue(AS400 system,
java.lang.String name)
Constructs a SystemValue object.
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds a PropertyChangeListener.
|
void |
addSystemValueListener(SystemValueListener listener)
Adds an SystemValueListener.
|
void |
addVetoableChangeListener(java.beans.VetoableChangeListener listener)
Adds a VetoableChangeListener.
|
void |
clear()
Clears this system value from the cache.
|
java.lang.String |
getDescription()
Returns the description for this system value.
|
int |
getGroup()
Returns the system value group to which this system value belongs.
|
java.lang.String |
getGroupDescription()
Returns the user-defined group description.
|
java.lang.String |
getGroupName()
Returns the user-defined group name.
|
java.lang.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.
|
java.lang.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(java.beans.PropertyChangeListener listener)
Removes the PropertyChangeListener.
|
void |
removeSystemValueListener(SystemValueListener listener)
Removes the SystemValueListener.
|
void |
removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
Removes the VetoableChangeListener.
|
void |
setName(java.lang.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(java.lang.Object value)
Sets the value for this system value.
|
public SystemValue()
public SystemValue(AS400 system, java.lang.String name)
system
- The system object representing the system on which the system value exists.name
- The name of the system value.public void addSystemValueListener(SystemValueListener listener)
listener
- The listener object.public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
listener
- The listener object.public void addVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The listener object.public void clear()
public java.lang.String getDescription()
public int getGroup()
SystemValueList
public java.lang.String getGroupDescription()
public java.lang.String getGroupName()
public java.lang.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 java.lang.Object getValue() throws AS400SecurityException, ErrorCompletingRequestException, java.lang.InterruptedException, java.io.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.java.lang.InterruptedException
- If this thread is interrupted.java.io.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(java.beans.PropertyChangeListener listener)
listener
- The listener object.public void removeVetoableChangeListener(java.beans.VetoableChangeListener listener)
listener
- The listener object.public void setName(java.lang.String name) throws java.beans.PropertyVetoException
name
- The system value.java.beans.PropertyVetoException
- If any of the registered listeners vetos the property change.public void setSystem(AS400 system) throws java.beans.PropertyVetoException
system
- The system object representing the system on which the system value exists.java.beans.PropertyVetoException
- If any of the registered listeners vetos the property change.public void setValue(java.lang.Object value) throws AS400SecurityException, ErrorCompletingRequestException, java.lang.InterruptedException, java.io.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.java.lang.InterruptedException
- If this thread is interrupted.java.io.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()