Interface GlobalDefinitionsStore
- All Superinterfaces:
DefinitionsStore
- All Known Subinterfaces:
BareResourceSchema
,CompleteResourceSchema
,ConnectorSchema
,PrismSchema
,ResourceSchema
,SchemaLookup
,SchemaLookup.Mutable
,SchemaRegistry
,SchemaRegistryState
- All Known Implementing Classes:
AxiomEnabledSchemaRegistry
,BareResourceSchemaImpl
,CompleteResourceSchemaImpl
,ConnectorSchemaImpl
,PrismSchemaImpl
,ResourceSchemaImpl
,SchemaRegistryImpl
,SchemaRegistryStateImpl
FIXME Creation of this interface was most probably a design mistake. We should decide
what its future should be.
Used to retrieve definition from 'global definition store' - i.e. store that contains a group of related definition(s),
sharing e.g. a common namespace. Such stores are prism schemas and schema registry itself.
Note: although all of these methods are '@Nullable', we don't mark them as such, to avoid false 'may produce NPE'
warnings for cases that will never produce nulls (like searching for known items/CTDs).
-
Method Summary
Modifier and TypeMethodDescriptiondefault <C extends Containerable>
ComplexTypeDefinitionfindComplexTypeDefinitionByCompileTimeClass
(@NotNull Class<C> compileTimeClass) default ComplexTypeDefinition
findComplexTypeDefinitionByType
(@NotNull QName typeName) default <C extends Containerable>
PrismContainerDefinition<C>findContainerDefinitionByCompileTimeClass
(@NotNull Class<C> compileTimeClass) default <C extends Containerable>
PrismContainerDefinition<C>findContainerDefinitionByElementName
(@NotNull QName elementName) default <C extends Containerable>
PrismContainerDefinition<C>findContainerDefinitionByType
(@NotNull QName typeName) default <ID extends ItemDefinition>
IDfindItemDefinitionByCompileTimeClass
(@NotNull Class<?> compileTimeClass, @NotNull Class<ID> definitionClass) default ItemDefinition
findItemDefinitionByElementName
(@NotNull QName elementName) default <ID extends ItemDefinition>
IDfindItemDefinitionByElementName
(@NotNull QName elementName, @NotNull Class<ID> definitionClass) default ItemDefinition
findItemDefinitionByType
(@NotNull QName typeName) <ID extends ItemDefinition>
IDfindItemDefinitionByType
(@NotNull QName typeName, @NotNull Class<ID> definitionClass) Looking up item definition by type name.<ID extends ItemDefinition>
@NotNull List<ID>findItemDefinitionsByCompileTimeClass
(@NotNull Class<?> compileTimeClass, @NotNull Class<ID> definitionClass) Looking up item definitions by compile-time class.default @NotNull List<ItemDefinition>
findItemDefinitionsByElementName
(@NotNull QName elementName) <ID extends ItemDefinition>
@NotNull List<ID>findItemDefinitionsByElementName
(@NotNull QName elementName, @NotNull Class<ID> definitionClass) Looking up item definitions by element name.default <O extends Objectable>
PrismObjectDefinition<O>findObjectDefinitionByCompileTimeClass
(@NotNull Class<O> compileTimeClass) default <O extends Objectable>
PrismObjectDefinition<O>findObjectDefinitionByElementName
(@NotNull QName elementName) default <O extends Objectable>
PrismObjectDefinition<O>findObjectDefinitionByType
(@NotNull QName typeName) default PrismPropertyDefinition
findPropertyDefinitionByElementName
(@NotNull QName elementName) default PrismReferenceDefinition
findReferenceDefinitionByElementName
(@NotNull QName elementName) default SimpleTypeDefinition
findSimpleTypeDefinitionByType
(@NotNull QName typeName) <TD extends TypeDefinition>
TDfindTypeDefinitionByCompileTimeClass
(@NotNull Class<?> compileTimeClass, @NotNull Class<TD> definitionClass) default TypeDefinition
findTypeDefinitionByType
(@NotNull QName typeName) <TD extends TypeDefinition>
TDfindTypeDefinitionByType
(@NotNull QName typeName, @NotNull Class<TD> definitionClass) default <TD extends TypeDefinition>
@NotNull Collection<TD>findTypeDefinitionsByElementName
(@NotNull QName name, @NotNull Class<TD> clazz) default @NotNull Collection<? extends TypeDefinition>
findTypeDefinitionsByType
(@NotNull QName typeName) <TD extends TypeDefinition>
@NotNull Collection<? extends TD>findTypeDefinitionsByType
(@NotNull QName typeName, @NotNull Class<TD> definitionClass)
-
Method Details
-
findItemDefinitionsByCompileTimeClass
@NotNull <ID extends ItemDefinition> @NotNull List<ID> findItemDefinitionsByCompileTimeClass(@NotNull @NotNull Class<?> compileTimeClass, @NotNull @NotNull Class<ID> definitionClass) Looking up item definitions by compile-time class. So, for example having AssignmentType.class we try to find a definition of "assignment" item. BEWARE. This method is unsound. There might be many items of AssignmentType.class. -
findItemDefinitionByType
<ID extends ItemDefinition> ID findItemDefinitionByType(@NotNull @NotNull QName typeName, @NotNull @NotNull Class<ID> definitionClass) Looking up item definition by type name. So, for example having c:AssignmentType we try to find a definition of "assignment" item. BEWARE. This method is unsound. There might be many items with c:AssignmentType type. -
findItemDefinitionsByElementName
@NotNull <ID extends ItemDefinition> @NotNull List<ID> findItemDefinitionsByElementName(@NotNull @NotNull QName elementName, @NotNull @NotNull Class<ID> definitionClass) Looking up item definitions by element name. The name can be qualified or unqualified. In the latter case there can be more than one definition returned. -
findComplexTypeDefinitionByCompileTimeClass
default <C extends Containerable> ComplexTypeDefinition findComplexTypeDefinitionByCompileTimeClass(@NotNull @NotNull Class<C> compileTimeClass) -
findTypeDefinitionByCompileTimeClass
<TD extends TypeDefinition> TD findTypeDefinitionByCompileTimeClass(@NotNull @NotNull Class<?> compileTimeClass, @NotNull @NotNull Class<TD> definitionClass) -
findTypeDefinitionByType
<TD extends TypeDefinition> TD findTypeDefinitionByType(@NotNull @NotNull QName typeName, @NotNull @NotNull Class<TD> definitionClass) -
findTypeDefinitionsByType
@NotNull <TD extends TypeDefinition> @NotNull Collection<? extends TD> findTypeDefinitionsByType(@NotNull @NotNull QName typeName, @NotNull @NotNull Class<TD> definitionClass) -
findTypeDefinitionsByType
@NotNull default @NotNull Collection<? extends TypeDefinition> findTypeDefinitionsByType(@NotNull @NotNull QName typeName) -
findItemDefinitionsByElementName
@NotNull default @NotNull List<ItemDefinition> findItemDefinitionsByElementName(@NotNull @NotNull QName elementName) -
findItemDefinitionByElementName
default <ID extends ItemDefinition> ID findItemDefinitionByElementName(@NotNull @NotNull QName elementName, @NotNull @NotNull Class<ID> definitionClass) -
findItemDefinitionByCompileTimeClass
default <ID extends ItemDefinition> ID findItemDefinitionByCompileTimeClass(@NotNull @NotNull Class<?> compileTimeClass, @NotNull @NotNull Class<ID> definitionClass) -
findObjectDefinitionByCompileTimeClass
default <O extends Objectable> PrismObjectDefinition<O> findObjectDefinitionByCompileTimeClass(@NotNull @NotNull Class<O> compileTimeClass) -
findObjectDefinitionByType
default <O extends Objectable> PrismObjectDefinition<O> findObjectDefinitionByType(@NotNull @NotNull QName typeName) -
findObjectDefinitionByElementName
default <O extends Objectable> PrismObjectDefinition<O> findObjectDefinitionByElementName(@NotNull @NotNull QName elementName) -
findContainerDefinitionByCompileTimeClass
default <C extends Containerable> PrismContainerDefinition<C> findContainerDefinitionByCompileTimeClass(@NotNull @NotNull Class<C> compileTimeClass) -
findContainerDefinitionByType
default <C extends Containerable> PrismContainerDefinition<C> findContainerDefinitionByType(@NotNull @NotNull QName typeName) -
findContainerDefinitionByElementName
default <C extends Containerable> PrismContainerDefinition<C> findContainerDefinitionByElementName(@NotNull @NotNull QName elementName) -
findReferenceDefinitionByElementName
default PrismReferenceDefinition findReferenceDefinitionByElementName(@NotNull @NotNull QName elementName) -
findPropertyDefinitionByElementName
default PrismPropertyDefinition findPropertyDefinitionByElementName(@NotNull @NotNull QName elementName) -
findItemDefinitionByType
-
findItemDefinitionByElementName
-
findComplexTypeDefinitionByType
-
findSimpleTypeDefinitionByType
-
findTypeDefinitionByType
-
findTypeDefinitionsByElementName
@NotNull default <TD extends TypeDefinition> @NotNull Collection<TD> findTypeDefinitionsByElementName(@NotNull @NotNull QName name, @NotNull @NotNull Class<TD> clazz)
-