com.tensegrity.generic.attribute
Interface AttributeSet

All Superinterfaces:
AttributeCollection, java.lang.Cloneable, Restrictable

public interface AttributeSet
extends AttributeCollection

This interface defines a collection of Attributes. It complies to the mathematical definition of a set. For an AttributeSet it is not allowed to add attributes with the same name, so you can not have two Attributes a1 and a2 for which a1.getName().equals(a2.getName()) is true.

Version:
$Id: AttributeSet.java,v 1.45 2005/03/01 11:49:46 KevinCVS Exp $
Author:
M. Kegel, S. RUtz

Field Summary
 
Fields inherited from interface com.tensegrity.generic.attribute.AttributeCollection
SEPARATOR
 
Method Summary
 Attribute get(java.lang.String name)
          Returns the Attribute with the given name or null if no such element exists.
 Attribute remove(java.lang.String name)
          Removes the Attribute with the given name from the set and returns it.
 
Methods inherited from interface com.tensegrity.generic.attribute.AttributeCollection
add, clear, clone, delete, depth, find, findAndDelete_nothrow, findAndDelete, findAndFlatten, findAndRemove_nothrow, findAndRemove, findNoThrow, freeze, getTypeSet, getTypeTree, iterator, merge, size, unfreeze, visit
 
Methods inherited from interface com.tensegrity.generic.constraint.Restrictable
getConstraint, setConstraint
 

Method Detail

remove

public Attribute remove(java.lang.String name)
Removes the Attribute with the given name from the set and returns it. In case no Attribute with the given name is inside the set, a null pointer is returned.

Parameters:
name - the name of the attribute to be removed.
Returns:
the removed Attribute or null if the Attribute was not found.

Find more information in the class documentation


get

public Attribute get(java.lang.String name)
Returns the Attribute with the given name or null if no such element exists.

Parameters:
name - the name of the Attribute to return.
Returns:
the found Attribute, null if no Attribute was found.

Find more information in the class documentation



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