|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objecttv.amwa.maj.meta.MetaDefinition
tv.amwa.maj.meta.TypeDefinition
@AAFClass(uuid1=218169601, uuid2=515, uuid3=0, uuid4={6,14,43,52,2,6,1,1}, definedName="TypeDefinition", description="The TypeDefinition class defines a property type.") public abstract class TypeDefinition
Implements the definition of a property type.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
TypeDefinitionWarehouse
,
Serialized FormConstructor Summary | |
---|---|
TypeDefinition()
|
Method Summary | |
---|---|
abstract PropertyValue |
createValue(Object javaValue)
Create a property value from the given Java object. |
abstract TypeCategory |
getTypeCategory()
Returns the type category to which this type definition belongs, which corresponds to its sub interface. |
void |
setPropertiesFromInterface(TypeDefinition castFrom)
|
Methods inherited from class tv.amwa.maj.meta.MetaDefinition |
---|
appendXMLChildren, castFromInterface, deepEquals, equals, getAUID, getDescription, getIdentification, getName, hashCode, setDescription, setName, setPropertiesFromInterface, toString |
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, toString |
Constructor Detail |
---|
public TypeDefinition()
Method Detail |
---|
public final void setPropertiesFromInterface(TypeDefinition castFrom)
public abstract TypeCategory getTypeCategory()
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
.
getTypeCategory
in interface TypeDefinition
TypeCategory
public abstract PropertyValue createValue(Object javaValue) throws ClassCastException
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.
createValue
in interface TypeDefinition
javaValue
- Java object to use to create a property value of this type.
ClassCastException
- The given object cannot be cast to a property value with
this type definition.
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |