|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TypeDefinitionObjectReference
Specifies the definition of a property type that defines an object relationship.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
TypeDefinitionStrongObjectReference
,
TypeDefinitionWeakObjectReference
Method Summary | |
---|---|
PropertyValue |
createValue(Object object)
Creates and returns a new object reference property value to reference the given object. |
Object |
getObject(PropertyValue propertyValue)
Returns the object referenced by the given object reference property value. |
ClassDefinition |
getObjectType()
Returns the class definition representing the class of objects to which this object reference type definition can refer. |
void |
setObject(PropertyValue propertyValue,
Object object)
Sets the given object as the target of the given object reference property value. |
Methods inherited from interface tv.amwa.maj.iface.TypeDefinition |
---|
getTypeCategory |
Methods inherited from interface tv.amwa.maj.iface.MetaDefinition |
---|
getAUID, getDescription, getName, setDescription, setName |
Method Detail |
---|
ClassDefinition getObjectType()
Returns the class definition representing the class of objects to which this object reference type definition can refer. The returned definition is the least-derived type that it is permissible to represent, in other words the type definition can represent objects of the given class and any of its sub-classes.
PropertyValue createValue(Object object) throws NullPointerException, ClassCastException
Creates and returns a new object reference property value to reference the given object.
createValue
in interface TypeDefinition
object
- Object to use to create an object reference
property value.
NullPointerException
- The given object is null
.
ClassCastException
- The given object cannot be cast
to one compatible with the permissible classes, as returned
by getObjectType()
.setObject(PropertyValue, Object)
Object getObject(PropertyValue propertyValue) throws NullPointerException, IllegalPropertyValueException
Returns the object referenced by the given object reference property value.
propertyValue
- Property value form which the value is to
be read.
NullPointerException
- The given property value containing
a reference is null
.
IllegalPropertyValueException
- The given property value is
not defined by this object reference type.void setObject(PropertyValue propertyValue, Object object) throws NullPointerException, IllegalPropertyValueException, ClassCastException
Sets the given object as the target of the given object reference property value.
propertyValue
- Property value containing the object
reference to be set.object
- Target of the object reference to set for the
given property value.
NullPointerException
- Argument is null.
IllegalPropertyValueException
- The given property value is
not defined by this object reference type.
ClassCastException
- The given object cannot be cast
to one compatible with the permissible classes, as returned
by getObjectType()
.createValue(Object)
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |