Interface IModuleNodeItem

    • Method Detail

      • getModule

        @NonNull
        IModule getModule()
        The Metaschema module this item is based on.
        Returns:
        the Metaschema module
      • 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 IDocumentNodeItem
        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 IDocumentNodeItem
        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