public class ExtElements extends Object implements Iterable<ExtElement>
ExtElement objects.| Constructor and Description |
|---|
ExtElements()
Creates an empty
ExtElements object. |
ExtElements(ExtElements original)
Copy constructor.
|
| Modifier and Type | Method and Description |
|---|---|
ExtElement |
add(ExtElement element)
Adds an element to this set.
|
ExtElement |
add(String namespaceURI,
String localPart,
String prefix)
Adds a new
ExtElement object to this set. |
List<ExtElement> |
find(String namespaceURI,
String localName)
Gets a list of all child elements for a given namespace and name
for this element (not recursively)
|
ExtElement |
get(int index)
Gets the element at a given position.
|
ExtElement |
getOrCreate(String namespaceURI,
String localName,
String prefix)
Get and if needed, create before, a given element from this set.
|
boolean |
isEmpty()
Indicates if this set has at least one element.
|
Iterator<ExtElement> |
iterator() |
int |
size()
Gets the number of elements in this set.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic ExtElements()
ExtElements object.public ExtElements(ExtElements original)
original - the original object to duplicate.public Iterator<ExtElement> iterator()
iterator in interface Iterable<ExtElement>public ExtElement add(ExtElement element)
element - the element to add.public ExtElement add(String namespaceURI, String localPart, String prefix)
ExtElement object to this set.namespaceURI - the namespace URI of the element.localPart - the locale part of the element name.prefix - the prefix.public int size()
public boolean isEmpty()
public ExtElement get(int index)
index - the position of the element to retrieve.IndexOutOfBoundsException - if the position is invalid.public List<ExtElement> find(String namespaceURI, String localName)
namespaceURI - the namespace of the elements to list.localName - the name of the elements to list.public ExtElement getOrCreate(String namespaceURI, String localName, String prefix)
namespaceURI - the namespace of the element.localName - the name of the element.prefix - the prefix to use if it needs to be created.Copyright © 2020. All rights reserved.