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.
AccessibleRelation
Modifier and Type | Field and Description |
---|---|
protected Vector | relations
Each entry in the |
Access | Constructor and Description |
---|---|
public | |
public | AccessibleRelationSet(AccessibleRelation[]
an array of relations)AccessibleRelation describing the
relation setCreates a new relation with the initial set of relations contained in the array of relations passed in. Duplicate entries are ignored. |
Modifier and Type | Method and Description |
---|---|
public boolean | Returns: true if relation is added to the relation set;
false if the relation set is unchangedthe relation to add to the relation set relation)Adds a new relation to the current relation set. |
public void | addAll(AccessibleRelation[]
AccessibleRelation array describing the
relation setAdds all of the relations to the existing relation set. |
public void | |
public boolean | |
public AccessibleRelation | |
public boolean | Returns: true if the relation is in the relation set;
false if the relation set is unchangedthe relation to remove from the relation set relation)Removes a relation from the current relation set. |
public int | Returns: the number of relations in the relation setReturns the number of relations in the relation set. |
public AccessibleRelation[] | Returns: AccessibleRelation array contacting the current relationReturns the current relation set as an array of
|
public String | Returns: comma separated localized stringOverrides java. Creates a localized string representing all the relations in the set using the default locale. |
relations | back to summary |
---|---|
protected Vector<AccessibleRelation> relations Each entry in the |
AccessibleRelationSet | back to summary |
---|---|
public AccessibleRelationSet() Creates a new empty relation set. |
AccessibleRelationSet | back to summary |
---|---|
public AccessibleRelationSet(AccessibleRelation[] relations) Creates a new relation with the initial set of relations contained in the array of relations passed in. Duplicate entries are ignored.
|
add | back to summary |
---|---|
public boolean add(AccessibleRelation relation) Adds a new relation to the current relation set. If the relation is already in the relation set, the target(s) of the specified relation is merged with the target(s) of the existing relation. Otherwise, the new relation is added to the relation set.
|
addAll | back to summary |
---|---|
public void addAll(AccessibleRelation[] relations) Adds all of the relations to the existing relation set. Duplicate entries are ignored.
|
clear | back to summary |
---|---|
public void clear() Removes all the relations from the current relation set. |
contains | back to summary |
---|---|
public boolean contains(String key) Returns whether the relation set contains a relation that matches the specified key.
|
get | back to summary |
---|---|
public AccessibleRelation get(String key) Returns the relation that matches the specified key.
|
remove | back to summary |
---|---|
public boolean remove(AccessibleRelation relation) Removes a relation from the current relation set. If the relation is not
in the set, the relation set will be unchanged and the return value will
be
|
size | back to summary |
---|---|
public int size() Returns the number of relations in the relation set.
|
toArray | back to summary |
---|---|
public AccessibleRelation[] toArray() Returns the current relation set as an array of
|
toString | back to summary |
---|---|
public String toString() Overrides java. Creates a localized string representing all the relations in the set using the default locale.
|