Skip navigation links
Media Authoring with Java API (MAJ)

Package tv.amwa.maj.record

Specifications of representations of structured values, such as those of the AAF record data types.

See: Description

Package tv.amwa.maj.record Description

Specifications of representations of structured values, such as those of the AAF record data types. Property values of the record type consist of values for an ordered set of fields, where each field has a name and type.

Included in this package are:

A generic means of mapping the public fields of any Java class to an AAF record type definition is provided by the createValueFromObject() and getObject() methods of a record type definition.

Heritage

The interfaces defined in this package are derived from structures defined for the C-based AAF SDK in file "AAFTypes.h". The structure has been converted to a Java interface with every element of the C struct represented by a pair of get and set methods.

For example, the AAF rational data type is defined in the AAF SDK by the following structure:

    typedef struct _aafRational_t
    {
        aafInt32           numerator;
        aafInt32           denominator;
    } aafRational_t;

This has been translated to the Java interface called Rational as follows:

    public interface Rational {
        @Int32 getNumerator();
        void setNumerator(@Int32 int numerator);
        @Int32 getDenominator();
        void setDenominator(@Int32 int denominator);
    }
See Also:
TypeDefinitionRecord
Skip navigation links
Media Authoring with Java API (MAJ)

(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.