com.arsdigita.templating.html
Interface AttributeMap

All Known Implementing Classes:
AttributeMapImpl

public interface AttributeMap

Similar to the Attributes interface in SAX. Not really a Map, insofar as it only supports a subset of the Map methods.

One of the reasons this is an interface rather than a class is because we don't want AttributeMap to have any setter methods.

Since:
2002-08-29
Version:
$Id: //core-platform/dev/src/com/arsdigita/templating/html/AttributeMap.java#5 $
Author:
Vadim Nasardinov (vadimn@redhat.com)

Nested Class Summary
static interface AttributeMap.Pair
          Represents a single attribute as a name-value pair.
 
Method Summary
 boolean contains(String qName)
          Returns true if the attribute map contains an attribute named qName.
 String getValue(String qName)
          Returns the value of the attribute named qName.
 Iterator keys()
          Returns an iterator over the attribute names contained in this map.
 Iterator pairs()
          Returns an iterator over name-value pairs contained in this map.
 int size()
          Returns the number of attributes.
 

Method Detail

contains

public boolean contains(String qName)
Returns true if the attribute map contains an attribute named qName.


getValue

public String getValue(String qName)
Returns the value of the attribute named qName.


size

public int size()
Returns the number of attributes.


keys

public Iterator keys()
Returns an iterator over the attribute names contained in this map.


pairs

public Iterator pairs()
Returns an iterator over name-value pairs contained in this map.



Copyright (c) 2004 Red Hat, Inc. Corporation. All Rights Reserved. Generated at July 21 2004:2337 UTC