Lines Matching defs:relation

34  * Class AccessibleRelationSet determines a component's relation set.  The
35 * relation set of a component is a set of AccessibleRelation objects that
59 * Creates a new empty relation set.
66 * Creates a new relation with the initial set of relations contained in
70 * relation set.
82 * Adds a new relation to the current relation set. If the relation
83 * is already in the relation set, the target(s) of the specified
84 * relation is merged with the target(s) of the existing relation.
85 * Otherwise, the new relation is added to the relation set.
87 * @param relation the relation to add to the relation set
88 * @return true if relation is added to the relation set; false if the
89 * relation set is unchanged
91 public boolean add(AccessibleRelation relation) {
96 // Merge the relation targets if the key exists
97 AccessibleRelation existingRelation = get(relation.getKey());
99 relations.addElement(relation);
103 Object [] newTarget = relation.getTarget();
120 * Adds all of the relations to the existing relation set. Duplicate
123 * @param relations AccessibleRelation array describing the relation set.
137 * Removes a relation from the current relation set. If the relation
138 * is not in the set, the relation set will be unchanged and the
139 * return value will be false. If the relation is in the relation
143 * @param relation the relation to remove from the relation set
144 * @return true if the relation is in the relation set; false if the
145 * relation set is unchanged
147 public boolean remove(AccessibleRelation relation) {
151 return relations.removeElement(relation);
156 * Removes all the relations from the current relation set.
165 * Returns the number of relations in the relation set.
176 * Returns whether the relation set contains a relation
179 * @return true if the relation is in the relation set; otherwise false
186 * Returns the relation that matches the specified key.
188 * @return the relation, if one exists, that matches the specified key.
197 AccessibleRelation relation =
199 if (relation != null && relation.getKey().equals(key)) {
200 return relation;
208 * Returns the current relation set as an array of AccessibleRelation
209 * @return AccessibleRelation array contacting the current relation.