Package com.evolveum.axiom.lang.impl
Class ModelReactorContext
- java.lang.Object
 - 
- com.evolveum.axiom.reactor.BaseReactorContext<E,A>
 - 
- com.evolveum.axiom.reactor.RuleReactorContext<AxiomSemanticException,ValueContext<?>,ValueActionImpl<?>,RuleContextImpl>
 - 
- com.evolveum.axiom.lang.impl.ModelReactorContext
 
 
 
 
- 
- All Implemented Interfaces:
 AxiomNameResolver
public class ModelReactorContext extends RuleReactorContext<AxiomSemanticException,ValueContext<?>,ValueActionImpl<?>,RuleContextImpl> implements AxiomNameResolver
 
- 
- 
Field Summary
Fields Modifier and Type Field Description static Lazy<AxiomSchemaContext>BASE_LANGUAGE- 
Fields inherited from interface com.evolveum.axiom.lang.spi.AxiomNameResolver
AXIOM_DEFAULT_NAMESPACE, BUILTIN_TYPES, BUILTINS, NULL_RESOLVER 
 - 
 
- 
Constructor Summary
Constructors Constructor Description ModelReactorContext(AxiomSchemaContext boostrapContext) 
- 
Method Summary
- 
Methods inherited from class com.evolveum.axiom.reactor.RuleReactorContext
addActionsFor 
- 
Methods inherited from class com.evolveum.axiom.reactor.BaseReactorContext
addOutstanding, addSuppresed, compute, fail 
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait 
- 
Methods inherited from interface com.evolveum.axiom.lang.spi.AxiomNameResolver
or, orPrefix, resolve 
 - 
 
 - 
 
- 
- 
Field Detail
- 
BASE_LANGUAGE
public static final Lazy<AxiomSchemaContext> BASE_LANGUAGE
 
 - 
 
- 
Constructor Detail
- 
ModelReactorContext
public ModelReactorContext(AxiomSchemaContext boostrapContext)
 
 - 
 
- 
Method Detail
- 
reactor
public static final ModelReactorContext reactor(AxiomSchemaContext context)
 
- 
sourceFromResource
public static Lazy<AxiomModelStatementSource> sourceFromResource(String axiomModelResource)
 
- 
boostrapReactor
public static final ModelReactorContext boostrapReactor()
 
- 
defaultReactor
public static final ModelReactorContext defaultReactor()
 
- 
computeSchemaContext
public AxiomSchemaContext computeSchemaContext() throws AxiomSemanticException
- Throws:
 AxiomSemanticException
 
- 
failOutstanding
protected void failOutstanding(Collection<ValueActionImpl<?>> outstanding) throws AxiomSemanticException
- Overrides:
 failOutstandingin classBaseReactorContext<AxiomSemanticException,ValueActionImpl<?>>- Throws:
 AxiomSemanticException
 
- 
space
public IdentifierSpaceHolderImpl space()
 
- 
addOutstanding
protected void addOutstanding(ValueActionImpl<?> action)
- Overrides:
 addOutstandingin classBaseReactorContext<AxiomSemanticException,ValueActionImpl<?>>
 
- 
addRules
public void addRules(AxiomStatementRule<?>... rules)
 
- 
loadModelFromSource
public ModelReactorContext loadModelFromSource(AxiomModelStatementSource source)
 
- 
resolveIdentifier
public AxiomName resolveIdentifier(@Nullable @Nullable String prefix, @NotNull @NotNull String localName)
- Specified by:
 resolveIdentifierin interfaceAxiomNameResolver
 
- 
addStatementFactory
public void addStatementFactory(AxiomName statementType, AxiomValueFactory<?> factory)
 
- 
typeFactory
public <V> AxiomValueFactory<V> typeFactory(AxiomTypeDefinition statementType)
 
- 
exportIdentifierSpace
public void exportIdentifierSpace(AxiomValueIdentifier namespace, com.evolveum.axiom.lang.impl.IdentifierSpaceHolder localSpace)
 
- 
namespace
public Dependency<NamespaceContext> namespace(AxiomName name, AxiomValueIdentifier namespaceId)
 
- 
createException
protected AxiomSemanticException createException()
- Specified by:
 createExceptionin classBaseReactorContext<AxiomSemanticException,ValueActionImpl<?>>
 
- 
rulesFor
protected Collection<RuleContextImpl> rulesFor(ValueContext<?> context)
- Specified by:
 rulesForin classRuleReactorContext<AxiomSemanticException,ValueContext<?>,ValueActionImpl<?>,RuleContextImpl>
 
- 
rootDefinition
public Optional<AxiomItemDefinition> rootDefinition(AxiomName statement)
 
- 
applyRuleDefinitions
public void applyRuleDefinitions(ValueContext<?> valueContext)
 
- 
register
public void register(AxiomName space, AxiomIdentifierDefinition.Scope scope, AxiomValueIdentifier key, ValueContext<?> context)
 
- 
lazyValue
public <V> AxiomValue<V> lazyValue(ValueContext<V> valueContext)
 
 - 
 
 -