Package com.evolveum.axiom.lang.impl
Class ValueContext<V>
- java.lang.Object
 - 
- com.evolveum.axiom.lang.impl.ValueContext<V>
 
 
- 
- All Implemented Interfaces:
 AxiomBuilderStreamTarget.ValueBuilder,AxiomValueContext<V>,Dependency<AxiomValue<V>>
public class ValueContext<V> extends Object implements AxiomValueContext<V>, AxiomBuilderStreamTarget.ValueBuilder, Dependency<AxiomValue<V>>
 
- 
- 
Nested Class Summary
- 
Nested classes/interfaces inherited from interface com.evolveum.axiom.reactor.Dependency
Dependency.Immediate<V>, Dependency.OptionalDep<T>, Dependency.Search<T>, Dependency.Suppliable<V>, Dependency.Unsatified<V> 
 - 
 
- 
Field Summary
Fields Modifier and Type Field Description com.evolveum.axiom.lang.impl.ValueContext.Referencereferencecom.evolveum.axiom.lang.impl.ValueContext.ReferenceDependencyreferenceDependency 
- 
Constructor Summary
Constructors Constructor Description ValueContext(ItemContext<V> itemContext, V value, SourceLocation loc)ValueContext(SourceLocation loc, com.evolveum.axiom.lang.impl.IdentifierSpaceHolder space) 
- 
Method Summary
- 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait 
- 
Methods inherited from interface com.evolveum.axiom.api.stream.AxiomBuilderStreamTarget.ValueBuilder
axiomAsConditionalDefault 
- 
Methods inherited from interface com.evolveum.axiom.lang.impl.AxiomValueContext
childItem, parent, parentValue 
- 
Methods inherited from interface com.evolveum.axiom.reactor.Dependency
flatMap, isRequired, map, unsatisfied 
 - 
 
 - 
 
- 
- 
Constructor Detail
- 
ValueContext
public ValueContext(SourceLocation loc, com.evolveum.axiom.lang.impl.IdentifierSpaceHolder space)
 
- 
ValueContext
public ValueContext(ItemContext<V> itemContext, V value, SourceLocation loc)
 
 - 
 
- 
Method Detail
- 
name
public AxiomName name()
 
- 
getLookup
public com.evolveum.axiom.lang.impl.ValueContext.LookupImpl getLookup()
 
- 
childItemDef
public Optional<AxiomItemDefinition> childItemDef(AxiomName statement)
- Specified by:
 childItemDefin interfaceAxiomBuilderStreamTarget.ValueBuilder
 
- 
startItem
public ItemContext<?> startItem(AxiomName identifier, SourceLocation loc)
- Specified by:
 startItemin interfaceAxiomBuilderStreamTarget.ValueBuilder
 
- 
endValue
public void endValue(SourceLocation loc)
- Specified by:
 endValuein interfaceAxiomBuilderStreamTarget.ValueBuilder
 
- 
mutable
protected com.evolveum.axiom.lang.impl.ValueContext.Result mutable()
 
- 
isSatisfied
public boolean isSatisfied()
- Specified by:
 isSatisfiedin interfaceDependency<V>
 
- 
get
public AxiomValue<V> get()
- Specified by:
 getin interfaceDependency<V>
 
- 
errorMessage
public Exception errorMessage()
- Specified by:
 errorMessagein interfaceDependency<V>
 
- 
itemDefinition
public AxiomItemDefinition itemDefinition()
 
- 
currentType
public AxiomTypeDefinition currentType()
 
- 
addAction
public ValueActionImpl<V> addAction(String name)
 
- 
createItem
protected ItemContext<?> createItem(AxiomName id, SourceLocation loc)
 
- 
replace
public void replace(AxiomValue<?> axiomItemValue)
- Specified by:
 replacein interfaceAxiomValueContext<V>
 
- 
childItem
public <T> ItemContext<T> childItem(AxiomName name)
- Specified by:
 childItemin interfaceAxiomValueContext<V>
 
- 
currentValue
public V currentValue()
- Specified by:
 currentValuein interfaceAxiomValueContext<V>
 
- 
mergeItem
public void mergeItem(AxiomItem<?> axiomItem)
- Specified by:
 mergeItemin interfaceAxiomValueContext<V>
 
- 
register
public void register(AxiomName space, AxiomIdentifierDefinition.Scope scope, AxiomValueIdentifier key)
- Specified by:
 registerin interfaceAxiomValueContext<V>
 
- 
newAction
public AxiomStatementRule.ActionBuilder<?> newAction(String name)
- Specified by:
 newActionin interfaceAxiomValueContext<V>
 
- 
root
public com.evolveum.axiom.lang.impl.SourceContext root()
- Specified by:
 rootin interfaceAxiomValueContext<V>
 
- 
dependsOnAction
public void dependsOnAction(ValueActionImpl<V> action)
 
- 
requireChild
public <T> Dependency.Search<AxiomItem<T>> requireChild(AxiomName item)
 
- 
asReference
public <V> AxiomValueReference<V> asReference()
- Specified by:
 asReferencein interfaceAxiomValueContext<V>
 
- 
replaceValue
public void replaceValue(V object)
- Specified by:
 replaceValuein interfaceAxiomValueContext<V>
 
- 
isMutable
public boolean isMutable()
 
- 
lazyValue
public AxiomValue<V> lazyValue()
 
- 
infraItemDef
public Optional<AxiomItemDefinition> infraItemDef(AxiomName item)
- Specified by:
 infraItemDefin interfaceAxiomBuilderStreamTarget.ValueBuilder
 
- 
startInfra
public AxiomBuilderStreamTarget.ItemBuilder startInfra(AxiomName identifier, SourceLocation loc)
- Specified by:
 startInfrain interfaceAxiomBuilderStreamTarget.ValueBuilder
 
- 
valueIdentifier
public void valueIdentifier(AxiomValueIdentifier key)
- Specified by:
 valueIdentifierin interfaceAxiomValueContext<V>
 
- 
mergeCompletedIfEmpty
public void mergeCompletedIfEmpty(Optional<AxiomItem<?>> item)
- Specified by:
 mergeCompletedIfEmptyin interfaceAxiomValueContext<V>
 
- 
currentInfra
public AxiomTypeDefinition currentInfra()
 
- 
parent
public P parent()
 
- 
rootImpl
protected com.evolveum.axiom.lang.impl.SourceContext rootImpl()
 
- 
startLocation
public SourceLocation startLocation()
 
- 
lookup
public ValueContext<?> lookup(AxiomName space, AxiomValueIdentifier key)
 
- 
register
public void register(AxiomName space, AxiomIdentifierDefinition.Scope scope, AxiomValueIdentifier key, ValueContext<?> context)
 
- 
space
public Map<AxiomValueIdentifier,ValueContext<?>> space(AxiomName space)
 
 - 
 
 -