public final class RefinedResourceSchemaImpl extends Object implements RefinedResourceSchema
INDENT_STRING
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
getDefaultRefinedDefinition, getObjectDefinition, getObjectDefinition, getRefinedDefinition
findObjectClassDefinition, findObjectClassDefinition, getObjectClassList
getComplexTypeDefinitions, getObjectDefinitions
debugDumpLazily, debugDumpLazily
findComplexTypeDefinition, findComplexTypeDefinitionByCompileTimeClass, findComplexTypeDefinitionByType, findContainerDefinitionByCompileTimeClass, findContainerDefinitionByElementName, findContainerDefinitionByType, findItemDefinition, findItemDefinition, findItemDefinitionByCompileTimeClass, findItemDefinitionByElementName, findItemDefinitionByElementName, findItemDefinitionByType, findItemDefinitionsByElementName, findObjectDefinitionByCompileTimeClass, findObjectDefinitionByElementName, findObjectDefinitionByType, findPropertyDefinitionByElementName, findReferenceDefinitionByElementName, findSimpleTypeDefinitionByType, findTypeDefinitionByType, findTypeDefinitionsByType
public Collection<ObjectClassComplexTypeDefinition> getObjectClassDefinitions()
getObjectClassDefinitions
in interface ResourceSchema
public List<? extends RefinedObjectClassDefinition> getRefinedDefinitions()
getRefinedDefinitions
in interface RefinedResourceSchema
public List<? extends RefinedObjectClassDefinition> getRefinedDefinitions(ShadowKindType kind)
getRefinedDefinitions
in interface RefinedResourceSchema
public ResourceSchema getOriginalResourceSchema()
getOriginalResourceSchema
in interface RefinedResourceSchema
public RefinedObjectClassDefinition getRefinedDefinition(ShadowKindType kind, String intent)
RefinedResourceSchema
getRefinedDefinition
in interface RefinedResourceSchema
public CompositeRefinedObjectClassDefinition determineCompositeObjectClassDefinition(ResourceShadowDiscriminator discriminator)
determineCompositeObjectClassDefinition
in interface RefinedResourceSchema
public CompositeRefinedObjectClassDefinition determineCompositeObjectClassDefinition(PrismObject<ShadowType> shadow) throws SchemaException
determineCompositeObjectClassDefinition
in interface RefinedResourceSchema
SchemaException
public CompositeRefinedObjectClassDefinition determineCompositeObjectClassDefinition(PrismObject<ShadowType> shadow, Collection<QName> additionalAuxiliaryObjectClassQNames) throws SchemaException
determineCompositeObjectClassDefinition
in interface RefinedResourceSchema
SchemaException
public CompositeRefinedObjectClassDefinition determineCompositeObjectClassDefinition(QName structuralObjectClassQName, ShadowKindType kind, String intent)
determineCompositeObjectClassDefinition
in interface RefinedResourceSchema
public RefinedObjectClassDefinition getRefinedDefinition(ShadowKindType kind, Collection<String> intents) throws SchemaException
RefinedResourceSchema
getRefinedDefinition
in interface RefinedResourceSchema
SchemaException
public RefinedObjectClassDefinition getRefinedDefinition(QName objectClassName)
getRefinedDefinition
in interface RefinedResourceSchema
public RefinedObjectClassDefinition findRefinedDefinitionByObjectClassQName(ShadowKindType kind, QName objectClass)
findRefinedDefinitionByObjectClassQName
in interface RefinedResourceSchema
public LayerRefinedResourceSchema forLayer(LayerType layer)
forLayer
in interface RefinedResourceSchema
public static RefinedResourceSchema getRefinedSchema(ResourceType resourceType) throws SchemaException
SchemaException
public static LayerRefinedResourceSchema getRefinedSchema(ResourceType resourceType, LayerType layer) throws SchemaException
SchemaException
public static RefinedResourceSchema getRefinedSchema(ResourceType resourceType, PrismContext prismContext) throws SchemaException
SchemaException
public static LayerRefinedResourceSchema getRefinedSchema(ResourceType resourceType, LayerType layer, PrismContext prismContext) throws SchemaException
SchemaException
public static RefinedResourceSchema getRefinedSchema(PrismObject<ResourceType> resource) throws SchemaException
getRefinedSchema
in interface RefinedResourceSchema
SchemaException
public static RefinedResourceSchema getRefinedSchema(PrismObject<ResourceType> resource, PrismContext prismContext) throws SchemaException
SchemaException
public static LayerRefinedResourceSchema getRefinedSchema(PrismObject<ResourceType> resource, LayerType layer, PrismContext prismContext) throws SchemaException
SchemaException
public static boolean hasRefinedSchema(ResourceType resourceType)
public static ResourceSchema getResourceSchema(ResourceType resourceType, PrismContext prismContext) throws SchemaException
SchemaException
public static ResourceSchema getResourceSchema(PrismObject<ResourceType> resource, PrismContext prismContext) throws SchemaException
getResourceSchema
in interface RefinedResourceSchema
SchemaException
public static void setParsedResourceSchemaConditional(ResourceType resourceType, ResourceSchema parsedSchema)
public static boolean hasParsedSchema(ResourceType resourceType)
public static RefinedResourceSchema parse(PrismObject<ResourceType> resource, PrismContext prismContext) throws SchemaException
SchemaException
public static RefinedResourceSchema parse(ResourceType resourceType, PrismContext prismContext) throws SchemaException
SchemaException
public static List<String> getIntentsForKind(RefinedResourceSchema rSchema, ShadowKindType kind)
public ObjectClassComplexTypeDefinition findObjectClassDefinition(QName objectClassQName)
findObjectClassDefinition
in interface RefinedResourceSchema
findObjectClassDefinition
in interface ResourceSchema
public ObjectClassComplexTypeDefinition findObjectClassDefinition(ShadowKindType kind, String intent)
findObjectClassDefinition
in interface ResourceSchema
public ObjectClassComplexTypeDefinition findDefaultObjectClassDefinition(ShadowKindType kind)
findDefaultObjectClassDefinition
in interface ResourceSchema
public String getNamespace()
PrismSchema
getNamespace
in interface PrismSchema
@NotNull public Collection<Definition> getDefinitions()
PrismSchema
getDefinitions
in interface PrismSchema
@NotNull public <T extends Definition> List<T> getDefinitions(@NotNull Class<T> type)
PrismSchema
getDefinitions
in interface PrismSchema
public PrismContext getPrismContext()
getPrismContext
in interface PrismSchema
@NotNull public Document serializeToXsd() throws SchemaException
serializeToXsd
in interface PrismSchema
SchemaException
public boolean isEmpty()
isEmpty
in interface PrismSchema
@NotNull public <ID extends ItemDefinition> List<ID> findItemDefinitionsByCompileTimeClass(@NotNull Class<?> compileTimeClass, @NotNull Class<ID> definitionClass)
findItemDefinitionsByCompileTimeClass
in interface GlobalDefinitionsStore
@Nullable public <TD extends TypeDefinition> TD findTypeDefinitionByCompileTimeClass(@NotNull Class<?> compileTimeClass, @NotNull Class<TD> definitionClass)
findTypeDefinitionByCompileTimeClass
in interface GlobalDefinitionsStore
@Nullable public <TD extends TypeDefinition> TD findTypeDefinitionByType(@NotNull QName typeName, @NotNull Class<TD> definitionClass)
findTypeDefinitionByType
in interface GlobalDefinitionsStore
public String debugDump()
DebugDumpable
debugDump
in interface DebugDumpable
public String debugDump(int indent)
debugDump
in interface DebugDumpable
@Nullable public <ID extends ItemDefinition> ID findItemDefinitionByType(@NotNull QName typeName, @NotNull Class<ID> definitionType)
findItemDefinitionByType
in interface GlobalDefinitionsStore
@NotNull public <ID extends ItemDefinition> List<ID> findItemDefinitionsByElementName(@NotNull QName elementName, @NotNull Class<ID> definitionClass)
findItemDefinitionsByElementName
in interface GlobalDefinitionsStore
@NotNull public <TD extends TypeDefinition> Collection<? extends TD> findTypeDefinitionsByType(@NotNull QName typeName, @NotNull Class<TD> definitionClass)
findTypeDefinitionsByType
in interface GlobalDefinitionsStore
public static void validateRefinedSchema(RefinedResourceSchema refinedSchema, PrismObject<ResourceType> resource) throws SchemaException
SchemaException
public MutableResourceSchema toMutable()
toMutable
in interface ResourceSchema
Copyright © 2020 Evolveum. All rights reserved.