|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface PropertyDefinition
Specifies the description of a property allowed for a class.
A property definition is used to indicate a particular property
within a class. It defines the name and type of a property that is
used to set the value of an object of the class. Property definitions should be created through
registerNewPropertyDefinition()
or registerOptionalPropertyDefinition()
.
ClassDefinition.registerNewPropertyDefinition(AUID, String, TypeDefinition, boolean, boolean, Short)
,
ClassDefinition.registerOptionalPropertyDefinition(AUID, String, TypeDefinition)
,
ClassDefinition.getPropertyDefinitions()
,
ClassDefinition.forClass(Class)
,
AAFProperty
,
PropertyValue
,
Property
Method Summary | |
---|---|
boolean |
getIsOptional()
Returns true for a property that is optional and
false for a mandatory property. |
boolean |
getIsUniqueIdentifier()
Returns true for a property that provides a unique
identifier for its associated object; otherwise false . |
short |
getLocalIdentification()
Returns the local identification associated with this property definition, which is used to identify the property within the scope of its associated class, as returned by getMemberOf() . |
ClassDefinition |
getMemberOf()
Returns the class definition for the class that this property definition defines a property for. |
TypeDefinition |
getTypeDefinition()
Returns the property type of the defined property. |
Methods inherited from interface tv.amwa.maj.iface.MetaDefinition |
---|
getAUID, getDescription, getName, setDescription, setName |
Method Detail |
---|
TypeDefinition getTypeDefinition()
Returns the property type of the defined property.
@Bool boolean getIsOptional()
Returns true
for a property that is optional and
false
for a mandatory property. Optional properties can
be omitted from an objects persistent representation.
@Bool boolean getIsUniqueIdentifier() throws PropertyNotPresentException
Returns true
for a property that provides a unique
identifier for its associated object; otherwise false
.
PropertyNotPresentException
- The optional is unique identifier property
is not present in this property definition.@UInt16 short getLocalIdentification() throws PropertyNotPresentException
Returns the local identification associated with this property definition,
which is used to identify the property within the scope of its associated class,
as returned by getMemberOf()
. This property is optional in the MAJ API as
this API may not use an AAF-file based persistent representation of data.
PropertyNotPresentException
- The optional local identification property is
not present in this property definition.ClassDefinition getMemberOf() throws PropertyNotPresentException
Returns the class definition for the class that this property definition defines a property for. This property is optional in the MAJ API but is almost always available in the implementation.
PropertyNotPresentException
- The optional member of a class property is not present
in this property definition.ClassDefinition.getPropertyDefinitions()
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |