public interface ConstantValue extends Parameter
Specifies a a constant data value for an effect control value. Use varying values and one or more control points for parameters which change in value during the operation group.
The value property of a constant value is specified to be of indirect type, which the MAJ API represents as a Java object. This value
should be convertible to an AAF property value using
TypeDefinition.createValue(Object) for the type specified for this parameter.
ParameterDefinition,
TypeDefinitionIndirect,
PropertyValue| Modifier and Type | Method and Description |
|---|---|
ConstantValue |
clone()
Create a cloned copy of this constant value.
|
TypeDefinition |
getTypeDefinition()
Returns the type definition associated with this constant value, which is the same
as the type definition for the parameter definition
of this parameter.
|
PropertyValue |
getValue()
Returns the value of this constant value object, which is a
property value that
contains the type and current value.
|
void |
setValue(PropertyValue value)
Set the value of this constant value.
|
getParameterDefinition, getParameterDefinitionReferenceaddApplicationPlugin, clearApplicationPlugins, containsApplicationPlugin, containsApplicationPlugin, countApplicationPlugins, deepEquals, disableGenerationTracking, enableGenerationTracking, equals, getApplicationPlugins, getGeneration, getLinkedGenerationID, getObjectClass, isGenerationTracked, removeApplicationPlugin, removeApplicationPlugin, setLinkedGenerationID, setObjectClass, toStringgetPersistentID, setPersistentIndexPropertyValue getValue()
Returns the value of this constant value object, which is a property value that contains the type and current value.
PropertyValue.getValue(),
PropertyValue.getType()TypeDefinition getTypeDefinition()
Returns the type definition associated with this constant value, which is the same as the type definition for the parameter definition of this parameter.
getTypeDefinition in interface ParameterParameter.getTypeDefinition(),
ParameterDefinition.getParameterType()void setValue(PropertyValue value) throws NullPointerException, ClassCastException
Set the value of this constant value.
To create a property value of a specific type, use the
createValue() method of a
type definition. To access a type definition, use
the getTypeDefinition() method as follows:
constantValue.setValue(
constantValue.getTypeDefinition().createValue(42));
Alternatively, you can retrieve the value of any other property using its property definition. To retrieve the property value of a property called foo from an instance called bar:
ClassDefinition barClassDef =
ClassDefinitionWarehouse.forClass(bar.getClass());
PropertyDefinition fooDefinition =
barClassDef.lookupPropertyDefinition("foo");
PropertyValue fooValue =
fooDefinition.getPropertyValue(bar);
value - Value and type to of this constant value.NullPointerException - The given value is null.ClassCastExceptionTypeDefinition.createValue(Object),
PropertyValue.getValue(),
Warehouse.lookForType(String)ConstantValue clone()
Create a cloned copy of this constant value.
clone in interface InterchangeObjectclone in interface MediaEntityclone in interface Parameter(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.