Class DAnnotation


  • public class DAnnotation
    extends Object
    Annotation.
    • Field Detail

      • EMPTY

        public static final DAnnotation EMPTY
        Instance reserved to be empty.
    • Constructor Detail

      • DAnnotation

        public DAnnotation()
    • Method Detail

      • getAttribute

        public DAnnotation.Attribute getAttribute​(String nsUri,
                                                  String localName)
        Gets the attribute of a given name.
        Parameters:
        nsUri - can be empty but must not be null.
        Returns:
        null if no such attribute is found.
      • getAttributes

        public Map<QName,​DAnnotation.Attribute> getAttributes()
        Gets the read-only view of all the attributes.
        Returns:
        can be empty but never null. the returned map is read-only.
      • getChildren

        public List<Element> getChildren()
        Gets the read-only view of all the child elements of this annotation.
        Returns:
        can be empty but never null. the returned list is read-only.