rj.tools.jcsc.ui
Class XMLI18nMap

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

public class XMLI18nMap
extends java.util.AbstractMap

Map which contains the strings depending on specific language. The default language is english.

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
XMLI18nMap(org.w3c.dom.Document document)
          Creates a new XMLI18nMap based on a xml document
XMLI18nMap(org.w3c.dom.Document document, java.lang.String language)
          Creates a new XMLI18nMap based on a xml document based on a specific language
 
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

XMLI18nMap

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

Parameters:
document -

XMLI18nMap

public XMLI18nMap(org.w3c.dom.Document document,
                  java.lang.String language)
Creates a new XMLI18nMap based on a xml document based on a specific language

Parameters:
document -
language -
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