Media Authoring
with Java API

tv.amwa.maj.meta
Class TypeDefinitionObjectReference.TypeDefinitionObjectReferenceUnresolved

java.lang.Object
  extended by tv.amwa.maj.meta.MetaDefinition
      extended by tv.amwa.maj.meta.TypeDefinition
          extended by tv.amwa.maj.meta.TypeDefinitionObjectReference
              extended by tv.amwa.maj.meta.TypeDefinitionObjectReference.TypeDefinitionObjectReferenceUnresolved
All Implemented Interfaces:
Serializable, DefinitionType, MetaDefinition, TypeDefinition, TypeDefinitionObjectReference, XMLSerializable, MAJCommon
Enclosing class:
TypeDefinitionObjectReference

public static class TypeDefinitionObjectReference.TypeDefinitionObjectReferenceUnresolved
extends TypeDefinitionObjectReference

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class tv.amwa.maj.meta.TypeDefinitionObjectReference
TypeDefinitionObjectReference.ObjectReferenceValue, TypeDefinitionObjectReference.TypeDefinitionObjectReferenceUnresolved
 
Method Summary
 PropertyValue createValue(Object javaValue)
          Create a property value from the given Java object.
 AUID getIdentification()
           
 String getSymbolName()
          Create an XML symbol name from the name of this definition.
 TypeCategory getTypeCategory()
          Returns the type category to which this type definition belongs, which corresponds to its sub interface.
 String toString()
          Create and return a human-readable string representation of this embeddable value.
 
Methods inherited from class tv.amwa.maj.meta.TypeDefinitionObjectReference
appendXMLChildren, deepEquals, getObject, getObjectType, setObject, setPropertiesFromInterface
 
Methods inherited from class tv.amwa.maj.meta.TypeDefinition
setPropertiesFromInterface
 
Methods inherited from class tv.amwa.maj.meta.MetaDefinition
castFromInterface, equals, getAUID, getDescription, getName, hashCode, setDescription, setName, setPropertiesFromInterface
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface tv.amwa.maj.iface.MetaDefinition
getAUID, getDescription, getName, setDescription, setName
 
Methods inherited from interface tv.amwa.maj.meta.MAJCommon
equals, hashCode
 

Method Detail

createValue

public PropertyValue createValue(Object javaValue)
                          throws ClassCastException
Description copied from class: TypeDefinition

Create a property value from the given Java object. If the type of the object is not compatible with this type definition, a ClassCastException is thrown.

Specified by:
createValue in interface TypeDefinition
Specified by:
createValue in interface TypeDefinitionObjectReference
Overrides:
createValue in class TypeDefinitionObjectReference
Parameters:
javaValue - Java object to use to create a property value of this type.
Returns:
Property value representing the given value.
Throws:
ClassCastException - The given object cannot be cast to a property value with this type definition.
See Also:
TypeDefinitionObjectReference.setObject(PropertyValue, Object)

getTypeCategory

public TypeCategory getTypeCategory()
Description copied from interface: TypeDefinition

Returns the type category to which this type definition belongs, which corresponds to its sub interface. For example, TypeCategory.Int is returned for a TypeDefinitionInteger.

Specified by:
getTypeCategory in interface TypeDefinition
Specified by:
getTypeCategory in class TypeDefinition
Returns:
Type category to which the type definition belongs.
See Also:
TypeCategory

getIdentification

public AUID getIdentification()
Overrides:
getIdentification in class MetaDefinition

getSymbolName

public String getSymbolName()
Description copied from class: MetaDefinition

Create an XML symbol name from the name of this definition. All non-word characters are replaced by underbar characers "_".

Returns:
Symbol name created from this definition's name.

toString

public String toString()
Description copied from interface: MAJCommon

Create and return a human-readable string representation of this embeddable value.

Specified by:
toString in interface MAJCommon
Overrides:
toString in class MetaDefinition
Returns:
String representation of this embeddable value.
See Also:
Object.toString()

Media Authoring
with Java API

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