public class AccessibleRelationSet extends Object
AccessibleRelationSet determines a component's relation set. The relation set of a component is a set of AccessibleRelation objects that describe the component's relationships with other components.| Modifier and Type | Field | Description | 
|---|---|---|
| protected Vector | relations | Each entry in the  Vectorrepresents anAccessibleRelation. | 
| Constructor | Description | 
|---|---|
| AccessibleRelationSet() | Creates a new empty relation set. | 
| AccessibleRelationSet | Creates a new relation with the initial set of relations contained in the array of relations passed in. | 
| Modifier and Type | Method | Description | 
|---|---|---|
| boolean | add | Adds a new relation to the current relation set. | 
| void | addAll | Adds all of the relations to the existing relation set. | 
| void | clear() | Removes all the relations from the current relation set. | 
| boolean | contains | Returns whether the relation set contains a relation that matches the specified key. | 
| AccessibleRelation | get | Returns the relation that matches the specified key. | 
| boolean | remove | Removes a relation from the current relation set. | 
| int | size() | Returns the number of relations in the relation set. | 
| AccessibleRelation[] | toArray() | Returns the current relation set as an array of  AccessibleRelation. | 
| String | toString() | Creates a localized string representing all the relations in the set using the default locale. | 
protected Vector<AccessibleRelation> relations
Vector represents an AccessibleRelation.public AccessibleRelationSet()
public AccessibleRelationSet(AccessibleRelation[] relations)
relations - an array of AccessibleRelation describing the relation setpublic boolean add(AccessibleRelation relation)
relation - the relation to add to the relation settrue if relation is added to the relation set; false if the relation set is unchangedpublic void addAll(AccessibleRelation[] relations)
relations - AccessibleRelation array describing the relation setpublic boolean remove(AccessibleRelation relation)
false. If the relation is in the relation set, it will be removed from the set and the return value will be true.relation - the relation to remove from the relation settrue if the relation is in the relation set; false if the relation set is unchangedpublic void clear()
public int size()
public boolean contains(String key)
key - the AccessibleRelation keytrue if the relation is in the relation set; otherwise false
public AccessibleRelation get(String key)
key - the AccessibleRelation keynull is returned.public AccessibleRelation[] toArray()
AccessibleRelation.AccessibleRelation array contacting the current relationpublic String toString()
    © 1993, 2023, Oracle and/or its affiliates. All rights reserved.
Documentation extracted from Debian's OpenJDK Development Kit package.
Licensed under the GNU General Public License, version 2, with the Classpath Exception.
Various third party code in OpenJDK is licensed under different licenses (see Debian package).
Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
    https://docs.oracle.com/en/java/javase/21/docs/api/java.desktop/javax/accessibility/AccessibleRelationSet.html