Media Authoring
with Java API

tv.amwa.maj.iface
Interface PropertyValue

All Known Implementing Classes:
TypeDefinitionCharacter.CharacterValue, TypeDefinitionEnumeration.EnumerationValue, TypeDefinitionExtendibleEnumeration.ExtendibleEnumerationValue, TypeDefinitionFixedArray.FixedArrayValue, TypeDefinitionIndirect.IndirectValue, TypeDefinitionInteger.BaseIntegerValue, TypeDefinitionInteger.ByteValue, TypeDefinitionInteger.IntegerValue, TypeDefinitionInteger.LongValue, TypeDefinitionInteger.ShortValue, TypeDefinitionObjectReference.ObjectReferenceValue, TypeDefinitionOpaque.OpaqueValue, TypeDefinitionRecord.RecordValue, TypeDefinitionRename.RenamedValue, TypeDefinitionSet.SetValue, TypeDefinitionStream.StreamValue, TypeDefinitionString.BaseStringValue, TypeDefinitionString.ByteArrayStringValue, TypeDefinitionString.CharacterStringValue, TypeDefinitionVariableArray.VariableArrayValue

public interface PropertyValue

Specifies the type and current value of a property. Methods of the subclasses of type definition allow access to the data value held in the property value object.

Author:
Richard Cartwright
See Also:
TypeDefinition.createValue(Object), PropertyDefinition, getValue()

Method Summary
 TypeDefinition getType()
          Returns the type definition for this property value.
 Object getValue()
          Returns the value of the property through a generic Java object interface.
 

Method Detail

getType

TypeDefinition getType()

Returns the type definition for this property value.

Methods of the returned type definition can be used to manipulate a property value. For example, for a value of AAF UInt32 type, the following methods are available on TypeDefinitionInteger:

Returns:
Type of this property value.
See Also:
PropertyDefinition.getTypeDefinition()

getValue

Object getValue()

Returns the value of the property through a generic Java object interface. Alternative type-specific access methods are provided in each type definition.

For example, for a property value of a UInt32 type, this method returns an Integer. Values will need to be cast to appropriate types by the application. The value returned may be null, which may indicate that an optional property was not present.

Returns:
Value of this property.
See Also:
TypeDefinition.createValue(Object)

Media Authoring
with Java API

(c) 2007-2008 Richard Cartwright, all rights reserved. Subject to the terms of the AAF SDK Public Source License.