rj.tools.jcsc.rules
Class XMLRulesMap

java.lang.Object
  extended byjava.util.AbstractMap
      extended byrj.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 inherited from class java.util.Map
java.util.Map.Entry
 
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.

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.

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