Class AbstractAxiomDescriptor
java.lang.Object
cz.cvut.kbss.ontodriver.descriptor.AbstractAxiomDescriptor
- Direct Known Subclasses:
AxiomDescriptor
,AxiomValueDescriptor
Defines common API for axiom descriptors.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
containsAssertion
(Assertion assertion) Checks whether this descriptor contains the specified assertion.boolean
getAssertionContexts
(Assertion assertion) Gets the set of repository context identifiers in which the specified assertion values may be.Gets the set of assertions in this descriptor.Gets the set of repository context identifiers in which this descriptor's subject may be.int
hashCode()
-
Constructor Details
-
AbstractAxiomDescriptor
-
-
Method Details
-
getSubject
-
getAssertions
Gets the set of assertions in this descriptor.- Returns:
- Set of assertions
-
containsAssertion
Checks whether this descriptor contains the specified assertion.- Parameters:
assertion
- Assertion to look for- Returns:
boolean
result
-
getSubjectContexts
Gets the set of repository context identifiers in which this descriptor's subject may be.The contract of this method is as follows: it must not return
null
, if the the subject is in the default context, an empty set is returned.- Returns:
- Set of context identifiers
-
getAssertionContexts
Gets the set of repository context identifiers in which the specified assertion values may be.If no context was explicitly set, the same contexts as the subject's are returned. An empty result indicates that the default context should be used.
- Returns:
- Set of context identifiers
-
equals
-
hashCode
public int hashCode()
-