Package hydra.owl.syntax
Class Declaration
- java.lang.Object
-
- hydra.owl.syntax.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 Summary
Fields Modifier and Type Field Description java.util.List<Annotation>annotationsstatic NameANNOTATIONSName of thehydra.owl.syntax.Declaration.annotationsfield.Entityentitystatic NameENTITYName of thehydra.owl.syntax.Declaration.entityfield.static NameTYPE_Name of thehydra.owl.syntax.Declarationtype.
-
Constructor Summary
Constructors Constructor Description Declaration(java.util.List<Annotation> annotations, Entity entity)Constructs an immutableDeclaration.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(Declaration other)booleanequals(java.lang.Object other)inthashCode()DeclarationwithAnnotations(java.util.List<Annotation> annotations)Returns a copy of thisDeclarationwithannotationsreplaced.DeclarationwithEntity(Entity entity)Returns a copy of thisDeclarationwithentityreplaced.
-
-
-
Field Detail
-
TYPE_
public static final Name TYPE_
Name of thehydra.owl.syntax.Declarationtype.
-
ANNOTATIONS
public static final Name ANNOTATIONS
Name of thehydra.owl.syntax.Declaration.annotationsfield.
-
ENTITY
public static final Name ENTITY
Name of thehydra.owl.syntax.Declaration.entityfield.
-
annotations
public final java.util.List<Annotation> annotations
-
entity
public final Entity entity
-
-
Constructor Detail
-
Declaration
public Declaration(java.util.List<Annotation> annotations, Entity entity)
Constructs an immutableDeclaration.
-
-
Method Detail
-
equals
public boolean equals(java.lang.Object other)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
compareTo
public int compareTo(Declaration other)
- Specified by:
compareToin interfacejava.lang.Comparable<Declaration>
-
withAnnotations
public Declaration withAnnotations(java.util.List<Annotation> annotations)
Returns a copy of thisDeclarationwithannotationsreplaced.
-
withEntity
public Declaration withEntity(Entity entity)
Returns a copy of thisDeclarationwithentityreplaced.
-
-