de.janrufmonitor.framework
Interface IAttributeMap

All Known Subinterfaces:
IAttributeList

public interface IAttributeMap

This interface must be implemented by a AttributeMap object, which should be used in the framework. The Map implementation contains IAttrubute instances as values and the name (String) of the IAttribute as key.

Author:
Thilo Brandt

Method Summary
 void add(IAttribute att)
          Adds the IAttribute object to the map.
 void addAll(IAttributeMap map)
          Adds the IAttributeMap object to the map.
 boolean contains(IAttribute att)
          Checks if the given attribute is already in the map.
 boolean contains(String attName)
          Checks if the given attribute name is already in the map.
 IAttribute get(String name)
          Gets the IAttribute object for the given name.
 Iterator iterator()
          Gets an iterator of the map.
 void remove(IAttribute att)
          Removes the IAttribute object from the map.
 void remove(String attName)
          Removed the IAttribute object with the given name.
 int size()
          Gets the size of the IAttributeMap object.
 

Method Detail

contains

boolean contains(IAttribute att)
Checks if the given attribute is already in the map.

Parameters:
att - The IAttribute to be checked
Returns:
true if it is contained, false if not.

contains

boolean contains(String attName)
Checks if the given attribute name is already in the map.

Parameters:
attName - The name attribute of the IAttribute object.
Returns:
true if it is contained, false if not.

add

void add(IAttribute att)
Adds the IAttribute object to the map.

Parameters:
att - The IAttribute object to be added.

addAll

void addAll(IAttributeMap map)
Adds the IAttributeMap object to the map.

Parameters:
map - The IAttributeMap object to be added.

remove

void remove(IAttribute att)
Removes the IAttribute object from the map.

Parameters:
att - The IAttribute object to be removed.

remove

void remove(String attName)
Removed the IAttribute object with the given name.

Parameters:
attName - The name attribute of the IAttribute object to be removed.

get

IAttribute get(String name)
Gets the IAttribute object for the given name.

Parameters:
name - The name attribute of the requested IAttribute object.
Returns:
IAttribute object or null, if not contained.

size

int size()
Gets the size of the IAttributeMap object.

Returns:
The size as int

iterator

Iterator iterator()
Gets an iterator of the map.

Returns:
iterator of the map. Contains IAttribute instances.


Copyright © 2010 by Thilo Brandt. All Rights Reserved.