|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface TaggedValue
Specifies a user defined tag and value pair.
The value is of indirect type and the MAJ
API provides methods that map values from Java objects to and from indirect type
values. These mechanisms are hidden behind the getValue()
and
setValue(Object)
methods.
A common type for data values is string and
both the mob and component interfaces specify
shortcut methods to create string comments and attributes. For example, Mob.appendComment(String, String)
and Component.appendAttribute(String, String)
.
makeTaggedValue()
,
TaggedValueDefinition
,
Dictionary.getTaggedValueDefinitions()
,
Mob.getAttributes()
,
Mob.getComments()
,
Component.getAttributes()
,
Component.getComments()
Method Summary | |
---|---|
String |
getName()
Returns the name property of this tagged value, which is a user-defined tag. |
TypeDefinition |
getTypeDefinition()
Returns the type of the user-defined value. |
Object |
getValue()
Returns the user-defined value of this tagged value. |
void |
setValue(Object value)
Sets the user-defined value of this tagged value, which must be compatible with the value's type definition. |
Methods inherited from interface tv.amwa.maj.iface.InterchangeObject |
---|
countProperties, createOptionalPropertyValue, disableGenerationTracking, enableGenerationTracking, getDefinition, getGeneration, getGenerationAUID, getProperties, getPropertyValue, isGenerationTracked, isPropertyPresent, omitOpionalProperty, setPropertyValue |
Method Detail |
---|
@AAFString String getName()
Returns the name property of this tagged value, which is a user-defined tag.
TypeDefinition getTypeDefinition()
Returns the type of the user-defined value.
getValue()
,
TypeDefinitionIndirect
,
TypeDefinitionIndirect.getActualValue(PropertyValue)
,
PropertyValue.getType()
Object getValue()
Returns the user-defined value of this tagged value.
getTypeDefinition()
,
TypeDefinitionIndirect
,
TypeDefinitionIndirect.getActualValue(PropertyValue)
,
PropertyValue.getValue()
void setValue(Object value) throws NullPointerException
Sets the user-defined value of this tagged value, which must be compatible with the value's type definition.
value
- Data value of this tagged value.
NullPointerException
- The given user-defined value is null
.
ClassCastException
- The given value cannot be cast to a value of the
type definition for this tagged value.TypeDefinitionIndirect
,
TypeDefinition.createValue(Object)
,
TypeDefinitionIndirect
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |