Interface IFieldNodeItem

    • Method Detail

      • getBaseUri

        @Nullable
        default URI getBaseUri()
        Description copied from interface: INodeItem
        Retrieve the base URI of this node.

        The base URI of a node will be in order of preference:

        1. the base URI defined on the node
        2. the base URI defined on the nearest ancestor node
        3. the base URI defined on the document node
        4. null if the document node is unknown
        Specified by:
        getBaseUri in interface INodeItem
        Returns:
        the base URI or null if it is unknown
      • format

        @NonNull
        default String format​(@NonNull
                              IPathFormatter formatter)
        Description copied from interface: INodeItem
        Generate a path for this node in the directed node graph, using the provided path formatter.
        Specified by:
        format in interface INodeItem
        Specified by:
        format in interface IPathSegment
        Parameters:
        formatter - the path formatter
        Returns:
        a textual representation of the path segment
      • accept

        default <RESULT,​CONTEXT> RESULT accept​(@NonNull
                                                     INodeItemVisitor<RESULT,​CONTEXT> visitor,
                                                     CONTEXT context)
        Description copied from interface: INodeItemVisitable
        A visitor callback.
        Specified by:
        accept in interface INodeItemVisitable
        Type Parameters:
        RESULT - the type of the visitor result
        CONTEXT - the type of the context parameter
        Parameters:
        visitor - the calling visitor
        context - a parameter used to pass contextual information between visitors
        Returns:
        the visitor result