Class SimpleListDescriptorImpl
java.lang.Object
cz.cvut.kbss.ontodriver.descriptor.SimpleListDescriptorImpl
- All Implemented Interfaces:
ListDescriptor
,SimpleListDescriptor
- Direct Known Subclasses:
SimpleListValueDescriptor
Describes a simple sequence.
Simple lists are classic Lisp-style lists (singly-linked lists), where each node is a subject for axiom referencing the next node.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSimpleListDescriptorImpl
(NamedResource listOwner, Assertion listProperty, Assertion nextNodeProperty) -
Method Summary
Modifier and TypeMethodDescriptionboolean
Gets context in which the list is stored.Gets owner of the list.Gets the property assertion which connects the list to its owner.Gets the property assertion which connects the list nodes to each other.int
hashCode()
void
setContext
(URI context) Sets context of the list.toString()
-
Field Details
-
descriptor
-
-
Constructor Details
-
SimpleListDescriptorImpl
public SimpleListDescriptorImpl(NamedResource listOwner, Assertion listProperty, Assertion nextNodeProperty)
-
-
Method Details
-
setContext
Description copied from interface:ListDescriptor
Sets context of the list.- Specified by:
setContext
in interfaceListDescriptor
- Parameters:
context
- Context URI, can benull
-
getContext
Description copied from interface:ListDescriptor
Gets context in which the list is stored.- Specified by:
getContext
in interfaceListDescriptor
- Returns:
- Context URI,
null
if it is not set and the default is assumed
-
getListOwner
Description copied from interface:ListDescriptor
Gets owner of the list.That is, the named resource which is at the head of the list. In object model, it is the owning entity.
- Specified by:
getListOwner
in interfaceListDescriptor
- Returns:
- List owner
-
getListProperty
Description copied from interface:ListDescriptor
Gets the property assertion which connects the list to its owner.- Specified by:
getListProperty
in interfaceListDescriptor
- Returns:
- Property assertion
- See Also:
-
getNextNode
Description copied from interface:ListDescriptor
Gets the property assertion which connects the list nodes to each other.- Specified by:
getNextNode
in interfaceListDescriptor
- Returns:
- Property assertion
-
hashCode
public int hashCode() -
equals
-
toString
-