rj.tools.jcsc.rules
Class XMLRulesMap

java.lang.Object
  extended by java.util.AbstractMap
      extended by rj.tools.jcsc.rules.XMLRulesMap
All Implemented Interfaces:
java.util.Map

public class XMLRulesMap
extends java.util.AbstractMap

Class through which the Rules are aquired reading them from a XML Document. Once a rules was retrieved it is cached

Version:
__0.98.1__
Author:
Ralph Jocham

Nested Class Summary
 
Nested classes/interfaces inherited from class java.util.AbstractMap
java.util.AbstractMap.SimpleEntry<K,V>, java.util.AbstractMap.SimpleImmutableEntry<K,V>
 
Nested classes/interfaces inherited from interface java.util.Map
java.util.Map.Entry<K,V>
 
Constructor Summary
XMLRulesMap(org.w3c.dom.Document document)
          Creates a new XMLRulesMap based on a xml document
 
Method Summary
 java.util.Set entrySet()
          Returns a set view of the mappings contained in this map.
 java.lang.Object get(java.lang.Object key)
          Return the key specified by the key which is the name of the Rule.
 
Methods inherited from class java.util.AbstractMap
clear, clone, containsKey, containsValue, equals, hashCode, isEmpty, keySet, put, putAll, remove, size, toString, values
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

XMLRulesMap

public XMLRulesMap(org.w3c.dom.Document document)
Creates a new XMLRulesMap based on a xml document

Parameters:
document -
Method Detail

get

public java.lang.Object get(java.lang.Object key)
Return the key specified by the key which is the name of the Rule.

Specified by:
get in interface java.util.Map
Overrides:
get in class java.util.AbstractMap
Parameters:
key - of the rule
Returns:
an object of type Rule
See Also:
RuleConstants

entrySet

public java.util.Set entrySet()
Returns a set view of the mappings contained in this map. Each element in this set is a Map.Entry. The set is backed by the map, so changes to the map are reflected in the set, and vice-versa. (If the map is modified while an iteration over the set is in progress, the results of the iteration are undefined.) The set supports element removal, which removes the corresponding entry from the map, via the Iterator.remove, Set.remove, removeAll, retainAll and clear operations. It does not support the add or addAll operations.

Specified by:
entrySet in interface java.util.Map
Specified by:
entrySet in class java.util.AbstractMap
Returns:
a set view of the mappings contained in this map.


(c) 1999-2005 by Ralph Jocham (rjocham72@netscape.net)
JCSC is released under the terms of the GNU General Public License