public class Annotation extends Object
Modifier and Type | Field and Description |
---|---|
static StructuredQName |
PRIVATE |
static StructuredQName |
PUBLIC |
static StructuredQName |
SIMPLE |
static StructuredQName |
UPDATING |
Constructor and Description |
---|
Annotation(StructuredQName name)
Create an annotation
|
Modifier and Type | Method and Description |
---|---|
void |
addAnnotationParameter(AtomicValue value)
Add a value to the list of annotation parameters
|
List<AtomicValue> |
getAnnotationParameters()
Get the list of annotation parameters
|
StructuredQName |
getAnnotationQName()
Get the name of the annotation (a QName)
|
static boolean |
mutuallyExclusive(Annotation one,
Annotation two)
Determine whether two annotations are mutually exclusive
|
public static final StructuredQName UPDATING
public static final StructuredQName SIMPLE
public static final StructuredQName PRIVATE
public static final StructuredQName PUBLIC
public Annotation(StructuredQName name)
name
- the annotation name (a QName)public StructuredQName getAnnotationQName()
public void addAnnotationParameter(AtomicValue value)
value
- the value to be added. This will always be a string or number,
but Saxon enforces this only at the level of the query parserpublic List<AtomicValue> getAnnotationParameters()
public static boolean mutuallyExclusive(Annotation one, Annotation two)
one
- the first annotationtwo
- the second annotationCopyright (c) 2004-2014 Saxonica Limited. All rights reserved.