Media Authoring
with Java API

tv.amwa.maj.meta
Class TypeDefinitionObjectReference.ObjectReferenceValue

java.lang.Object
  extended by tv.amwa.maj.meta.TypeDefinitionObjectReference.ObjectReferenceValue
All Implemented Interfaces:
PropertyValue
Enclosing class:
TypeDefinitionObjectReference

public static class TypeDefinitionObjectReference.ObjectReferenceValue
extends Object
implements PropertyValue


Method Summary
 boolean equals(Object o)
          Method included so that methods of Set will work as expected.
 TypeDefinition getType()
          Returns the type definition for this property value.
 Object getValue()
          Returns the value of the property through a generic Java object interface.
 int hashCode()
          Method included so that methods of Set will work as expected.
 boolean isDefinedType()
           
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getType

public TypeDefinition getType()
Description copied from interface: PropertyValue

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:

Specified by:
getType in interface PropertyValue
Returns:
Type of this property value.
See Also:
PropertyDefinition.getTypeDefinition()

getValue

public Object getValue()
Description copied from interface: PropertyValue

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.

Specified by:
getValue in interface PropertyValue
Returns:
Value of this property.
See Also:
TypeDefinition.createValue(Object)

isDefinedType

public boolean isDefinedType()

equals

public boolean equals(Object o)

Method included so that methods of Set will work as expected.

Overrides:
equals in class Object
See Also:
Object.equals(java.lang.Object)

hashCode

public int hashCode()

Method included so that methods of Set will work as expected.

Overrides:
hashCode in class Object
See Also:
Object.hashCode()

Media Authoring
with Java API

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