Interface ModelContext
- All Superinterfaces:
ComponentContext,com.ptc.core.components.descriptor.JCAContext
public interface ModelContext
extends ComponentContext, com.ptc.core.components.descriptor.JCAContext
Describes the context in which a given data utility is being asked to get
data values.
Supported API: true
Extendable: false
Supported API: true
Extendable: false
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionGet the component descriptor that requested the use of this data utility
Supported API: trueGet the raw value for the current model attribute.Methods inherited from interface com.ptc.core.components.descriptor.ComponentContext
getDescriptorMode, getDescriptorTypeMethods inherited from interface com.ptc.core.components.descriptor.JCAContext
getBeanFactory, getComponentMode, getComponentType, getLocale, getModelData, getNmCommandBean, getNmObjectUtility, getObjectSource, getParentDescriptor, setBeanFactory, setNmCommandBean, setObjectSource, setParentDescriptor
-
Method Details
-
getDescriptor
ComponentDescriptor getDescriptor()Get the component descriptor that requested the use of this data utility
Supported API: true- Returns:
- The component descriptor
-
getRawValue
Get the raw value for the current model attribute. This only works when the modelObject is a non-null, well-known type
Supported API: true- Returns:
- The value of the attribute on the current model object, or
null - Throws:
WTException
-