|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.swing.tree.DefaultMutableTreeNode PIRL.PVL.Value
public class Value
A Value is a general-purpose value entity containing arbitrary data.
A Value provides the data value for Parameter objects. It is based on the Parameter Value Language syntax:
[ ( | { ] Datum [ < Units > ] [ , Datum [...] ] [ ) | } [ < Units > ] ]
The type of Datum that a Value contains is indicated by its Type code. There are three basic types:
NUMERIC
INTEGER
(Long) with a variable radix Base
REAL
(Double)
STRING
IDENTIFIER
- Unquoted
SYMBOL
- Single-quoted (')
TEXT
- Double-quoted (")
DATE_TIME
- Contains dash (-) or colon (:)
ARRAY
SET
- Enclosed by curly braces ('{' and '}') or no enclosing characters
SEQUENCE
- Enclosed by parentheses ('(' and ')')
There is also an UNKNOWN
Type for a Value with no
Datum. Note that any Datum may be an ARRAY
Type, so
Arrays of Arrays are supported. Arrays may be of mixed Types and
non-rectangular sizes.
Any Datum, including an Array, may have an optional Units String that provides an arbitrary description for the Datum.
Parameter
,
Parser
,
Serialized FormField Summary | |
---|---|
static int |
ARRAY
Non-specific Type for a Value with a Vector datum. |
static int |
DATE_TIME
Type for a Value with a String datum. |
static int |
HIGHEST_BIT
The highest bit used by the Type code bit field. |
static String |
ID
Class name and version identification. |
static int |
IDENTIFIER
Type for a Value with a String datum. |
static int |
INTEGER
Type for a Value with a Long datum. |
static int |
LOWEST_BIT
The lowest bit used by the Type code bit field. |
static int |
MASK
Selects only the Type code bit fields recognized by the Value class. |
static int |
NUMERIC
Non-specific Type for a Value with a numeric datum. |
static int |
REAL
Type for a Value with a Double datum. |
static int |
SEQUENCE
Type for a Value with a datum that is a Vector of Values. |
static int |
SET
Type for a Value with a datum that is a Vector of Values. |
static int |
STRING
Non-specific Type for a Value with a String datum. |
static int |
SYMBOL
Type for a Value with a String datum. |
static int |
TEXT
Type for a Value with a String datum. |
static int |
UNKNOWN
The classification of an empty Value. |
Fields inherited from class javax.swing.tree.DefaultMutableTreeNode |
---|
allowsChildren, children, EMPTY_ENUMERATION, parent, userObject |
Constructor Summary | |
---|---|
Value()
Creates an empty Value, with Type UNKNOWN . |
|
Value(byte value)
Creates an INTEGER Value from the primitive
byte value. |
|
Value(char value)
Creates an IDENTIFIER Value from the primitive
char value. |
|
Value(double value)
Creates a REAL Value from the primitive
double value. |
|
Value(float value)
Creates a REAL Value from the primitive
float value. |
|
Value(int value)
Creates an INTEGER Value from the primitive
int value. |
|
Value(long value)
Creates an INTEGER Value from the primitive
long value. |
|
Value(Object value)
Creates a Value whose Type depends on the class of the value object. |
|
Value(Parser parser)
A Parser is used to get a new Value. |
|
Value(short value)
Creates an INTEGER Value from the primitive
short value. |
|
Value(Value value)
A Value is constructed from a copy of another Value. |
Method Summary | |
---|---|
Value |
Add(List list)
Adds a List of Objects to the end of the Array. |
void |
add(MutableTreeNode value)
Invokes the Value's Add method. |
Value |
Add(Object object)
Adds an Object constructed as a new Value to the end of this Array. |
Value |
Add(Value value)
Adds a Value to the end of this Array. |
protected void |
adopt(Vector vector)
Sets the parents of a Vector of Values to this Value. |
int |
Array_Size()
Gets the number of elements in an Array Value. |
int |
Base()
Gets the radix base that will be applied if this Value is an INTEGER Type. |
Value |
Base(int base)
Sets the radix base to be applied if this Value is an INTEGER Type during a conversion between
(to or from) a Long and String representation. |
Object |
clone()
Makes a deep copy of the Value. |
Object |
Data()
Gets the datum object from the Value. |
Value |
Data(byte value)
Sets the datum of the Value to the primitive byte value, and sets its Type to INTEGER . |
Value |
Data(char value)
The primitive char value is used to constructs a single character String which is then set to the datum of the Value. |
Value |
Data(double value)
Sets the datum of the Value to the primitive double value, and sets its Type to REAL . |
Value |
Data(Double value)
Sets the datum of the Value to the Double object, and sets its Type to REAL . |
Value |
Data(float value)
Sets the datum of the Value to the primitive float value, and sets its Type to REAL . |
Value |
Data(int value)
Sets the datum of the Value to the primitive int value, and sets its Type to INTEGER . |
Value |
Data(List list)
Sets the Value data as an Array of Values constructed from the List. |
Value |
Data(long value)
Sets the datum of the Value to the primitive long value, and sets its Type to INTEGER . |
Value |
Data(Long value)
Sets the datum of the Value to the Long object, and sets its Type to INTEGER . |
Value |
Data(Object object)
Sets the datum for the Value based on the class of the specified Object. |
Value |
Data(short value)
Sets the datum of the Value to the primitive short value, and sets its Type to INTEGER . |
Value |
Data(String value)
Sets the datum of the Value to the String object. |
Value |
Data(Value value)
Copies the contents of a Value into this Value. |
static int |
Default_Array_Type()
Gets the default Array Value Type to use when an Array is automatically constructed. |
static int |
Default_Array_Type(int type)
Sets the default Array Value Type to use when an Array is automatically constructed. |
String |
Description()
Gets a PVL description of the Value. |
String |
Description(Lister lister)
Gets a PVL description of the Value using a specified Lister. |
double |
double_Data()
Gets a primitive double value from the Value. |
Double |
Double_Data()
Gets a Double object from the Value. |
boolean |
equals(Object object)
Tests if an Object is equal to this Value. |
boolean |
equalsIgnoreCase(Value value)
Tests if a Value is equivalent to this Value, ignoring certain cases where field values are not equal. |
Value |
Find(byte value)
Finds a Value having the datum equal to the primitive value. |
Value |
Find(double value)
Finds a Value having the datum equal to the primitive value. |
Value |
Find(float value)
Finds a Value having the datum equal to the primitive value. |
Value |
Find(int value)
Finds a Value having the datum equal to the primitive value. |
Value |
Find(int type,
Value last_value)
Finds the Value of the specified Type, beginning after the specified Value object is found. |
Value |
Find(long value)
Finds a Value having the datum equal to the primitive value. |
Value |
Find(Object value)
Finds a Value having the datum equal to the value of the Object. |
Value |
Find(short value)
Finds a Value having the datum equal to the primitive value. |
Value |
Find(Value test_value)
Finds the Value that completely matches a test Value. |
Value |
Find(Value test_value,
Selector criteria)
Finds the Value that matches a test Value according the Selector criteria. |
Value |
Find(Value test_value,
Selector criteria,
Value last_value)
Searches for a Value that matches a test Value according the Selector criteria, optionally after some specific Value object has been located first. |
Value |
Find(Value test_value,
Value last_value)
Finds the Value that completely matches a test Value, beginning after the specified Value within the Array. |
PVL_Exception |
First_Warning()
Returns the first warning since the last Reset_Warning . |
Value |
First_Warning(boolean first)
Enables or disables returning the first warning that occurs as the current warning status. |
Value |
Get(int index)
Gets the Value at the specified index of the Array. |
protected void |
graft(Value value)
Grafts the contents of a Value into this Value. |
Value |
Insert(List list,
int index)
Inserts a List of Objects into the Value's Array starting at the specified index. |
void |
insert(MutableTreeNode value,
int index)
Invokes the Value's Insert method. |
Value |
Insert(Object object,
int index)
Insert an Object constructed as a new Value at the specified index of the Array. |
Value |
Insert(Value value,
int index)
Inserts a Value into the Array at the specified index. |
boolean |
Is_Array()
Tests if the Value is one of the ARRAY Types. |
static boolean |
Is_Array(int type)
Tests for an ARRAY Type. |
boolean |
Is_Date_Time()
Tests if the Value is the DATE_TIME Type. |
static boolean |
Is_Date_Time(int type)
Tests for the DATE_TIME Type. |
boolean |
Is_Identifier()
Tests if the Value is the IDENTIFIER Type. |
static boolean |
Is_Identifier(int type)
Tests for the IDENTIFIER Type. |
boolean |
Is_Integer()
Tests if the Value is the INTEGER Type. |
static boolean |
Is_Integer(int type)
Tests for the INTEGER Type. |
boolean |
Is_Numeric()
Tests if the Value is one of the NUMERIC Types. |
static boolean |
Is_Numeric(int type)
Tests for a NUMERIC Type. |
boolean |
Is_Real()
Tests if the Value is the REAL Type. |
static boolean |
Is_Real(int type)
Tests for the REAL Type. |
boolean |
Is_Sequence()
Tests if the Value is the SEQUENCE Type. |
static boolean |
Is_Sequence(int type)
Tests for the SEQUENCE Type. |
boolean |
Is_Set()
Tests if the Value is the SET Type. |
static boolean |
Is_Set(int type)
Tests for the SET Type. |
boolean |
Is_String()
Tests if the Value is one of the STRING Types. |
static boolean |
Is_String(int type)
Tests for a STRING Type. |
boolean |
Is_Symbol()
Tests if the Value is the SYMBOL Type. |
static boolean |
Is_Symbol(int type)
Tests for the SYMBOL Type. |
boolean |
Is_Text()
Tests if the Value is the TEXT Type. |
static boolean |
Is_Text(int type)
Tests for the TEXT Type. |
boolean |
Is_Unknown()
Tests if the Value Type is UNKNOWN
(an empty Value). |
static boolean |
Is_Unknown(int type)
Tests for the UNKNOWN Type. |
static boolean |
Is_Value_Array(Object object)
Tests if an Object is a List suitable for an Array Value. |
static boolean |
Is_Value(Object object)
Tests if an Object is a Value. |
Iterator |
iterator()
Provides an Iterator starting at the first element of the list. |
Iterator |
iterator(int index)
Provides an Iterator for Values contained in an Array positioned so that the next element returned will be from the specified index of the Array. |
PVL_Exception |
Last_Warning()
Returns the last warning since a Reset_Warning . |
Value |
Last_Warning(boolean last)
Enables or disables returning the last warning that occurs as the current warning status. |
ListIterator |
listIterator()
Provides a ListIterator starting at the first element of the list. |
ListIterator |
listIterator(int index)
Provides a ListIterator for Values contained in an Array positioned so that the next element returned will be from the specified index of the list. |
long |
long_Data()
Gets a primitive long value from the Value. |
Long |
Long_Data()
Gets a Long object from the Value. |
boolean |
Match_Depth(Value value,
Selector criteria)
Tests if a Value matches this Value using the specified criteria. |
boolean |
Match(Value value,
Selector criteria)
Tests if a Value matches this Value using the specified criteria. |
protected static void |
orphan(Vector vector)
Sets a Vector of Values to have no parent. |
Value |
Parent()
Gets the Value that contains this Value as an Array element. |
Value |
Remove_All()
Empties the Value's Array. |
void |
remove(int index)
Invokes the Value's Remove method. |
Value |
Remove(int index)
Removes the Value at the specified index from the Array. |
void |
remove(MutableTreeNode value)
Invokes the Value's Remove method. |
Value |
Remove(Value value)
Removes the specified Value from the Array. |
Value |
Reset_Warning()
Clears any warning status so that the Warning method
will return null until the next warning condition occurs. |
protected void |
set_data(Object data)
Set the appropriate Data variables. |
protected void |
set_type(int type)
Sets the appropriate Type variables. |
void |
setAllowsChildren(boolean allows)
Overrides the base class method to ensure Value integrity. |
void |
setUserObject(Object object)
Overrides the base class method to ensure Value integrity. |
String |
String_Data()
Gets a String object representing the Value datum. |
String |
toString()
Gets a String representation of the Value. |
String |
Type_Name()
Gets the name String associated with the Value's Type. |
static String |
Type_Name(int type)
Gets the name String associated with the Type code. |
int |
Type()
Gets the Value's Type code. |
Value |
Type(int type)
Sets the Type of the Value. |
static int |
Type(Object object)
Determine the Value Type of an Object. |
String |
Units()
Get the units description String. |
Value |
Units(String units)
Set the units description String. |
Vector |
Vector_Data()
Gets the data Vector of an Array Value. |
PVL_Exception |
Warning()
Gets the current warning status. |
int |
Write()
Writes the Value in PVL syntax to System.out
starting at level 0, not strict. |
int |
Write(boolean indent)
Writes the Value in PVL syntax to System.out
with or without indenting, not strict. |
int |
Write(boolean indent,
boolean strict)
Writes the Value in PVL syntax to output System.out
with indenting and strict PVL enabled or disabled. |
int |
Write(OutputStream output)
Writes the Value in PVL syntax to the output starting at level 0, not strict. |
int |
Write(OutputStream output,
boolean indent)
Writes the Value in PVL syntax to the output with or without indenting, not strict. |
int |
Write(OutputStream output,
int level,
boolean strict)
Writes the Value in PVL syntax using a PVL Lister. |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String ID
public static final int LOWEST_BIT
public static final int HIGHEST_BIT
public static final int UNKNOWN
public static final int NUMERIC
The specific Type will be either INTEGER
or
REAL
.
INTEGER
,
REAL
,
Constant Field Valuespublic static final int INTEGER
public static final int REAL
public static final int STRING
The specific Type will be either IDENTIFIER
,
SYMBOL
, TEXT
, or DATE_TIME
.
IDENTIFIER
,
SYMBOL
,
TEXT
,
DATE_TIME
,
Constant Field Valuespublic static final int IDENTIFIER
It will be written unadorned (no quoting).
public static final int SYMBOL
It will be written enclosed within
characters.
Parser.SYMBOL_DELIMITER
public static final int TEXT
It will be written enclosed within
characters.
Parser.TEXT_DELIMITER
public static final int DATE_TIME
It may represent a date or time (it contains one or more
).
Parser.DATE_TIME_DELIMITERS
public static final int ARRAY
The specific Type will be either SET
or
SEQUENCE
.
SET
,
SEQUENCE
,
Constant Field Valuespublic static final int SET
It will be written preceeded by a
character and ending with
a Parser.SET_START_DELIMITER
character.
Parser.SET_END_DELIMITER
public static final int SEQUENCE
It will be written preceeded by a
character and ending
with a Parser.SEQUENCE_START_DELIMITER
character.
Parser.SEQUENCE_END_DELIMITER
public static final int MASK
Logical AND with another int variable will ensure that only Value Type bits remain.
Constructor Detail |
---|
public Value()
UNKNOWN
.
public Value(char value)
IDENTIFIER
Value from the primitive
char value.
value
- The data used to construct the Value.Data(char)
public Value(byte value)
INTEGER
Value from the primitive
byte value.
value
- The data used to construct the Value.Data(byte)
public Value(short value)
INTEGER
Value from the primitive
short value.
value
- The data used to construct the Value.Data(short)
public Value(int value)
INTEGER
Value from the primitive
int value.
value
- The data used to construct the Value.Data(int)
public Value(long value)
INTEGER
Value from the primitive
long value.
value
- The data used to construct the Value.Data(long)
public Value(float value)
REAL
Value from the primitive
float value.
value
- The data used to construct the Value.Data(float)
public Value(double value)
REAL
Value from the primitive
double value.
value
- The data used to construct the Value.Data(double)
public Value(Object value) throws PVL_Exception
value
- The object used to construct the Value.
PVL_Exception
- From the Data
method.Data(Object)
public Value(Parser parser) throws PVL_Exception
parser
- The Parser source for PVL syntax.
PVL_Exception
- When the Parser encounters an
unrecoverable error. The Parser may also generate a
Warning which will associated with the new Parameter.Parser
public Value(Value value) throws PVL_Exception
The contents of the original Value are copied into the new Value. This includes its datum, radix base and units String. When the original Value is an Array, each datum is recursively copied and added to the new Value in the same order. The warning status from the original is not copied.
value
- The original Value to be copied.
PVL_Exception
- set_type(int)
,
Add(Value)
Method Detail |
---|
public Long Long_Data() throws PVL_Exception
If the Value is Type INTEGER
this is the unmodified
datum, unless the datum is null in which case a Long with a 0 value
is created. If the Value is Type REAL
then a Long will
be created from the Double datum by casting (which may result in
loss of accuracy). If the Value is a STRING
Type, then
a Long will be constructed from the Value's long_Data
method value. Note: The current radix base for the Value
will be used when converting a String to a Long.
PVL_Exception
- NUMERIC
Type,
or a STRING
Type could not be converted
to a long.
long_Data()
public long long_Data() throws PVL_Exception
If the Value is Type INTEGER
this is the long value
contained in the Long datum, unless the datum is null in which case
a value of 0L is returned. If the Value is Type REAL
then a long value will be created from the Double datum by casting
(which may result in loss of accuracy). If the Value is a
STRING
Type, then an attempt will be made to interpret
the String as a long value. Note: The current radix base for
the Value will be used when converting a String to a long.
PVL_Exception
- NUMERIC
Type,
or a STRING
Type could not be converted
to a long.
Long.parseLong(String, int)
public Double Double_Data() throws PVL_Exception
If the Value is Type REAL
this is the unmodified
datum, unless the datum is null in which case a Double with a 0.0
value is created. If the Value is Type INTEGER
then a
Double will be created from the Long datum by casting. If the Value
is a STRING
Type, then an attempt will be made to
interpret the String as a Double value.
PVL_Exception
- NUMERIC
Type,
or a STRING
Type could not be converted
to a Double.
Double.valueOf(String)
public double double_Data() throws PVL_Exception
If the Value is Type REAL
this is the double value
contained in the Double datum, unless the datum is null in which
case a value of 0.0 is returned. If the Value is Type
INTEGER
then a double will be created from the Long
datum by casting. If the Value is a STRING
Type, then
an attempt will be made to interpret the String as a double value.
PVL_Exception
- NUMERIC
Type,
or a STRING
Type could not be converted
to a double.
Double.parseDouble(String)
public String String_Data() throws PVL_Exception
If the Value is a STRING
Type then the unmodified
datum is returned, unless the datum is null in which case an empty
String is returned. No special enclosing characters associated with
the PVL syntax for specific STRING
Types are added
(use the toString
method for this format).
If the Value is a NUMERIC
Type it is converted to its
String representation. Note: For an INTEGER
Type Value it's current radix base is used in the conversion (the
representation is preceeded by a negative sign if the datum value
is negative, which avoids machine precision and byte ordering
issues). The radix base value and PVL syntax characters are not
included (use the toString
method for this format).
PVL_Exception
- ARRAY
Type.
toString()
,
Long.toString(long, int)
,
Double.toString()
public Value Get(int index)
index
- The Array index of the Value to get.
PVL_Exception.ILLEGAL_SYNTAX
Warning status is
set.Vector.remove(int)
public Vector Vector_Data() throws PVL_Exception
PVL_Exception
- ARRAY
Type.
public int Array_Size()
public Object Data()
If the Value is an ARRAY
Type, the object will be a
Vector. The object will be a Long for an INTEGER
Type,
a Double for a REAL
, or a String for a
STRING
.
public Value Data(Long value)
INTEGER
. Note: A null datum is acceptable.
value
- The new datum for the Value.
set_type(int)
,
set_data(Object)
public Value Data(byte value)
INTEGER
.
value
- The new value for the Value.
Data(Long)
public Value Data(short value)
INTEGER
.
value
- The new value for the Value.
Data(Long)
public Value Data(int value)
INTEGER
.
value
- The new value for the Value.
Data(Long)
public Value Data(long value)
INTEGER
.
value
- The new value for the Value.
Data(Long)
public Value Data(Double value)
REAL
. Note: A null datum is acceptable.
value
- The new datum for the Value.
set_type(int)
,
set_data(Object)
public Value Data(float value)
REAL
.
value
- The new value for the Value.
Data(Double)
public Value Data(double value)
REAL
.
value
- The new value for the Value.
Data(Double)
public Value Data(String value)
If the String begins with the
character then the Value Type
is set to Parser.TEXT_DELIMITER
TEXT
. If the String begins with the
character then the Value Type is set to Parser.SYMBOL_DELIMITER
SYMBOL
. In
either of these cases the leading and trailing (if present)
delimiter characters are removed from the String before it is
assigned to the datum. Otherwise, if the String contains any
the Value Type is set to
Parser.DATE_TIME_DELIMITERS
DATE_TIME
. By default the Value Type is set to
IDENTIFIER
. Note: A null datum is acceptable.
If the String (after removing any enclosing delimiters) contains
any of the
then a warning status is
set. These characters have special meaning in the PVL syntax so
writing values containing them could confuse a PVL parser that
reads them.
Parser.RESERVED_CHARACTERS
value
- The new datum for the Value.
set_type(int)
,
set_data(Object)
public Value Data(char value)
The Type of the Value is set according to the rules of the
method.
Data (String)
value
- The new value for the Value.
Data(String)
public Value Data(List list) throws PVL_Exception
The Value is classified as the default
Array Type
. A new data Vector is assembled containing Values
constructed from the Objects in the list. If any of these Objects are
Values they are copied. An Object that is a List results in a new
Array Value being recursivley constructed and added to the new data
Vector.
If this Value previously had data, it is replaced with the new Vector of Values. In the case where the previous data was a Vector of Values, all Values of the old Vector are orphaned (they are marked as having no parent).
list
- The List of values to be adopted.
PVL_Exception
- From set_data.set_type(int)
,
set_data(Object)
public Value Data(Value value) throws PVL_Exception
value
- The Value to be copied into this Value.
PVL_Exception
- From making a copy of the value.Value(Value)
,
graft(Value)
public Value Data(Object object) throws PVL_Exception
There are numerous possibilities:
Data (Value)
method.
ARRAY
Data (List)
method.
The object classes for this case are:
INTEGER
Data (Long)
method.
The object classes for this case are:
longValue
method.
longValue
method.
longValue
method.
REAL
Data (Double)
method.
The object classes for this case are:
doubleValue
method.
STRING
Data (String)
method.
The object classes for this case are:
toString
method.
UNKNOWN
object
- The Object to be considered a the Value datum.
PVL_Exception
- BAD_ARGUMENT
public Value Insert(Value value, int index) throws PVL_Exception
If the Value is not already an Array Type, and does not have a datum,
it is given the default Array Type
. The
specified Value is inserted at the specified index in this Value's
Array. Any Values in the Array at, or beyond the index are moved to
the next index. After the specified Value is inserted its parent is
set to this Value. Note: The inserted Value is not removed
from any other Array it may be in.
value
- The Value object to be inserted.index
- The location in the Array for the insertion.
PVL_Exception
- ILLEGAL_SYNTAX
Type(int)
,
Remove(Value)
,
Vector.insertElementAt(Object, int)
public Value Insert(Object object, int index) throws PVL_Exception
If the Object is a Value it is not copied.
object
- The Object whose Value is to be inserted.index
- The location in the Array for the insertion.
PVL_Exception
- From Insert(Value, int).Value(Object)
,
Insert(Value, int)
public Value Insert(List list, int index) throws PVL_Exception
The elements of the List are Insert
ed in the order
they occur from the List's listIterator at sequential locations
starting with the specified index.
list
- The List of Objects to Insert.index
- The first of sequential Insert locations.
PVL_Exception
- From the construction of a new Value from
an Object.Insert(Object, int)
,
List.listIterator()
public Value Add(Value value) throws PVL_Exception
If this Value is not currently an Array an attempt will be made to
convert it to the default Array Type
.
The Insert
method is used with the index at the end of
the Array.
N.B.: The Array size
will only be
increased by one even if the Value being added is an Array; in this
case the Array Value being added becomes a sub-Array whose parent is
this Value. To append the entries of a Value Array to this Value's
list of entries add the Value Array's list
to
this Value.
value
- The Value to be added.
PVL_Exception
- If Type
could not convert the
Value to an Array, or there was a problem with the
Insert
of the value at the end of the Array.Type(int)
,
Insert(Value, int)
public Value Add(Object object) throws PVL_Exception
If the Object is a Value it is not copied.
object
- The Object whose Value is to be inserted.
PVL_Exception
- From Add(Value)
.Value(Object)
,
Add(Value)
public Value Add(List list) throws PVL_Exception
If this Value is not currently an Array an attempt will be made to
convert it to the default Array Type
.
The Insert
method is used with the index at the end of
the Array.
list
- The List of Objects to Insert.
PVL_Exception
- If Type
could not convert the
Value to an Array, or there was a problem with the
Insert
of the list at the end of the Array.Type(int)
,
Insert(List, int)
public Value Remove(int index)
After being removed from the Array the Value is marked as having no parent.
index
- The Array index of the Value to be removed.
PVL_Exception.ILLEGAL_SYNTAX
Warning status is
set.Vector.remove(int)
public Value Remove(Value value)
The first occurance of the Value in the Array is removed. The Array,
if there is one, is searched regardless of the Type of this Value.
The search is not recursive: Only this Value's Array data Vector is
searched, not the Array Vectors of any Array Values in the Array. The
Value is found in the Array by equality of Value object reference,
not by the equals method. To remove a Value that equals another
Value, use Find
and then remove the found Value from its
Parent
.
value
- The Value object to be removed.
PVL_Exception.ILLEGAL_SYNTAX
Warning status is
set.Remove(int)
public Value Remove_All()
The Array data Vector, if it exists, is removed regardless of the Type of this Value. All Values in the Array (but not sub-Arrays) are marked as not having a parent.
protected void set_data(Object data) throws PVL_Exception
The Type
of the data object determines how the
internal data variables are set. Consistency of the Value's data is
ensured by always setting it with this method.
For Vector data, the data becomes the base class children data Vector. Its contents are adopted which confirms that each element is a Value and its parent is set to this Value. The local datum is set to null.
For non-ARRAY
data, the data becomes the datum of the
Value. The children data Vector is orphaned which sets all of its
Value elements to have no parent, and then set to null.
>>> WARNING <<< The Type of the Value is not updated. Accordingly, this method should only be used by methods associated with this package that will also set the Type appropriately.
data
- The Object to become Value's data.
PVL_Exception
- BAD_ARGUMENT
Type(Object)
,
adopt(Vector)
,
orphan(Vector)
protected void graft(Value value) throws PVL_Exception
In effect, this Value becomes the specified Value.
The datum reference is set (not copied) to the specified Value's datum reference along with the base, units, and warning status. The Array (children) data Vector reference is set to the specified Value's Vector and if it has contents they are adopted by this Value (the specified Value's children data Vector is set to null to avoid any possible confusion). The Type is set to be the same as the specified Value.
value
- The Value object to graft into this Value.
PVL_Exception
- From adopt.adopt(Vector)
,
set_type(int)
protected void adopt(Vector vector) throws PVL_Exception
>>> WARNING <<<
Only the parent references for the Values in the Vector are set to this Value. The Vector itself may still be referenced by some other Value. In this case the adoption of the Vector will not be complete until the reference in the former parent is changed (e.g. to null).
vector
- The Vector of Parameters to adopt.
PVL_Exception
- BAD_ARGUMENT
protected static void orphan(Vector vector)
>>> WARNING <<<
Only the parent references for the Values in the Vector are set to null. The Vector itself may still be referenced by some other Value. In this case the orphaning of the Vector will not be complete until the reference in the former parent is changed (e.g. to null).
vector
- The Vector of Values to orphan.public int Type()
public static int Type(Object object)
The Object is considered to be potentially the datum for a Value and
is tested to see if it is an instance of an acceptable Java Class.
The object must be an instance of a class suitable for being assigned
directly as the datum or data Vector of a Value. Only a basic Type
can be determined by examining an object, except for the specific
NUMERIC
Types. Note: If this method does not
provide a valid Type that does not necessarily mean that the object
can not be used by the Data (Object)
method.
object
- The Object to be examined.
INTEGER
code, Double objects the REAL
code, String objects the STRING
code, and List
objects return the ARRAY
code. When the object is
null, the UNKNOWN
code is returned. If an invalid
object is specified, then the return value is -1.Data(Object)
public Value Type(int type) throws PVL_Exception
When the Value does not have any data (neither a datum nor a
data Vector), or the current Type is UNKNOWN
, then the
Value is simply set to the specifed Type. When the new Type is
UNKNOWN
then any existing data is removed with the
method
and then the Type is set.
set_data (null)
When the current Value Type is the same basic Type as the new Type
- i.e. they are both NUMERIC
, STRING
or
ARRAY
Types - then the Value is set to the new Type.
In the case of a Type change from INTEGER
to
DOUBLE
, or vice versa, the datum is cast to the new
Type.
When the Value is a STRING
Type and the new Type is
NUMERIC
an attempt is made to parse the String using
the Value's Double_Data
method to produce a
REAL
Type datum, or the Long_Data
method
to produce an INTEGER
Type datum. In the latter case
the current radix base of the Value will be used in the conversion.
If the String datum is not a valid representation of the
appropriate Type of number then a
PVL_Exception.ILLEGAL_SYNTAX
will be thrown.
When the Value is a NUMERIC
Type and the new Type is
STRING
the datum is converted to its String
representation using the Value's String_Data
method.
For an INTEGER
Type the current radix base of the
Value will be used in the conversion.
When the Value is to be converted to an ARRAY
Type the
current Value is
d, the current
Value is set to the (empty) clone
default
Array Type
, and the copy of the original Value is
ed as the first element of
the Array. In effect the original Value is "pushed down" as the first
and only element of what has become an Array Value; i.e. the new
Array contains a copy of the original Value.
Insert
When the Value is an ARRAY
Type and the new Type is
not, this conversion can only be accomplished if the current Array
contains less than two Values. If the Array contains no Values then
the new Type is simply set. If the Array contains two or more
Values then a PVL_Exception.INCOMPATIBLE_TYPES
will be
thrown. For an Array with just one Value an attempt is made to
convert that Value to the new Type by recursively calling this
Type
method. If this succeeds then the converted value
is
ed into this Value to
become the new Type. In effect a single Value contained in an Array
is "pulled up" into this Value; i.e. the Array's Value becomes this
Value with the new Type.
graft
type
- The new Type for the Value.
PVL_Exception
- NUMERIC
,
STRING
,
ARRAY
,
set_type(int)
,
Long.doubleValue()
,
Double.longValue()
,
clone()
,
graft(Value)
,
Long_Data()
,
Double_Data()
,
String_Data()
protected void set_type(int type)
Consistency of the Value's Type is ensured by always setting it
with this method. If the Type code is for an ARRAY
,
then the allowsChildren variable of the DefaultMutableTreeNode base
class will be set to true; otherwise it will be set to false.
>>> WARNING <<< The data of the Value is not checked for consistency with the Type. Accordingly, this method should only be used by methods associated with this package that will also set the data appropriately.
type
- The int Type code for the Value.public static String Type_Name(int type)
Type names are identical to the names of the Type code constants.
type
- The Type code int.
public String Type_Name()
public static int Default_Array_Type(int type)
type
- The Array Type to use by default. If this is not an
Array Type
nothing is done.
public static int Default_Array_Type()
Default_Array_Type(int)
public static boolean Is_Value(Object object)
object
- The Object to be tested.
public static boolean Is_Value_Array(Object object)
Note: The contents of the List are recursively checked to all be Values. null data Vectors are acceptable Values.
object
- The Object to be tested.
Is_Value(Object)
,
Is_Array()
public boolean Is_Numeric()
NUMERIC
Types.
NUMERIC
Types include INTEGER
and
REAL
Types.
NUMERIC
Type.NUMERIC
public boolean Is_Integer()
INTEGER
Type.
INTEGER
Type.INTEGER
public boolean Is_Real()
REAL
Type.
REAL
Type.REAL
public boolean Is_String()
STRING
Types.
STRING
Types include IDENTIFIER
,
SYMBOL
, TEXT
and DATE_TIME
Types.
STRING
Type.STRING
public boolean Is_Identifier()
IDENTIFIER
Type.
IDENTIFIER
Type.IDENTIFIER
public boolean Is_Symbol()
SYMBOL
Type.
SYMBOL
Type.SYMBOL
public boolean Is_Text()
TEXT
Type.
TEXT
Type.TEXT
public boolean Is_Date_Time()
DATE_TIME
Type.
DATE_TIME
Type.DATE_TIME
public boolean Is_Array()
ARRAY
Types.
ARRAY
Types include SET
and
SEQUENCE
Types.
ARRAY
Type.ARRAY
public boolean Is_Set()
SET
Type.
SET
Type.SET
public boolean Is_Sequence()
SEQUENCE
Type.
SEQUENCE
Type.SEQUENCE
public boolean Is_Unknown()
UNKNOWN
(an empty Value).
UNKNOWN
.UNKNOWN
public static boolean Is_Numeric(int type)
NUMERIC
Type.
type
- The Type code int.
NUMERIC
.Is_Numeric()
public static boolean Is_Integer(int type)
INTEGER
Type.
type
- The Type code int.
INTEGER
.INTEGER
public static boolean Is_Real(int type)
REAL
Type.
type
- The Type code int.
REAL
.REAL
public static boolean Is_String(int type)
STRING
Type.
type
- The Type code int.
STRING
.Is_String()
public static boolean Is_Identifier(int type)
IDENTIFIER
Type.
type
- The Type code int.
IDENTIFIER
.IDENTIFIER
public static boolean Is_Symbol(int type)
SYMBOL
Type.
type
- The Type code int.
SYMBOL
.SYMBOL
public static boolean Is_Text(int type)
TEXT
Type.
type
- The Type code int.
TEXT
.TEXT
public static boolean Is_Date_Time(int type)
DATE_TIME
Type.
type
- The Type code int.
DATE_TIME
.DATE_TIME
public static boolean Is_Array(int type)
ARRAY
Type.
type
- The Type code int.
ARRAY
.Is_Array()
public static boolean Is_Set(int type)
SET
Type.
type
- The Type code int.
SET
.SET
public static boolean Is_Sequence(int type)
SEQUENCE
Type.
type
- The Type code int.
SEQUENCE
.SEQUENCE
public static boolean Is_Unknown(int type)
UNKNOWN
Type.
type
- The Type code int.
UNKNOWN
.UNKNOWN
public int Base()
INTEGER
Type.
Base(int)
public Value Base(int base) throws PVL_Exception
INTEGER
Type during a conversion between
(to or from) a Long and String representation.
The radix base is associated with the Value regardless of whether
it is currently an INTEGER
Type and remains associated
with the Value regarless of Type changes. Valid radix base values
are in the range Character.MIN_RADIX <= |base| <=
Character.MAX_RADIX. The sign of the radix base value will be
applied to the Value datum when the radix base is used, but is
otherwise ignored. For example, if a negative radix base is applied
to positive INTEGER
Value, then long_Data
will return a positive long value but String_Data
will
return the represenation of the negative of the long value since a
conversion has been applied. Using negative radix base numbers can
be a source of confusion and probably should be avoided.
base
- The radix base int to be used.
PVL_Exception
- Character.MIN_RADIX
,
Character.MAX_RADIX
public String Units()
public Value Units(String units)
This is an arbitrary String that is expected to provide some form of real world units description for the Value. It may be null to remove any units description.
units
- The units description String.
public Value Parent()
public PVL_Exception Warning()
When conditions are encountered that are unusual enough to warrant
attention, but not an error condition that would prevent successful
processing which would cause an exception to be thrown, a warning
condition is registered. The warning is in the form of a
PVL_Exception that was not thrown. The current warning status is
either the
or the First_Warning
since a Last_Warning
.
Reset_Warning
PVL_Exception
,
First_Warning(boolean)
,
Last_Warning(boolean)
,
Reset_Warning()
public Value Reset_Warning()
Warning
method
will return null until the next warning condition occurs.
Warning()
public Value First_Warning(boolean first)
The first warning is one that occurs when the current warning status is null.
first
- true to enable returning the first warning status;
false to return the last warning that occurred as the current
warning status.
Warning()
,
First_Warning()
,
Reset_Warning()
public PVL_Exception First_Warning()
Reset_Warning
.
PVL_Exception
,
Warning()
,
First_Warning(boolean)
,
Reset_Warning()
public Value Last_Warning(boolean last)
The last warning is the most recent one regarless of any previous
warning conditions that may have occured without an intervening
Reset_Warning
.
last
- true to enable returning the last warning status;
false to return the first warning condition that occurred as
the current warning status.
Warning()
,
Last_Warning()
,
Reset_Warning()
public PVL_Exception Last_Warning()
Reset_Warning
.
PVL_Exception
,
Warning()
,
Last_Warning(boolean)
,
Reset_Warning()
public Object clone()
clone
in class DefaultMutableTreeNode
Value(Value)
,
Object.clone()
,
Cloneable
public String toString()
For an INTEGER
Type Value with a decimal radix base
the Long datum's toString
representation is returned.
If the datum is null a 0L value is provided. When the radix base is
not decimal then the radix base is incuded in the representation
using PVL syntax:
[ sign ] base#value#
Where the negative sign is used if either the radix base or the
datum value (but not both) are negative, the radix base is
represented in decimal notation, and the datum value is represented
in the character set corresponding to the radix base. The
crosshatch characters are the
character.
Parser.NUMBER_BASE_DELIMITER
For a REAL
Type Value the Double datum's
toString
representation is returned. If the datum is
null a "0.0" representation is returned.
For STRING
Types the String datum is returned (the
empy string is used for a null datum) enclosed in any PVL syntax
characters appropriate for its specific Type. For the
TEXT
Type the
character starts and ends the
String, while for the Parser.TEXT_DELIMITER
SYMBOL
Type the
is
used.
Parser.SYMBOL_DELIMITER
For Values with an ARRAY
Type, the
Type_Name
is used as a place holder (use the
Write
method to get all of the individual Array
entries). For the SET
Type this is enclosed in
and Parser.SET_START_DELIMITER
characters. For the
Parser.SET_END_DELIMITER
SEQUENCE
Type the
and Parser.SEQUENCE_START_DELIMITER
characters enclose the
name.
Parser.SEQUENCE_END_DELIMITER
For Values with the UNKNOWN
Type just the
Type_Name
is provided.
toString
in class DefaultMutableTreeNode
Write(OutputStream, int, boolean)
,
Type_Name()
,
Long.toString()
,
Double.toString()
public String Description(Lister lister)
The Value is Write
n to a
StringWriter on the specified Lister and the resultant String is
returned. If the Write method produces an exception, the exception
message is returned. The Lister will have its Writer set
to the StringWriter used to write
the PVL syntax. If no Lister is specified (the argument is null)
then a default Lister will be provided.
lister
- The Lister to use when writing the PVL syntax.
public String Description()
The Value is Write
n to a
StringWriter on a default Lister and the resultant String is
returned. If the Write method produces an exception, the exception
message is returned.
Description(Lister)
public boolean Match(Value value, Selector criteria)
value
- The Value to be compared to this Value.criteria
- The Selector providing the comparison criteria.
Selector
public boolean Match_Depth(Value value, Selector criteria)
If the Value is an Array matching is done recursively on all Values of the Array. The match succeeds if all Values match.
N.B.: To avoid unnecessary redundant recursive comparisons of
Array data values if the Data
criteria is included in the criteria the data comparison
is only done for
non-Array Values.
value
- The Value to be compared to this Value.criteria
- The Selector providing the comparison criteria.
Selector
,
Selection
public boolean equals(Object object)
An Object is equal to this Value when it is also a Value object and
all of its fields are equal to this Value's fields. A Selection
object with VALUE_MATCH
criteria is used with the
Match_Depth
method.
equals
in class Object
object
- The Object to be compared to this Value.
Match_Depth(Value, Selector)
,
Selection
,
Selector.VALUE_MATCH
public boolean equalsIgnoreCase(Value value)
Unlike equals
, for a Value to be equivalent to this
Value the fields need only be logically equivalent, rather than
containing the same value. A Selection object with
VALUE_MATCH
but Specific (false)
criteria
is used with the Match_Depth
method.
value
- The Value to be compared to this Value.
Match_Depth(Value, Selector)
,
Selection
,
Selector.VALUE_MATCH
,
Selection.Specific(boolean)
public int Write(OutputStream output, int level, boolean strict) throws PVL_Exception, IOException
The Lister is created with the output stream as its list destination using the specified indent level and syntax strictness.
output
- The OutputStream to receive what is written.
If output is null System.out
is used.level
- The indent level at which to start the listing.
If the level is negative, indenting is disabled.strict
- Use strict PVL syntax if true; otherwise use an
easier to read format.
PVL_Exception
- BAD_ARGUMENT
ILLEGAL_SYNTAX
STRING
datum during strict writing.
IOException
- From the OutputStream write
method.Lister.Write(Value)
public int Write() throws PVL_Exception, IOException
System.out
starting at level 0, not strict.
PVL_Exception
- From the foundation Write
method.
IOException
- From the OutputStream write
method.Write(OutputStream, int, boolean)
public int Write(boolean indent) throws PVL_Exception, IOException
System.out
with or without indenting, not strict.
indent
- Enable indenting starting at level 0 if true;
disable indenting otherwise.
PVL_Exception
- From the foundation Write
method.
IOException
- From the OutputStream write
method.Write(OutputStream, int, boolean)
public int Write(boolean indent, boolean strict) throws PVL_Exception, IOException
System.out
with indenting and strict PVL enabled or disabled.
indent
- Enable indenting starting at level 0 if true;
disable indenting otherwise.strict
- Use strict PVL syntax if true; otherwise use an
easier to read format.
PVL_Exception
- From the foundation Write
method.
IOException
- From the OutputStream write
method.Write(OutputStream, int, boolean)
public int Write(OutputStream output) throws PVL_Exception, IOException
output
- The OutputStream to receive what is written.
PVL_Exception
- From the foundation Write
method.
IOException
- From the OutputStream write
method.Write(OutputStream, int, boolean)
public int Write(OutputStream output, boolean indent) throws PVL_Exception, IOException
output
- The OutputStream to receive what is written.indent
- Enable indenting starting at level 0 if true;
disable indenting otherwise.
PVL_Exception
- From the foundation Write
method.
IOException
- From the OutputStream write
method.Write(OutputStream, int, boolean)
public Iterator iterator(int index)
This Iterator does not descend into nested Array Values. The
DefaultMutableTreeNode
base class
provdes various Enumeration objects that will traverse the
hierarchy in different orders.
For non-Array Values an "empty" Iterator will be provided. This will act the same as an Iterator on an empty data Vector.
index
- The starting list element.
Iterator
,
DefaultMutableTreeNode
public Iterator iterator()
iterator(int)
public ListIterator listIterator(int index)
The functionality of the Value Iterator is provided (which it extends) with the ListIterator interface implemented.
Note: When the Value is an ARRAY
Type, but has
no data Vector, an empty one is provided so the add
method will be able to insert new Values into the Array.
index
- The starting list element.
iterator()
,
ListIterator
public ListIterator listIterator()
listIterator(int)
public Value Find(Value test_value, Selector criteria, Value last_value)
A search is made of the Values contained in this Array, and, recursively, any Arrays it contains. The search is depth-wise: each Array Value is searched when it is encountered.
The search must first find the last_value (having the same object reference) before proceeding with the search for the test_value beginning with the Value following the last_value. If the last_value is null, then the search for the test_value begins with the first Value contained in this Array.
The search compares each value encountered against the test_value
using the Selector criteria's Values_Match
method. The
first Value that matches the test_value is returned. If the
last_value or the test_value is not found, null is returned. If the
last_value could not be found a
PVL_Exception.NO_LAST_LOCATION
warning status is
registered with this Value. If the Value in which to
Find
is not an ARRAY
Type, null will be
returned and a PVL_Exception.ILLEGAL_SYNTAX
warning
status will be set.
The test_value may be any parameter, pre-existing or created ad hoc as a template for the Selector criteria. A Selector offers numerous criteria that may be conditionally applied when comparing the test_value with Array members. Note: The PIRL.PVL package provides a Selection class that implements the Selector interface.
test_value
- A Value object to use for testing Values in
this Array for a match.criteria
- A Selector object providing the methods to
determine if Values match.last_value
- A Value object to be found within the Array
before search comparisons begin. If null, begin the search at
the first element of the Array.
Find
is not an
ARRAY
Type, null will be returned and a
PVL_Exception.ILLEGAL_SYNTAX
warning status will
be set. If the last_value could not be found a
PVL_Exception.NO_LAST_LOCATION
warning status is
registered with this Value.Selector
,
Selection.Values_Match(Value, Value)
public Value Find(byte value)
A test_value is constructed from the primitive value and a selection criteria requiring a data match is provided.
value
- The primitive value for the datum being sought.
Value(byte)
,
Find(Value, Selector, Value)
public Value Find(short value)
A test_value is constructed from the primitive value and a selection criteria requiring a data match is provided.
value
- The primitive value for the datum being sought.
Value(short)
,
Find(Value, Selector, Value)
public Value Find(int value)
A test_value is constructed from the primitive value and a selection criteria requiring a data match is provided.
value
- The primitive value for the datum being sought.
Value(int)
,
Find(Value, Selector, Value)
public Value Find(long value)
A test_value is constructed from the primitive value and a selection criteria requiring a data match is provided.
value
- The primitive value for the datum being sought.
Value(long)
,
Find(Value, Selector, Value)
public Value Find(float value)
A test_value is constructed from the primitive value and a selection criteria requiring a data match is provided.
value
- The primitive value for the datum being sought.
Value(float)
,
Find(Value, Selector, Value)
public Value Find(double value)
A test_value is constructed from the primitive value and a selection criteria requiring a data match is provided.
value
- The primitive value for the datum being sought.
Value(double)
,
Find(Value, Selector, Value)
public Value Find(Object value) throws PVL_Exception
A test_value is constructed from the object and a selection criteria requiring a data match is provided.
value
- The object having the value for the datum being sought.
PVL_Exception
- If a Value could not be constructed from
the Object.Value(Object)
,
Find(Value, Selector, Value)
public Value Find(int type, Value last_value)
The Type matching is specific. For a general Type match - i.e.
where any two NUMERIC
, STRING
or
ARRAY
Values will match - use:
Find (new Value ().Type (type), new Selection ().Type (true).Specific (false), last_value);
type
- The Type code to search for.last_value
- A Value object to be found within the Array
before search comparisons begin. If null, begin the search at
the first element of the Array.
Find(int)
,
Find(Value, Selector, Value)
,
Selection.Type(boolean)
,
Selection.Specific(boolean)
public Value Find(Value test_value)
A complete match requires an exact match of the Value data and its Type (as well as the numeric base for integers), and any units String. Note: Value contents, not Value object references, are compared.
test_value
- The Value to use when testing for a match.
Find(Value, Selector, Value)
public Value Find(Value test_value, Value last_value)
test_value
- A Value object to use for testing Values in
this Array for a match.last_value
- A Value object to be found within the Array
before search comparisons begin. If null, begin the search at
the first element of the Array.
Find(Value)
,
Find(Value, Selector, Value)
public Value Find(Value test_value, Selector criteria)
test_value
- A Value to use for testing Values in this Array
for a match.criteria
- A Selector object providing the methods to
determine if Values match.
Find(Value, Selector, Value)
public void setUserObject(Object object)
setUserObject
in interface MutableTreeNode
setUserObject
in class DefaultMutableTreeNode
object
- Since the userObject
of a Value is a
reference to itself, it is illegal to use this method. A
PVL_Exception.BAD_ARGUMENT
warning status is set.DefaultMutableTreeNode.setUserObject(Object)
public void setAllowsChildren(boolean allows)
setAllowsChildren
in class DefaultMutableTreeNode
allows
- Since the ability of a Value to have children is
totally determined by its Type (only Arrays may have a children
data Vector), this argument is ignored and a
PVL_Exception.ILLEGAL_SYNTAX
warning status is
set.DefaultMutableTreeNode.setAllowsChildren(boolean)
public void add(MutableTreeNode value) throws IllegalArgumentException
Add
method.
add
in class DefaultMutableTreeNode
value
- A MutableTreeNode that must be a Value object.
IllegalArgumentException
- If the value argument is not a
Value object, or the Add
method threw a
PVL_Exception (in which case it's message is used for the
exception message).Add(Value)
,
DefaultMutableTreeNode.add(MutableTreeNode)
public void insert(MutableTreeNode value, int index) throws IllegalArgumentException
Insert
method.
insert
in interface MutableTreeNode
insert
in class DefaultMutableTreeNode
value
- A MutableTreeNode that must be a Value object.index
- The index in the Array where the Value is to be
inserted.
IllegalArgumentException
- If the value argument is not
a Value object, or the Insert
method threw a
PVL_Exception (in which case it's message is used for the
exception message).Insert(Value, int)
,
DefaultMutableTreeNode.insert(MutableTreeNode, int)
public void remove(int index)
Remove
method.
remove
in interface MutableTreeNode
remove
in class DefaultMutableTreeNode
index
- The index of the element in the Array to remove.Remove(int)
,
DefaultMutableTreeNode.remove(int)
public void remove(MutableTreeNode value) throws IllegalArgumentException
Remove
method.
remove
in interface MutableTreeNode
remove
in class DefaultMutableTreeNode
value
- A MutableTreeNode that must be a Value object.
IllegalArgumentException
- If the value argument is not
a Value object.Remove(Value)
,
DefaultMutableTreeNode.remove(MutableTreeNode)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |