Interface IDocumentNodeItem

    • Method Detail

      • getDocumentUri

        @Nullable
        URI getDocumentUri()
        Get the URI associated with this document.
        Returns:
        the document's URI or null if unavailable
      • getBaseUri

        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

        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
      • getValue

        @Nullable
        default Object getValue()
        Description copied from interface: IItem
        Get the item's "wrapped" value. This "wrapped" value may be:
        • In the case of an Assembly, a Java object representing the fields and flags of the assembly.
        • In the case of a Field with flags, a Java object representing the field value and flags of the field.
        • In the case of a Field without flags or a flag, a Java type managed by a IDataTypeAdapter or a primitive type provided by the Java standard library.
        Specified by:
        getValue in interface IItem
        Returns:
        the value or null if the item has no available value
      • hasValue

        default boolean hasValue()
        Description copied from interface: IItem
        Determine if the item has an associated value.
        Specified by:
        hasValue in interface IItem
        Returns:
        true if the item has a non-null value or false otherwise