public class AnnotationList extends Object implements Iterable<Annotation>
| Modifier and Type | Field and Description |
|---|---|
static AnnotationList |
EMPTY |
| Constructor and Description |
|---|
AnnotationList(List<Annotation> list) |
| Modifier and Type | Method and Description |
|---|---|
void |
check(Configuration config,
String where)
Check an annotation list for internal consistency (e.g.
|
boolean |
equals(Object other) |
AnnotationList |
filterByNamespace(String ns) |
Annotation |
get(int i) |
int |
hashCode() |
boolean |
includes(String localName)
Ask whether a list of annotations contains an annotation with a given local name
|
boolean |
includes(StructuredQName name)
Ask whether a list of annotations contains an annotation with a given name
|
boolean |
isEmpty() |
Iterator<Annotation> |
iterator()
Returns an iterator over a set of elements of type T.
|
static AnnotationList |
singleton(Annotation ann) |
int |
size() |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic static AnnotationList EMPTY
public AnnotationList(List<Annotation> list)
public static AnnotationList singleton(Annotation ann)
public void check(Configuration config, String where) throws XPathException
where - the context where the list appears: one of "DF" (declare function), "DV" (declare variable),
"IF" (inline function declaration), "FT" (function test)XPathException - if the annotation list is not internally consistentpublic AnnotationList filterByNamespace(String ns)
public Iterator<Annotation> iterator()
iterator in interface Iterable<Annotation>public boolean isEmpty()
public int size()
public Annotation get(int i)
public boolean includes(StructuredQName name)
name - the given namepublic boolean includes(String localName)
localName - the given local nameCopyright (c) 2004-2017 Saxonica Limited. All rights reserved.