public class AccessibleRelationSet extends Object
AccessibleRelation
| Modifier and Type | Field and Description |
|---|---|
protected Vector |
relations
Each entry in the Vector represents an AccessibleRelation.
|
| Constructor and Description |
|---|
AccessibleRelationSet()
Creates a new empty relation set.
|
AccessibleRelationSet(AccessibleRelation
Creates a new relation with the initial set of relations contained in the array of relations passed in.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
add(AccessibleRelation
Adds a new relation to the current relation set.
|
void |
addAll(AccessibleRelation
Adds all of the relations to the existing relation set.
|
void |
clear()
Removes all the relations from the current relation set.
|
boolean |
contains(String
Returns whether the relation set contains a relation that matches the specified key.
|
AccessibleRelation |
get(String
Returns the relation that matches the specified key.
|
boolean |
remove(AccessibleRelation
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
public AccessibleRelationSet()
public AccessibleRelationSet(AccessibleRelation[] relations)
relations - an array of AccessibleRelation describing the relation set.
public boolean add(AccessibleRelationrelation)
relation - the relation to add to the relation set
public void addAll(AccessibleRelation[] relations)
relations - AccessibleRelation array describing the relation set.
public boolean remove(AccessibleRelationrelation)
relation - the relation to remove from the relation set
public void clear()
public int size()
public boolean contains(Stringkey)
key - the AccessibleRelation key
public AccessibleRelationget(String key)
key - the AccessibleRelation key
public AccessibleRelation[] toArray()
public StringtoString()
toString in class
Object
AccessibleBundle.toDisplayString(java.lang.String, java.util.Locale)