|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.AbstractCollection<E>
java.util.AbstractList<E>
java.util.Vector<JDFAttributeMap>
org.cip4.jdflib.datatypes.VJDFAttributeMap
public class VJDFAttributeMap
Description: This class represents a vector of JDFAttributeMaps
| Field Summary |
|---|
| Fields inherited from class java.util.Vector |
|---|
capacityIncrement, elementCount, elementData |
| Fields inherited from class java.util.AbstractList |
|---|
modCount |
| Constructor Summary | |
|---|---|
VJDFAttributeMap()
constructor |
|
VJDFAttributeMap(JDFAttributeMap moreMap)
|
|
VJDFAttributeMap(JDFAttributeMap[] toAdd)
constructor from array, the map elements are not cloned |
|
VJDFAttributeMap(Vector<JDFAttributeMap> toAdd)
copy constructor, the map elements are cloned |
|
| Method Summary | |
|---|---|
void |
addall(VJDFAttributeMap v)
Deprecated. use addAll |
void |
appendUnique(JDFAttributeMap map)
|
void |
appendUnique(VJDFAttributeMap map)
Method appendUnique. |
VJDFAttributeMap |
clone()
|
boolean |
containsKey(Object key)
|
JDFAttributeMap |
elementAt(int i)
Returns the element at the given position |
boolean |
equals(Object other)
equals - Compares two map vectors, returns true if content equal regardless of element order, otherwise false. |
void |
extendMap(String strKey,
VString 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 |
VString |
getKeys()
reduce each JDFAttributeMap in this by keySet |
VJDFAttributeMap |
getOrMaps(JDFAttributeMap map)
andMap - builds a new vector of maps with identical pairs of both maps does not modify this |
VString |
getPartValues(String strKey,
boolean bUnique)
|
Vector<JDFAttributeMap> |
getVector()
Deprecated. - use this |
boolean |
hasEntryWithEqualKeyValuePairs(JDFAttributeMap attmap)
Deprecated. use contains |
int |
hashCode()
hashCode complements equals() to fulfill the equals/hashCode contract |
int |
maxSize()
Return the maximum size size of a JDFAttributeMap in this |
int |
minSize()
Return the maximum size size of a JDFAttributeMap in this |
void |
overlapMap(JDFAttributeMap map)
Method overlapMap. |
void |
overlapMap(VJDFAttributeMap map)
Method overlapMap. only entries that contain at least one matching map entry are retained |
boolean |
overlapsMap(JDFAttributeMap map)
Method overlapMap. |
boolean |
overlapsMap(VJDFAttributeMap vMap)
Method overlapsMap. returns true if at least one element exists that has no non-matching key value pairs |
void |
put(Object key,
Object value)
put the key value pair into all entries |
void |
put(String key,
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(Vector vKeys)
Deprecated. use reduceMap |
void |
reduceMap(Collection<String> keySet)
reduce each JDFAttributeMap in this by keySet |
void |
removeKeys(Collection<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. if map is subMap of this |
void |
setVector(Vector<JDFAttributeMap> vec)
sets the Vector with JDFAttributeMap elements |
String |
showKeys(String sepMap,
String sepEntry)
|
boolean |
subMap(JDFAttributeMap map)
Method subMap. |
boolean |
subMap(VJDFAttributeMap vMap)
Method subMap. |
String |
toString()
toString |
void |
unify()
unify - make VElement unique, retaining initial order |
| Methods inherited from class java.util.Vector |
|---|
add, add, addAll, addAll, addElement, capacity, clear, contains, containsAll, copyInto, elements, ensureCapacity, firstElement, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, trimToSize |
| Methods inherited from class java.util.AbstractList |
|---|
iterator, listIterator, listIterator |
| Methods inherited from class java.lang.Object |
|---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface java.util.List |
|---|
iterator, listIterator, listIterator |
| Constructor Detail |
|---|
public VJDFAttributeMap()
public VJDFAttributeMap(Vector<JDFAttributeMap> toAdd)
toAdd - Vector of elements to clonepublic VJDFAttributeMap(JDFAttributeMap[] toAdd)
toAdd - the arraypublic VJDFAttributeMap(JDFAttributeMap moreMap)
moreMap - the single attribute map to add| Method Detail |
|---|
public String toString()
toString in class Vector<JDFAttributeMap>
public String showKeys(String sepMap,
String sepEntry)
sepMap - the separator between mapssepEntry - the separator between map entries
@Deprecated public Vector<JDFAttributeMap> getVector()
public VString getPartValues(String strKey,
boolean bUnique)
strKey - the attribute to get values frombUnique - if true, ensure unique vector, else the vector coressponds to the voctor of maps
public void extendMap(String strKey,
VString vsValues)
strKey - the new key to addvsValues - String of valuespublic VJDFAttributeMap getAndMaps(JDFAttributeMap map)
map - the given map
public VJDFAttributeMap getOrMaps(JDFAttributeMap map)
map - the given map
public boolean containsKey(Object key)
key - the key to check for
Map.containsKey(java.lang.Object)public void setVector(Vector<JDFAttributeMap> vec)
vec - the Vector with JDFAttributeMap elementspublic int maxSize()
public int minSize()
public JDFAttributeMap elementAt(int i)
elementAt in class Vector<JDFAttributeMap>i - the given position (may be<0 to count backwards)
public JDFAttributeMap get(int i)
get in interface List<JDFAttributeMap>get in class Vector<JDFAttributeMap>i - the given position
public void removeKeys(Collection<String> set)
set - @Deprecated public boolean hasEntryWithEqualKeyValuePairs(JDFAttributeMap attmap)
attmap - the given JDFAttributeMap element
@Deprecated public void reduceKey(Vector vKeys)
vKeys - public void reduceMap(Collection<String> keySet)
this by keySet
keySet - public VString getKeys()
this by keySet
public void appendUnique(JDFAttributeMap map)
map - map to appendpublic void unify()
public void appendUnique(VJDFAttributeMap map)
map - maps to append@Deprecated public void addall(VJDFAttributeMap v)
v - public void overlapMap(JDFAttributeMap map)
map - the map to check againstpublic void overlapMap(VJDFAttributeMap map)
map - the map to check againstpublic boolean overlapsMap(JDFAttributeMap map)
map - the map to check against
public boolean subMap(JDFAttributeMap map)
map - the submap to check against
public boolean subMap(VJDFAttributeMap vMap)
vMap - the vector submaps to check against
public boolean overlapsMap(VJDFAttributeMap vMap)
vMap - the vector to check against
public boolean equals(Object other)
equals in interface Collection<JDFAttributeMap>equals in interface List<JDFAttributeMap>equals in class Vector<JDFAttributeMap>other - in this case VJDFAttributeMap to compare
public int hashCode()
hashCode in interface Collection<JDFAttributeMap>hashCode in interface List<JDFAttributeMap>hashCode in class Vector<JDFAttributeMap>
public void put(Object key,
Object value)
key - the key to set - may be either String or Enumvalue - the value to set - may be either String or Enum
IllegalArgumentException - if key or value have the wrong type
public void put(String key,
String value)
key - the key to setvalue - the value to setpublic VJDFAttributeMap clone()
clone in class Vector<JDFAttributeMap>Object.clone()public void removeMaps(JDFAttributeMap map)
map -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||