| Constructor and Description |
|---|
VElement()
constructor
|
VElement(org.w3c.dom.NodeList n)
constructor
|
VElement(java.util.Vector m)
constructor
|
| Modifier and Type | Method and Description |
|---|---|
<a extends KElement> |
addAll(a[] l)
create a all elements of an Array
|
void |
addAll(VElement elem)
addAll ignoring null collections
|
void |
appendUnique(KElement elem)
AppendUnique - append a string but ignore multiple entries
|
void |
appendUnique(VElement v)
AppendUnique - append a vector but ignore multiple entries - equivalence is calculated with .equals
|
void |
appendUniqueElement(VElement v)
AppendUnique - append a vector but ignore multiple entries - equivalence is calculated with isEqual,
|
void |
appendUniqueNotNull(KElement v)
Deprecated.
simply use appendUnique
|
void |
appendUniqueNotNull(VElement v)
Deprecated.
simply use appendUnique
|
boolean |
containsElement(KElement elem)
does this contain an equivalent element similar to contains but uses isEqual() instead of equals()
|
KElement |
elementAt(int index)
item - returns null if index is out of bounds or the requested item is not an ELEMENT_NODE !
|
KElement |
get(int index)
item - returns null if index is out of bounds or the requested item is not an ELEMENT_NODE !
|
java.util.Set<java.lang.String> |
getElementNameSet(boolean bLocal)
get the node names of this vector in the same order
|
VString |
getElementNameVector(boolean bLocal)
get the node names of this vector in the same order
|
boolean |
hasElement(KElement kElem)
Deprecated.
060216 use containsElement
|
int |
index(KElement s)
index - get the index of s in the vector using isEquals or ID rather than equals
|
boolean |
isEqual(VElement v)
are the two vectors equivalent, i.e.
|
KElement |
item(int index)
item - returns null if index is out of bounds or the requested item is not an ELEMENT_NODE !
|
int |
nameIndex(java.lang.String nodeName,
int skip)
similar to index but only compares nodenames
|
void |
removeAttribute(java.lang.String key,
java.lang.String nameSpaceURI)
Remove Attribute in all elements of this
|
void |
removeElements(KElement testElem,
int nMax)
RemoveElements
|
void |
removeElements(VElement v)
Remove elements listed in v from this
|
void |
setAttribute(java.lang.String key,
java.lang.String value,
java.lang.String nameSpaceURI)
SetAttribute in all elements of this
|
void |
setAttributes(java.lang.String key,
java.util.Vector<java.lang.String> vValue,
java.lang.String nameSpaceURI)
set the values of attribute key to the values defined in vValue
|
void |
sort()
sorts the vector in canonical order using SimpleNodeComparator
|
java.lang.String |
toString()
toString
|
VElement |
toVector(java.lang.String element,
JDFAttributeMap mAttrib,
boolean bAnd,
java.lang.String nameSpaceURI)
ToVector - parse a node list for elements spezified through parameters note that the vector is static - i.e.
|
void |
unify()
unify - make VElement unique, retaining initial order
|
void |
unifyElement()
unify - make VElement unique, retaining initial order uses containsElement, not contains
|
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elements, ensureCapacity, equals, firstElement, forEach, hashCode, indexOf, indexOf, insertElementAt, isEmpty, iterator, lastElement, lastIndexOf, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeIf, removeRange, replaceAll, retainAll, set, setElementAt, setSize, size, sort, spliterator, subList, toArray, toArray, trimToSizepublic VElement()
public VElement(java.util.Vector m)
m - public VElement(org.w3c.dom.NodeList n)
n - public java.lang.String toString()
toString in class java.util.Vector<KElement>public int index(KElement s)
s - KElement to search for@Deprecated public boolean hasElement(KElement kElem)
kElem - the element to look for@Deprecated public void appendUniqueNotNull(KElement v)
v - @Deprecated public void appendUniqueNotNull(VElement v)
v - public void appendUnique(KElement elem)
elem - the element to appendpublic void addAll(VElement elem)
elem - the vector of elements to appendpublic <a extends KElement> void addAll(a[] l)
a - l - public boolean containsElement(KElement elem)
elem - the element to look forpublic boolean isEqual(VElement v)
v - the vector to comparepublic void appendUnique(VElement v)
v - the vector of elements to appendpublic void appendUniqueElement(VElement v)
v - the vector of elements to appendpublic void setAttributes(java.lang.String key,
java.util.Vector<java.lang.String> vValue,
java.lang.String nameSpaceURI)
key - key the attribute namevValue - vValue the vector of valuesnameSpaceURI - nameSpace of the attribute to setjava.lang.IllegalArgumentException - if size mismatch of vValue anf thispublic void sort()
public void setAttribute(java.lang.String key,
java.lang.String value,
java.lang.String nameSpaceURI)
key - key the attribute namevalue - the valuenameSpaceURI - nameSpace of the attribute to setpublic void removeAttribute(java.lang.String key,
java.lang.String nameSpaceURI)
key - key the attribute namenameSpaceURI - nameSpace of the attribute to setpublic void removeElements(VElement v)
v - elements to removepublic void removeElements(KElement testElem, int nMax)
testElem - the element to removenMax - maximum number of dulicate elements to removepublic VString getElementNameVector(boolean bLocal)
bLocal - if true use getLocalName() else getNodeName() o each itempublic java.util.Set<java.lang.String> getElementNameSet(boolean bLocal)
bLocal - if true use getLocalName() else getNodeName() o each itempublic VElement toVector(java.lang.String element, JDFAttributeMap mAttrib, boolean bAnd, java.lang.String nameSpaceURI)
element - name of the element typ you wantmAttrib - a attribute typ you wantbAnd - true, if you want to add the element if mAttrib was found in the elementnameSpaceURI - the namespace to search inpublic KElement elementAt(int index)
elementAt in class java.util.Vector<KElement>index - vector index of the element you wantpublic KElement get(int index)
public KElement item(int index)
index - vector index of the element you wantpublic void unify()
public void unifyElement()
public int nameIndex(java.lang.String nodeName,
int skip)
nodeName -