Class ReferencedListDescriptorImpl
java.lang.Object
cz.cvut.kbss.ontodriver.descriptor.ReferencedListDescriptorImpl
- All Implemented Interfaces:
ListDescriptor
,ReferencedListDescriptor
- Direct Known Subclasses:
ReferencedListValueDescriptor
Represents singly-linked referenced list.
In referenced list each node has content linked to it by a separate property. In addition, each node points to its successor in the sequence. The last node may point to rdf:nil or it may just lack a successor.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionReferencedListDescriptorImpl
(NamedResource listOwner, Assertion listProperty, Assertion nextNode, Assertion nodeContent) ReferencedListDescriptorImpl
(NamedResource listOwner, Assertion listProperty, Assertion nextNode, Assertion nodeContent, boolean terminatedByNil) -
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.Gets the property assertion which represents each node's content.int
hashCode()
boolean
Whether the list is terminated by rdf:nil.void
setContext
(URI context) Sets context of the list.toString()
-
Field Details
-
descriptor
-
-
Constructor Details
-
ReferencedListDescriptorImpl
public ReferencedListDescriptorImpl(NamedResource listOwner, Assertion listProperty, Assertion nextNode, Assertion nodeContent) -
ReferencedListDescriptorImpl
public ReferencedListDescriptorImpl(NamedResource listOwner, Assertion listProperty, Assertion nextNode, Assertion nodeContent, boolean terminatedByNil)
-
-
Method Details
-
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
-
setContext
Description copied from interface:ListDescriptor
Sets context of the list.- Specified by:
setContext
in interfaceListDescriptor
- Parameters:
context
- Context URI, can benull
-
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
-
getNodeContent
Description copied from interface:ReferencedListDescriptor
Gets the property assertion which represents each node's content.- Specified by:
getNodeContent
in interfaceReferencedListDescriptor
- Returns:
- Property assertion
-
isTerminatedByNil
public boolean isTerminatedByNil()Description copied from interface:ReferencedListDescriptor
Whether the list is terminated by rdf:nil.- Specified by:
isTerminatedByNil
in interfaceReferencedListDescriptor
- Returns:
true
if the list is terminated by nil,false
otherwise
-
hashCode
public int hashCode() -
equals
-
toString
-