Class Annotation

java.lang.Object
net.sf.saxon.query.Annotation

public class Annotation extends Object
This class represents an annotation that appears in a function or variable declarations
  • Field Details

  • Constructor Details

    • Annotation

      public Annotation(StructuredQName name)
      Create an annotation
      Parameters:
      name - the annotation name (a QName)
  • Method Details

    • getAnnotationQName

      public StructuredQName getAnnotationQName()
      Get the name of the annotation (a QName)
      Returns:
      the annotation name
    • addAnnotationParameter

      public void addAnnotationParameter(AtomicValue value)
      Add a value to the list of annotation parameters
      Parameters:
      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 parser
    • getAnnotationParameters

      public List<AtomicValue> getAnnotationParameters()
      Get the list of annotation parameters
      Returns:
      the list of parameters
    • equals

      public boolean equals(Object other)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object