Package eu.bandm.tools.util
Class NamespaceName2String
- All Implemented Interfaces:
- Map<NamespaceName,- String> 
Maintains a map from  to 
String, and reads different file formats.- 
Nested Class SummaryNested classes/interfaces inherited from class java.util.AbstractMapAbstractMap.SimpleEntry<K extends Object,V extends Object>, AbstractMap.SimpleImmutableEntry<K extends Object, V extends Object> 
- 
Constructor SummaryConstructorsConstructorDescriptionConstruct an empty map.Constructs a map with the given data.
- 
Method SummaryModifier and TypeMethodDescriptionbooleancontainsPattern(String patternMarker) Returns whether the pattern marker is contained anywhere in the values of this map.voiddump(PrintStream p) Print this map in a symbolic representation to the print stream.entrySet()booleanDirectly delegate to the implementing map.voidCreate a map reading the data from the given source.voidfrom(InputStream s, String encoding) Create a map reading the data from the given source.voidCreate a map reading the data from the given source.voidAdd a key/value pair to the map.inthashCode()Directly delegate to the implementing map.put(NamespaceName k, String v) replacePattern(String patternMarker, String value) Return a new copy in the data of which all occurences of the patternMarker are replaced by the given value.Methods inherited from class java.util.AbstractMapclear, clone, containsKey, containsValue, get, isEmpty, keySet, putAll, remove, size, toString, valuesMethods inherited from class java.lang.Objectfinalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Mapcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
- 
Constructor Details- 
NamespaceName2Stringpublic NamespaceName2String()Construct an empty map. (This constructor is required by collections framework convention.)
- 
NamespaceName2StringConstructs a map with the given data.
 
- 
- 
Method Details- 
equalsDirectly delegate to the implementing map.- Specified by:
- equalsin interface- Map<NamespaceName,- String> 
- Overrides:
- equalsin class- AbstractMap<NamespaceName,- String> 
 
- 
hashCodepublic int hashCode()Directly delegate to the implementing map.- Specified by:
- hashCodein interface- Map<NamespaceName,- String> 
- Overrides:
- hashCodein class- AbstractMap<NamespaceName,- String> 
 
- 
fromCreate a map reading the data from the given source. For details of the file format seefrom(reader).- Throws:
- IOException
 
- 
fromCreate a map reading the data from the given source. For details of the file format seefrom(reader).- Throws:
- IOException
 
- 
fromCreate a map reading the data from the given source. Each line must start with a namespace name used as a key. The key is limited by a single blank. It must follow the inline syntax, seeNamespaceName.parseInlineURIFormat(java.lang.String). The rest of the line, after that separating single blank, is the value stored with the key. With double keys, the later overrides the earlier without notice.- Throws:
- IOException
 
- 
fromAdd a key/value pair to the map. The key must follow the inline syntax, seeNamespaceName.parseInlineURIFormat(java.lang.String). With double keys, the later overrides the earlier without notice.- Throws:
- IllegalArgumentException
 
- 
dumpPrint this map in a symbolic representation to the print stream.
- 
entrySet- Specified by:
- entrySetin interface- Map<NamespaceName,- String> 
- Specified by:
- entrySetin class- AbstractMap<NamespaceName,- String> 
 
- 
put- Specified by:
- putin interface- Map<NamespaceName,- String> 
- Overrides:
- putin class- AbstractMap<NamespaceName,- String> 
 
- 
containsPatternReturns whether the pattern marker is contained anywhere in the values of this map. (Prototypical use with xslt style-sheet parameters.)
- 
replacePatternReturn a new copy in the data of which all occurences of the patternMarker are replaced by the given value. (Prototypical use with xslt style-sheet parameters.)
 
-