Class ExpressionWrapper
- java.lang.Object
-
- com.evolveum.midpoint.gui.impl.prism.wrapper.ItemWrapperImpl<PrismProperty<T>,PrismPropertyValueWrapper<T>>
-
- com.evolveum.midpoint.gui.impl.prism.wrapper.PrismPropertyWrapperImpl<ExpressionType>
-
- com.evolveum.midpoint.gui.impl.prism.wrapper.ExpressionWrapper
-
- All Implemented Interfaces:
ItemWrapper<PrismProperty<ExpressionType>,PrismPropertyValueWrapper<ExpressionType>>
,PrismPropertyWrapper<ExpressionType>
,Definition
,Freezable
,ItemDefinition<PrismProperty<ExpressionType>>
,PrismContextSensitive
,PrismItemAccessDefinition
,PrismPropertyDefinition<ExpressionType>
,Revivable
,SmartVisitable<Definition>
,Visitable<Definition>
,DebugDumpable
,Serializable
,Cloneable
public class ExpressionWrapper extends PrismPropertyWrapperImpl<ExpressionType>
Created by honchar- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
PrismItemAccessDefinition.Mutable
-
-
Field Summary
-
Fields inherited from interface com.evolveum.midpoint.util.DebugDumpable
INDENT_STRING
-
-
Constructor Summary
Constructors Constructor Description ExpressionWrapper(@Nullable PrismContainerValueWrapper parent, PrismProperty<ExpressionType> property, ItemStatus status)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected <D extends ItemDelta<? extends PrismValue,? extends ItemDefinition>>
voidaddValueToDelta(PrismPropertyValueWrapper<ExpressionType> value, D delta)
ConstructionType
getConstruction()
Integer
getDisplayOrder()
Specifies an order in which the item should be displayed relative to other items at the same level.@NotNull QName
getTypeName()
Returns a name of the type for this definition.boolean
isAssociationExpression()
boolean
isAttributeExpression()
boolean
isConstructionExpression()
void
setConstruction(ConstructionType construction)
-
Methods inherited from class com.evolveum.midpoint.gui.impl.prism.wrapper.PrismPropertyWrapperImpl
accept, accept, clone, createEmptyDelta, createNewEmptyValue, defaultValue, freeze, getAllowedValues, getItemDefinition, getMatchingRuleQName, getPredefinedValuesOid, getSuggestedValues, getTypeClass, instantiate, instantiate, isEmpty, isImmutable, isIndexed, setPredefinedValuesOid, toMutable
-
Methods inherited from class com.evolveum.midpoint.gui.impl.prism.wrapper.ItemWrapperImpl
add, adoptElementDefinitionFrom, canAdd, canBeDefinitionOf, canBeDefinitionOf, canModify, canRead, checkRequired, debugDump, debugDumpShortToString, deepClone, findItemDefinition, findObjectStatus, findObjectWrapper, getAnnotation, getAnnotations, getDelta, getDeprecatedSince, getDiagrams, getDisplayName, getDocumentation, getDocumentationPreview, getFormComponentValidator, getHelp, getItem, getItemName, getMaxOccurs, getMinOccurs, getOldItem, getParent, getParentContainerValue, getPath, getPlannedRemoval, getPrismContext, getProcessing, getSchemaMigrations, getStatus, getSubstitutionHead, getValue, getValueEnumerationRef, getValues, getVisibleOverwrite, isAbstract, isColumn, isDeprecated, isDynamic, isElaborate, isEmphasized, isExperimental, isHeterogeneousListItem, isIgnored, isIndexOnly, isInherited, isMetadata, isOperational, isProcessProvenanceMetadata, isReadOnly, isRuntimeSchema, isShowEmpty, isShowInVirtualContainer, isShowMetadataDetails, isValidFor, isVisible, isVisibleByVisibilityHandler, remove, removeAll, revive, setAnnotation, setColumn, setMetadata, setProcessProvenanceMetadata, setReadOnly, setShowEmpty, setShowInVirtualContainer, setShowMetadataDetails, setVisibleOverwrite, structuredType
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.evolveum.midpoint.util.DebugDumpable
debugDump, debugDumpLazily, debugDumpLazily
-
Methods inherited from interface com.evolveum.midpoint.prism.Definition
debugDump, getAnnotation, getAnnotations, getDeprecatedSince, getDiagrams, getDisplayName, getDocumentation, getDocumentationPreview, getHelp, getMutabilityFlag, getPlannedRemoval, getProcessing, getSchemaMigrations, getSchemaRegistry, isAbstract, isDeprecated, isElaborate, isEmphasized, isExperimental, isIgnored, isRuntimeSchema, setAnnotation
-
Methods inherited from interface com.evolveum.midpoint.prism.Freezable
checkImmutable, checkMutable
-
Methods inherited from interface com.evolveum.midpoint.prism.ItemDefinition
adoptElementDefinitionFrom, canBeDefinitionOf, canBeDefinitionOf, debugDumpShortToString, deepClone, findItemDefinition, getItemName, getMaxOccurs, getMinOccurs, getSubstitutionHead, getValueEnumerationRef, isDynamic, isHeterogeneousListItem, isIndexOnly, isInherited, isMandatory, isMultiValue, isOperational, isOptional, isSingleValue, isValidFor, structuredType
-
Methods inherited from interface com.evolveum.midpoint.gui.api.prism.wrapper.ItemWrapper
add, checkRequired, debugDump, findObjectStatus, findObjectWrapper, getDelta, getFormComponentValidator, getItem, getParent, getParentContainerValue, getPath, getStatus, getValue, getValues, getVisibleOverwrite, isColumn, isMetadata, isProcessProvenanceMetadata, isReadOnly, isShowEmpty, isShowInVirtualContainer, isShowMetadataDetails, isVisible, remove, removeAll, setColumn, setMetadata, setProcessProvenanceMetadata, setReadOnly, setShowEmpty, setShowInVirtualContainer, setShowMetadataDetails, setVisibleOverwrite
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismContextSensitive
getPrismContext
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismItemAccessDefinition
canAdd, canModify, canRead
-
Methods inherited from interface com.evolveum.midpoint.prism.PrismPropertyDefinition
isAnyType
-
-
-
-
Constructor Detail
-
ExpressionWrapper
public ExpressionWrapper(@Nullable @Nullable PrismContainerValueWrapper parent, PrismProperty<ExpressionType> property, ItemStatus status)
-
-
Method Detail
-
isConstructionExpression
public boolean isConstructionExpression()
-
isAssociationExpression
public boolean isAssociationExpression()
-
isAttributeExpression
public boolean isAttributeExpression()
-
getConstruction
public ConstructionType getConstruction()
-
setConstruction
public void setConstruction(ConstructionType construction)
-
getDisplayOrder
public Integer getDisplayOrder()
Description copied from interface:Definition
Specifies an order in which the item should be displayed relative to other items at the same level. The items will be displayed by sorting them by the values of displayOrder annotation (ascending). Items that do not have any displayOrder annotation will be displayed last. The ordering of values with the same displayOrder is undefined and it may be arbitrary.- Specified by:
getDisplayOrder
in interfaceDefinition
- Overrides:
getDisplayOrder
in classItemWrapperImpl<PrismProperty<ExpressionType>,PrismPropertyValueWrapper<ExpressionType>>
-
getTypeName
@NotNull public @NotNull QName getTypeName()
Description copied from interface:Definition
Returns a name of the type for this definition. The type can be part of the compile-time schema or it can be defined at run time. Examples of the former case are types like c:UserType, xsd:string, or even flexible ones like c:ExtensionType or c:ShadowAttributesType. Examples of the latter case are types used in - custom extensions, like ext:LocationsType (where ext = e.g. http://example.com/extension), - resource schema, like ri:inetOrgPerson (ri = http://.../resource/instance-3), - connector schema, like TODO In XML representation that corresponds to the name of the XSD type. Although beware, the run-time types do not have statically defined structure. And the resource and connector-related types may even represent different kinds of objects within different contexts (e.g. two distinct resources both with ri:AccountObjectClass types). Also note that for complex type definitions, the type name serves as a unique identifier. On the other hand, for item definitions, it is just one of its attributes; primary key is item name in that case. The type name should be fully qualified. (TODO reconsider this)- Specified by:
getTypeName
in interfaceDefinition
- Overrides:
getTypeName
in classItemWrapperImpl<PrismProperty<ExpressionType>,PrismPropertyValueWrapper<ExpressionType>>
- Returns:
- the type name
-
addValueToDelta
protected <D extends ItemDelta<? extends PrismValue,? extends ItemDefinition>> void addValueToDelta(PrismPropertyValueWrapper<ExpressionType> value, D delta) throws SchemaException
- Overrides:
addValueToDelta
in classItemWrapperImpl<PrismProperty<ExpressionType>,PrismPropertyValueWrapper<ExpressionType>>
- Throws:
SchemaException
-
-