org.gnu.atk

Class RelationSet

public class RelationSet extends GObject

Constructor Summary
RelationSet()
Create a new empty RelationSet
Method Summary
voidadd(Relation relation)
Add a new relation to the current relation set if it is not already present.
voidadd(RelationType type, AtkObject target)
booleancontains(RelationType relationship)
Determines whether the relation set contains a relation that matches the specified type.
intgetNumRelations()
RelationgetRelation(int index)
RelationgetRelationByType(RelationType type)
voidremove(Relation relation)
Remove a relation from the relation set.

Constructor Detail

RelationSet

public RelationSet()
Create a new empty RelationSet

Method Detail

add

public void add(Relation relation)
Add a new relation to the current relation set if it is not already present.

add

public void add(RelationType type, AtkObject target)

contains

public boolean contains(RelationType relationship)
Determines whether the relation set contains a relation that matches the specified type.

getNumRelations

public int getNumRelations()

getRelation

public Relation getRelation(int index)

getRelationByType

public Relation getRelationByType(RelationType type)

remove

public void remove(Relation relation)
Remove a relation from the relation set.