@MediaClass(uuid1=218169601, uuid2=257, uuid3=16128, uuid4={6,14,43,52,2,6,1,1}, definedName="TaggedValue", description="The TaggedValue class specifies a user-defined tag and value.", symbol="TaggedValue") public class TaggedValueImpl extends InterchangeObjectImpl implements TaggedValue, TaggedValue, Serializable, Cloneable
Implements a user defined tag and value pair.
ObjectClassPropertyID| Constructor and Description |
|---|
TaggedValueImpl() |
TaggedValueImpl(String tag,
PropertyValue indirectValue) |
TaggedValueImpl(String name,
TypeDefinition typeDefinition,
Serializable value)
Creates and initializes a new tagged value object, which specifies a
user-defined tag and value.
|
addApplicationPlugin, appendXMLChildren, clearApplicationPlugins, containsApplicationPlugin, containsApplicationPlugin, countApplicationPlugins, deepEquals, disableGenerationTracking, enableGenerationTracking, equals, getApplicationPlugins, getComment, getGeneration, getLinkedGenerationID, getLinkedGenerationIDString, getObjectClass, getPersistentID, getPersistentIndex, hashCode, isGenerationTracked, removeApplicationPlugin, removeApplicationPlugin, setLinkedGenerationID, setLinkedGenerationIDString, setObjectClass, setPersistentID, setPersistentIndex, toStringaddApplicationPlugin, clearApplicationPlugins, containsApplicationPlugin, containsApplicationPlugin, countApplicationPlugins, deepEquals, disableGenerationTracking, enableGenerationTracking, equals, getApplicationPlugins, getGeneration, getLinkedGenerationID, getObjectClass, isGenerationTracked, removeApplicationPlugin, removeApplicationPlugin, setLinkedGenerationID, setObjectClass, toStringgetPersistentID, setPersistentIndexpublic TaggedValueImpl()
public TaggedValueImpl(@AAFString String name, TypeDefinition typeDefinition, Serializable value) throws NullPointerException, ClassCastException
Creates and initializes a new tagged value object, which specifies a user-defined tag and value.
name - User defined name (tag) of the tagged value object.typeDefinition - Type definition of the following value data.value - Value of the given type.NullPointerException - One or more of the arguments is null.ClassCastException - The given value cannot be cast to a value of the
given type.public TaggedValueImpl(@AAFString String tag, PropertyValue indirectValue) throws NullPointerException
NullPointerExceptionpublic TypeDefinition getIndirectTypeDefinition()
TaggedValueReturns the type of the user-defined indirect value.
getIndirectTypeDefinition in interface TaggedValueTaggedValue.getIndirectValue(),
TypeDefinitionIndirect,
TypeDefinitionIndirect.getActualValue(PropertyValue),
PropertyValue.getType()@MediaProperty(uuid1=50462978, uuid2=2305, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="Tag", aliases={"Name","TaggedValueName"}, typeName="UTF16String", optional=false, uniqueIdentifier=false, pid=20481, symbol="Tag") public String getTag()
TaggedValueReturns the tag name property of this tagged value, which is a user-defined tag.
getTag in interface TaggedValue@MediaPropertySetter(value="Tag") public void setTag(String tag) throws NullPointerException
NullPointerExceptionpublic static final String initializeTag()
@MediaProperty(uuid1=50462978, uuid2=2561, uuid3=0, uuid4={6,14,43,52,1,1,1,2}, definedName="IndirectValue", aliases={"Value","TaggedValueValue"}, typeName="Indirect", optional=false, uniqueIdentifier=false, pid=20483, symbol="IndirectValue") public PropertyValue getIndirectValue()
TaggedValueReturns the user-defined value of this tagged value as a property value.
The type of the returned value can be found be calling PropertyValue.getType().
Methods of the type definition returned can be used to
access the value. Alternatively, you can access the value directly by calling
PropertyValue.getValue().
getIndirectValue in interface TaggedValueTaggedValue.getIndirectTypeDefinition(),
TypeDefinitionIndirect,
TypeDefinitionIndirect.getActualValue(PropertyValue),
PropertyValue.getValue()@MediaPropertySetter(value="IndirectValue") public void setIndirectValue(PropertyValue indirectValue) throws NullPointerException
TaggedValueSets the user-defined indirect value of this tagged value.
To create an indirect value, use the createValue() method of any type definition.
Alternatively, you can retrieve the value of any other property
using its property definition. To retrieve the
property value of a property called foo from an instance called bar:
ClassDefinition barClassDef =
ClassDefinitionWarehouse.forClass(bar.getClass());
PropertyDefinition fooDefinition =
barClassDef.lookupPropertyDefinition("foo");
PropertyValue fooValue =
fooDefinition.getPropertyValue(bar);
setIndirectValue in interface TaggedValueindirectValue - Indirect value of this tagged value.NullPointerException - The given user-defined value is null.TypeDefinitionIndirect,
TypeDefinition.createValue(Object),
Warehouse.lookForType(String),
PropertyDefinition.getPropertyValue(MetadataObject)public static final PropertyValue initializeIndirectValue()
public TaggedValue clone()
InterchangeObjectCreate a cloned copy of this interchange object.
clone in interface MediaEntityclone in interface InterchangeObjectclone in interface TaggedValueclone in class InterchangeObjectImpl@MediaProperty(uuid1=1620410757, uuid2=18353, uuid3=4564, uuid4={-96,28,0,4,-84,-106,-97,80}, definedName="TaggedValueAttributeList", typeName="TaggedValueStrongReferenceVector", optional=true, uniqueIdentifier=false, pid=0, symbol="TaggedValueAttributeList", namespace="http://www.amwa.tv/is03/extensions/avid", prefix="avid") public List<TaggedValue> getTaggedValueAttributeList() throws PropertyNotPresentException
PropertyNotPresentException@MediaListAppend(value="TaggedValueAttributeList") public void appendTaggedValueAttributeItem(TaggedValue taggedValueAttributeItem) throws NullPointerException
NullPointerException@MediaListPrepend(value="TaggedValueAttributeList") public void prependTaggedValueAttributeItem(TaggedValue taggedValueAttributeItem) throws NullPointerException
NullPointerException@MediaListInsertAt(value="TaggedValueAttributeList") public void insertTaggedValueAttributeItem(int index, TaggedValue taggedValueAttributeItem) throws NullPointerException, IndexOutOfBoundsException
@MediaPropertyCount(value="TaggedValueAttributeList") public int countTaggedValueAttributeList()
@MediaPropertyClear(value="TaggedValueAttributeList") public void clearTaggedValueAttributeList()
@MediaListGetAt(value="TaggedValueAttributeList") public TaggedValue getTaggedValueAttributeItemAt(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsException@MediaListRemoveAt(value="TaggedValueAttributeList") public void removeTaggedValueAttributeItemAt(int index) throws IndexOutOfBoundsException
IndexOutOfBoundsException@UInt32 public int getPortableObjectClassID() throws PropertyNotPresentException
PropertyNotPresentExceptionpublic void setPortableObjectClassID(@UInt32 Integer portableObjectClassID) throws IllegalArgumentException
IllegalArgumentExceptionpublic InterchangeObject getPortableObject() throws PropertyNotPresentException
PropertyNotPresentExceptionpublic void setPortableObject(InterchangeObject portableObject)
public byte[] getIndirectValuePersist()
throws NotSerializableException,
NullPointerException,
IllegalPropertyValueException,
InsufficientSpaceException
public void setIndirectValuePersist(byte[] indirectBytes)
(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.