public class VJDFAttributeMap extends java.util.Vector<JDFAttributeMap>
| Constructor and Description |
|---|
VJDFAttributeMap()
constructor
|
VJDFAttributeMap(JDFAttributeMap moreMap) |
VJDFAttributeMap(JDFAttributeMap[] toAdd)
constructor from array, the map elements are not cloned
|
VJDFAttributeMap(java.util.Vector<JDFAttributeMap> toAdd)
copy constructor, the map elements are cloned
|
| Modifier and Type | Method and Description |
|---|---|
void |
addall(VJDFAttributeMap v)
Deprecated.
use addAll
|
void |
addElement(JDFAttributeMap map) |
void |
appendUnique(JDFAttributeMap map) |
void |
appendUnique(VJDFAttributeMap maps)
Method appendUnique.
|
VJDFAttributeMap |
clone() |
boolean |
containsKey(java.lang.Object key) |
JDFAttributeMap |
elementAt(int i)
Returns the element at the given position
|
boolean |
equals(java.lang.Object other)
equals - Compares two map vectors, returns true if content equal regardless of element order, otherwise false.
If input is not of type VJDFAttributeMap, result of superclasses equals method is returned. |
void |
extendMap(java.lang.String strKey,
java.util.List<java.lang.String> vsValues)
replace all maps in this with n maps that have the values strKey, vsValues
|
JDFAttributeMap |
get(int i)
Returns the element at the given position (may be<0 to count backwards)
|
VJDFAttributeMap |
getAndMaps(JDFAttributeMap map)
andMap - builds a new vector of maps with identical pairs of both maps does not modify this
|
JDFAttributeMap |
getCommonMap()
return the map that is common to all elements of this.
|
VString |
getKeys()
return list of all keys
|
VJDFAttributeMap |
getMatchingMaps(java.lang.String key,
java.lang.String regExp,
boolean ignoreCase)
Method overlapMap.
|
static VJDFAttributeMap |
getNonEmpty(VJDFAttributeMap v) |
VJDFAttributeMap |
getOrMaps(JDFAttributeMap map)
andMap - builds a new vector of maps with identical pairs of both maps does not modify this
|
VJDFAttributeMap |
getOrMaps(VJDFAttributeMap vMap)
andMap - builds a new vector of maps with identical pairs of both maps does not modify this
|
VJDFAttributeMap |
getOverlapMaps(JDFAttributeMap map)
Method overlapMap.
|
VString |
getPartValues(java.lang.String strKey,
boolean bUnique) |
java.util.Vector<JDFAttributeMap> |
getVector()
Deprecated.
- use this
|
static VJDFAttributeMap |
getVector(JDFAttributeMap partMap) |
boolean |
hasEntryWithEqualKeyValuePairs(JDFAttributeMap attmap)
Deprecated.
use contains
|
int |
hashCode()
hashCode complements equals() to fulfill the equals/hashCode contract
|
static boolean |
isEmpty(VJDFAttributeMap v)
are we null or empty or contain only an empty JDFAttributeMap
|
int |
maxSize()
Return the maximum size size of a JDFAttributeMap in this
|
int |
minSize()
Return the minimum size size of a JDFAttributeMap in this
|
void |
overlapMap(JDFAttributeMap map)
Method overlapMap.
|
void |
overlapMap(VJDFAttributeMap vMap)
Method overlapMap.
|
boolean |
overlapsMap(JDFAttributeMap map)
Method overlapMap.
|
boolean |
overlapsMap(VJDFAttributeMap vMap)
Method overlapsMap.
|
void |
put(JDFAttributeMap commonMap)
put the value of all keys into every existing map
|
void |
put(java.lang.Object key,
java.lang.Object value)
put the key value pair into all entries
|
void |
put(java.lang.String key,
java.lang.String value)
put the key value pair into all entries; if no entries are there, create exactly one entry with the given key value pair
|
void |
reduceKey(java.util.Vector vKeys)
Deprecated.
use reduceMap
|
void |
reduceMap(java.util.Collection<java.lang.String> keySet)
reduce each JDFAttributeMap in
this by keySet (only entries in keyset are retained) |
void |
removeElementAt(int i) |
void |
removeKey(java.lang.String key)
remove the key specified and then erase any duplicates and emptys
|
void |
removeKeys(java.util.Collection<java.lang.String> set)
remove the keys specified in set and then erase any duplicates and emptys
|
void |
removeMaps(JDFAttributeMap map)
remove all matching maps from this i.e.
|
void |
setElementAt(JDFAttributeMap mTmp,
int j) |
void |
setVector(java.util.List<JDFAttributeMap> vec)
sets the Vector with JDFAttributeMap elements
|
java.lang.String |
showKeys(java.lang.String sepMap,
java.lang.String sepEntry) |
boolean |
subMap(JDFAttributeMap map)
Method subMap.
|
boolean |
subMap(VJDFAttributeMap vMap)
Method subMap.
|
java.lang.String |
toString()
toString
|
void |
unify()
unify - make VElement unique, retaining initial order
|
add, add, addAll, addAll, capacity, clear, contains, containsAll, copyInto, elements, ensureCapacity, firstElement, forEach, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeIf, removeRange, replaceAll, retainAll, set, setSize, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic VJDFAttributeMap()
public VJDFAttributeMap(java.util.Vector<JDFAttributeMap> toAdd)
toAdd - Vector of elements to clonepublic VJDFAttributeMap(JDFAttributeMap[] toAdd)
toAdd - the arraypublic VJDFAttributeMap(JDFAttributeMap moreMap)
moreMap - the single attribute map to addpublic java.lang.String toString()
toString in class java.util.Vector<JDFAttributeMap>public static VJDFAttributeMap getNonEmpty(VJDFAttributeMap v)
v - public static VJDFAttributeMap getVector(JDFAttributeMap partMap)
partMap - public static boolean isEmpty(VJDFAttributeMap v)
v - public java.lang.String showKeys(java.lang.String sepMap,
java.lang.String sepEntry)
sepMap - the separator between mapssepEntry - the separator between map entriespublic VString getPartValues(java.lang.String strKey, boolean bUnique)
strKey - the attribute to get values frombUnique - if true, ensure unique vector, else the vector corresponds to the vector of valuespublic void extendMap(java.lang.String strKey,
java.util.List<java.lang.String> vsValues)
strKey - the new key to addvsValues - String of valuespublic VJDFAttributeMap getAndMaps(JDFAttributeMap map)
map - the given mappublic VJDFAttributeMap getOrMaps(JDFAttributeMap map)
map - the given mappublic VJDFAttributeMap getOrMaps(VJDFAttributeMap vMap)
map - the given mappublic boolean containsKey(java.lang.Object key)
key - the key to check forMap.containsKey(java.lang.Object)public void setVector(java.util.List<JDFAttributeMap> vec)
vec - the Vector with JDFAttributeMap elementspublic int maxSize()
public int minSize()
public JDFAttributeMap elementAt(int i)
elementAt in class java.util.Vector<JDFAttributeMap>i - the given position (may be<0 to count backwards)public JDFAttributeMap get(int i)
get in interface java.util.List<JDFAttributeMap>get in class java.util.Vector<JDFAttributeMap>i - the given positionpublic void removeKeys(java.util.Collection<java.lang.String> set)
set - public void removeElementAt(int i)
removeElementAt in class java.util.Vector<JDFAttributeMap>public void removeKey(java.lang.String key)
key - @Deprecated public boolean hasEntryWithEqualKeyValuePairs(JDFAttributeMap attmap)
attmap - the given JDFAttributeMap element@Deprecated public void reduceKey(java.util.Vector vKeys)
vKeys - public void reduceMap(java.util.Collection<java.lang.String> keySet)
this by keySet (only entries in keyset are retained)keySet - public VString getKeys()
@Deprecated public java.util.Vector<JDFAttributeMap> getVector()
public JDFAttributeMap getCommonMap()
public void appendUnique(JDFAttributeMap map)
map - map to appendpublic void addElement(JDFAttributeMap map)
addElement in class java.util.Vector<JDFAttributeMap>public void unify()
public void appendUnique(VJDFAttributeMap maps)
maps - maps to append@Deprecated public void addall(VJDFAttributeMap v)
v - public void overlapMap(JDFAttributeMap map)
map - the map to check againstpublic VJDFAttributeMap getOverlapMaps(JDFAttributeMap map)
map - the map to check againstpublic VJDFAttributeMap getMatchingMaps(java.lang.String key, java.lang.String regExp, boolean ignoreCase)
key - the key to matchregExp - the simplified regexpignoreCase - duh...public void overlapMap(VJDFAttributeMap vMap)
vMap - the map to check againstpublic boolean overlapsMap(JDFAttributeMap map)
map - the map to check againstpublic boolean subMap(JDFAttributeMap map)
map - the submap to check againstpublic boolean subMap(VJDFAttributeMap vMap)
vMap - the vector submaps to check againstpublic boolean overlapsMap(VJDFAttributeMap vMap)
vMap - the vector to check againstpublic boolean equals(java.lang.Object other)
equals in interface java.util.Collection<JDFAttributeMap>equals in interface java.util.List<JDFAttributeMap>equals in class java.util.Vector<JDFAttributeMap>other - in this case VJDFAttributeMap to comparepublic int hashCode()
hashCode in interface java.util.Collection<JDFAttributeMap>hashCode in interface java.util.List<JDFAttributeMap>hashCode in class java.util.Vector<JDFAttributeMap>public void put(java.lang.Object key,
java.lang.Object value)
key - the key to set - may be either String or Enumvalue - the value to set - may be either String or Enumjava.lang.IllegalArgumentException - if key or value have the wrong typepublic void put(java.lang.String key,
java.lang.String value)
key - the key to setvalue - the value to setpublic VJDFAttributeMap clone()
clone in class java.util.Vector<JDFAttributeMap>also clones the underlying mapspublic void removeMaps(JDFAttributeMap map)
map - public void put(JDFAttributeMap commonMap)
commonMap - public void setElementAt(JDFAttributeMap mTmp, int j)
setElementAt in class java.util.Vector<JDFAttributeMap>