com.tensegrity.generic.attribute
Interface AttributeList
- All Superinterfaces:
- AttributeCollection, java.lang.Cloneable, Restrictable
- public interface AttributeList
- extends AttributeCollection
This interface defines an ordered collection of attributes. An
AttributeList can contain Attributes with the same
name. So there might be two Attributes a1 and a2 for which
a1.getName().equals(a2.getName()) is true. An
AttributeList can contain nested AttributeLists.
- Version:
- $Id: AttributeList.java,v 1.5 2005/03/01 11:49:46 KevinCVS Exp $
- Author:
- M. Kegel,
|
Method Summary |
java.util.Iterator |
get(java.lang.String name)
Returns all Attribute instances with the given name or an empty
Iterator if no Attribute matches the given
name. |
java.util.Iterator |
remove(java.lang.String name)
Removes all Attribute instances with the given name from the
list. |
| 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 |
remove
public java.util.Iterator remove(java.lang.String name)
- Removes all
Attribute instances with the given name from the
list. In case no Attribute with the name exists, the
method returns an empty Iterator. Nested
AttributeCollection objects are not searched.
- Parameters:
name - the name of the Attribute to be removed.
- Returns:
- iterator that refers to the attributes with the given name.
Find more information in the class documentation
get
public java.util.Iterator get(java.lang.String name)
- Returns all
Attribute instances with the given name or an empty
Iterator if no Attribute matches the given
name.
- Parameters:
name - the name of the attribute to return.
- Returns:
- an
Iterator that refers to the
Attributes with the given name. Find more information in the class documentation
Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.