Class Declaration

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<Declaration>

    public class Declaration
    extends java.lang.Object
    implements java.io.Serializable, java.lang.Comparable<Declaration>
    See Also:
    Serialized Form
    • Field Detail

      • TYPE_

        public static final Name TYPE_
        Name of the hydra.owl.syntax.Declaration type.
      • ANNOTATIONS

        public static final Name ANNOTATIONS
        Name of the hydra.owl.syntax.Declaration.annotations field.
      • ENTITY

        public static final Name ENTITY
        Name of the hydra.owl.syntax.Declaration.entity field.
      • annotations

        public final java.util.List<Annotation> annotations
      • entity

        public final Entity entity
    • Constructor Detail

    • Method Detail

      • equals

        public boolean equals​(java.lang.Object other)
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class java.lang.Object
      • compareTo

        public int compareTo​(Declaration other)
        Specified by:
        compareTo in interface java.lang.Comparable<Declaration>
      • withAnnotations

        public Declaration withAnnotations​(java.util.List<Annotation> annotations)
        Returns a copy of this Declaration with annotations replaced.