com.tensegrity.generic.attribute.meta
Interface AttributeTypeSet


public interface AttributeTypeSet

This interface defines an object that is able to keep a set of AttributeTypes.

Version:
$Id: AttributeTypeSet.java,v 1.19 2003/08/27 12:07:56 AndreasEbbert Exp $
Author:
M. Kegel

Method Summary
 void add(AttributeType attributeType)
          Adds the given AttributeType to this AttributeTypeSet.
 java.util.Iterator iterator()
          Returns the AttributeType's in this set as a java.util.Iterator.
 int size()
          Returns the number of elements in this AttributeTypeSet.
 void visit(AttributeTypeSetVisitor visitor)
          Visits this AttributeSet and all nested AttributeSets.
 

Method Detail

size

public int size()
Returns the number of elements in this AttributeTypeSet.

Returns:
number of elements in the typeset.

add

public void add(AttributeType attributeType)
Adds the given AttributeType to this AttributeTypeSet.

Parameters:
attributeType - the attribute type to add

iterator

public java.util.Iterator iterator()
Returns the AttributeType's in this set as a java.util.Iterator.

Returns:
an iterator for all the elements of this typeset.

visit

public void visit(AttributeTypeSetVisitor visitor)
Visits this AttributeSet and all nested AttributeSets. It then invokes visit(Attribute) on the given AttributeCollectionVisitor on all found attributes.

Parameters:
visitor - a visitor object that acts on the visited attributes types and attribute type sets.


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.