public interface TypeDefinitionObjectReference extends TypeDefinition
Specifies the definition of a property type that defines an object relationship.
THE COMMENTS FOR THIS CLASS ARE INCOMPLETE.
| Modifier and Type | Method and Description |
|---|---|
TypeDefinitionObjectReference |
clone()
Create a cloned copy of this object reference type definition.
|
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.
|
createFromBytes, getPropertyValue, getTypeCategory, lengthAsBytes, resolveReferences, setPropertyValue, writeAsBytes, writeAsStructuredStorageBytesappendMetadictXML, deepEquals, equals, getAAFNamesInUse, getAliases, getAUID, getDescription, getName, getNamespace, getPrefix, getSymbol, hashCode, setAAFNamesInUse, setDescription, setName, setNamespace, setPrefix, setSymbol, toStringgetWeakTargetReferenceClassDefinition 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 TypeDefinitionobject - 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)TypeDefinitionObjectReference clone()
Create a cloned copy of this object reference type definition.
clone in interface MetaDefinitionclone in interface TypeDefinition(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.