javax.accessibility
public class AccessibleRelationSet extends Object
Since: 1.2
See Also: AccessibleRelation
UNKNOWN: updated to 1.4
Field Summary | |
---|---|
protected Vector<AccessibleRelation> | relations
The list of relations, should be instances of AccessibleRelation. |
Constructor Summary | |
---|---|
AccessibleRelationSet()
Create an empty relation set. | |
AccessibleRelationSet(AccessibleRelation[] relations)
Create a relation set initialized with the given relations, duplicates are
ignored.
|
Method Summary | |
---|---|
boolean | add(AccessibleRelation relation)
Add a new relation to the current set. |
void | addAll(AccessibleRelation[] array)
Add all of the relations to the current set. |
void | clear()
Clear all relations in the set. |
boolean | contains(String key)
Check if the relation key is in the set.
|
AccessibleRelation | get(String key)
Get the relation that matches the key.
|
boolean | remove(AccessibleRelation relation)
Remove a relation from the set. |
int | size()
Return the number of relations in the set.
|
AccessibleRelation[] | toArray()
Return the relation set as an array.
|
String | toString()
Return a localized, comma-separated string representing all relations
in the set. |
See Also: add (AccessibleRelation[])
remove contains get size toArray clear
Parameters: relations the relations to insert
Throws: NullPointerException if relations is null
Parameters: relation the relation to add
Returns: true if the set was modified, which is always the case
Throws: NullPointerException if relation is null
Parameters: array the array of relations to add
Throws: NullPointerException if array is null or has null entries
Parameters: key the relation to locate
Returns: true if it is in the set
Parameters: key the relation to locate
Returns: the relation in the set, or null
Parameters: relation the state to remove
Returns: true if the set changed
Returns: the set size
Returns: an array of the current relations
Returns: the string representation
See Also: AccessibleBundle