Class NodeRepository<T>

  • All Implemented Interfaces:
    Map<String,​T>

    public abstract class NodeRepository<T>
    extends Object
    implements Map<String,​T>
    • Constructor Detail

      • NodeRepository

        public NodeRepository​(@Nullable
                              @Nullable KeepType keepType)
    • Method Detail

      • getDataKey

        @NotNull
        public abstract @NotNull com.vladsch.flexmark.util.data.DataKey<? extends NodeRepository<T>> getDataKey()
      • getKeepDataKey

        @NotNull
        public abstract @NotNull com.vladsch.flexmark.util.data.DataKey<KeepType> getKeepDataKey()
      • getReferencedElements

        @NotNull
        public abstract @NotNull Set<T> getReferencedElements​(Node parent)
      • visitNodes

        @SafeVarargs
        protected final void visitNodes​(@NotNull
                                        @NotNull Node parent,
                                        @NotNull
                                        @NotNull Consumer<Node> runnable,
                                        @NotNull
                                        @NotNull Class<? extends Node>... classes)
      • normalizeKey

        @NotNull
        public @NotNull String normalizeKey​(@NotNull
                                            @NotNull CharSequence key)
      • getFromRaw

        @Nullable
        public T getFromRaw​(@NotNull
                            @NotNull CharSequence rawKey)
      • putRawKey

        @Nullable
        public T putRawKey​(@NotNull
                           @NotNull CharSequence key,
                           @NotNull
                           T t)
      • getValues

        @NotNull
        public @NotNull Collection<T> getValues()
      • transferReferences

        public static <T> boolean transferReferences​(@NotNull
                                                     @NotNull NodeRepository<T> destination,
                                                     @NotNull
                                                     @NotNull NodeRepository<T> included,
                                                     boolean onlyIfUndefined,
                                                     @Nullable
                                                     @Nullable Map<String,​String> referenceIdMap)
      • put

        @Nullable
        public T put​(@NotNull
                     @NotNull String s,
                     @NotNull
                     T t)
        Specified by:
        put in interface Map<String,​T>
      • putAll

        public void putAll​(@NotNull
                           @NotNull Map<? extends String,​? extends T> map)
        Specified by:
        putAll in interface Map<String,​T>
      • remove

        @Nullable
        public T remove​(@NotNull
                        @NotNull Object o)
        Specified by:
        remove in interface Map<String,​T>
      • clear

        public void clear()
        Specified by:
        clear in interface Map<String,​T>
      • size

        public int size()
        Specified by:
        size in interface Map<String,​T>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface Map<String,​T>
      • get

        @Nullable
        public T get​(@NotNull
                     @NotNull Object o)
        Specified by:
        get in interface Map<String,​T>
      • values

        @NotNull
        public @NotNull List<T> values()
        Specified by:
        values in interface Map<String,​T>