package org.exist.xquery;

import org.exist.dom.QName;

/**
 * Represents an XQuery 3.0 Annotation
 *
 * @author Adam Retter <adam@exist-db.org>
 */
public class Annotation {
    
    private final QName name;
    private final LiteralValue value[];
    
    public Annotation(QName name) {
        this(name, new LiteralValue[0]);
    }
    
    public Annotation(QName name, LiteralValue[] value) {
       this.name = name;
       this.value = value;
    }
}
@@ -452,9 +452,143 @@
 ;%0A    %7D%0A
+    %0A    public QName getQName() %7B%0A        return name;%0A    %7D%0A    %0A    public LiteralValue%5B%5D getValue() %7B%0A        return value;%0A    %7D%0A
 %7D

Make annotations accessible