Interface LocalItemDefinitionStore

    • Method Detail

      • getDefinitions

        @NotNull
        @NotNull Collection<? extends ItemDefinition<?>> getDefinitions()
        Returns all item definitions in this store.
      • findLocalItemDefinition

        default <ID extends ItemDefinition<?>> ID findLocalItemDefinition​(@NotNull
                                                                          @NotNull QName name,
                                                                          @NotNull
                                                                          @NotNull Class<ID> clazz,
                                                                          boolean caseInsensitive)
        Returns the local item definition corresponding to given item name (optionally case-insensitive) and definition class. Does not try to resolve items globally (in the case of "any" content). BEWARE: In the case of ambiguities, returns any suitable definition. (This may change.)
      • findLocalItemDefinition

        default <ID extends ItemDefinition<?>> ID findLocalItemDefinition​(@NotNull
                                                                          @NotNull QName name)
        Returns the local ItemDefinition corresponding to given item name (in case-sensitive manner). Does not try to resolve items globally (in the case of "any" content). Note: some implementors provide optimized implementations of this method.
      • findItemDefinition

        default <ID extends ItemDefinition<?>> ID findItemDefinition​(@NotNull
                                                                     @NotNull ItemPath path)
        Returns ItemDefinition corresponding to given path (rooted at this store). Tries the global resolution in the case of "any" content.
      • findItemDefinition

        <ID extends ItemDefinition<?>> ID findItemDefinition​(@NotNull
                                                             @NotNull ItemPath path,
                                                             @NotNull
                                                             @NotNull Class<ID> clazz)
        Returns a definition of given type corresponding to given path (rooted at this store). Tries the global resolution in the case of "any" content.
      • containsItemDefinition

        default boolean containsItemDefinition​(@NotNull
                                               @NotNull QName itemName)
        Returns true if the store contains a definition of an item with given name. TODO what about global names? Current implementation resolves them, but is this expected by clients?