|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GCOwner
Interface for objects that "own" control values.
Method Summary | |
---|---|
void |
addName(GCValue newValue)
Add a name to the defsList map. |
void |
appendValue(GCValue value)
Add a GCV to the end of the current list of GCVs. |
boolean |
checkAllowedType(int type)
Check whether or not a particular Control Value type is allowed in this collection of GCVs. |
void |
insertValue(GCValue newValue,
GCValue insertionPoint)
Insert a GCV into the current list of GCVs. |
void |
insertValue(GCValue newValue,
String insertionPoint)
Insert a GCV into the current list of GCVs. |
boolean |
isNameAllowed(String name)
Check to see if a name is allowed. |
Iterator |
iterator()
Return an Iterator instance that can be used to iterate
through all descendant GCVs. |
void |
removeName(GCValue oldValue)
Remove a name from the defsList map. |
boolean |
removeValue(GCValue value)
Remove a GCV from the list of GCVs. |
boolean |
removeValue(String name)
Remove a GCV from the list of GCVs. |
void |
replaceValue(GCValue newValue,
GCValue oldValue)
|
Iterator |
shallowIterator()
Return an Iterator instance that can be used to iterate
through the list of GCVs. |
Method Detail |
---|
void appendValue(GCValue value) throws GCVArgumentException
value
- GCValue
object to add.
GCVArgumentException
- thrown if value
has the same
name as a GCV already in the list.void insertValue(GCValue newValue, String insertionPoint) throws GCVArgumentException
newValue
- GCValue object to add.insertionPoint
- name of GCV in front of which newValue
is to
be inserted.
GCVArgumentException
- thrown if insertionPoint
doesn't match the
name of any GCV in the list, or if the name of newValue
matches the
name of a GCV already in the list.void insertValue(GCValue newValue, GCValue insertionPoint) throws GCVArgumentException
newValue
- GCValue object to add.insertionPoint
- GCV in front of which newValue
is to
be inserted.
GCVArgumentException
- thrown if insertionPoint
doesn't appear in
the list, or if the name of newValue
matches the
name of a GCV already in the list.void replaceValue(GCValue newValue, GCValue oldValue) throws GCVArgumentException
GCVArgumentException
boolean removeValue(String name)
name
- name of GCV to remove.
true
if name
was found and removed,
false
otherwise.boolean removeValue(GCValue value)
value
- the GCV to remove.
true
if the GCV was found and removed,
false
otherwise.Iterator iterator()
Iterator
instance that can be used to iterate
through all descendant GCVs. This iterator will return all descendant
GCVs that are real GCVs (not Group or Subordinates).
The Iterator
's next
() method returns
GCValue
instances.
Iterator
instance.shallowIterator()
Iterator shallowIterator()
Iterator
instance that can be used to iterate
through the list of GCVs. The iterator returned will iterate through
only GCValues that are direct children of this instance.
The Iterator
's next
() method returns
GCValue
instances.
Iterator
instance.iterator()
boolean isNameAllowed(String name)
name
- the name to check
true
or false
void addName(GCValue newValue) throws GCVArgumentException
GCParent
.
newValue
- new GCValue
GCVArgumentException
void removeName(GCValue oldValue)
GCParent
.
oldValue
- GCValue
being removed.boolean checkAllowedType(int type)
Classes derived from GCDefinitions
(e.g., ShimParams
) may allow more or
fewer types.
type
- GCValue.TYPE_STRING
, etc.
true
if allowed, false
otherwise
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |