|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ConstantValue
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.
makeConstantValue()
,
ParameterDefinition
,
TypeDefinitionIndirect
,
PropertyValue
Method Summary | |
---|---|
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. |
Object |
getValue()
Returns the value of this constant value object, which is a Java object that can be used to represent a value of the defined type, as returned by getTypeDefinition() . |
void |
setValue(Object value)
Set the value of this constant value. |
Methods inherited from interface tv.amwa.maj.iface.Parameter |
---|
getParameterDefinition |
Methods inherited from interface tv.amwa.maj.iface.InterchangeObject |
---|
countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getGeneration, getGenerationAUID, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, setPropertyValue |
Method Detail |
---|
Object getValue()
Returns the value of this constant value object, which is a Java object that
can be used to represent a value of the defined type, as returned by
getTypeDefinition()
.
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 Parameter
Parameter.getTypeDefinition()
,
ParameterDefinition.getTypeDefinition()
void setValue(Object value) throws NullPointerException, ClassCastException
Set the value of this constant value.
value
- Value to set for this contant value.
NullPointerException
- The given value is null
.
ClassCastException
- The given value cannot be cast to a value of the
type of this type definition.TypeDefinition.createValue(Object)
,
PropertyValue.getValue()
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |