|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |
@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface ExtendibleEnumerationItem
Labels an AUID that represents an element of an extendible enumeration. These annotations are used by the extendible enumeration factory to create and dynamically manage extendible enumerations at runtime.
Using this annotation, it is possible for any AUID to become an element of an existing of new
extendible enumeration at runtime. As long as the AUID is in the current classpath, a set of elements
ExtendibleEnumerationWarehouse.addItemsFromClass(Class)
. A labelled constant
for an enumeration can be added to an extendible enumeration by calling
looks like:
@ExtendibleEnumerationItem(target = "ColorPrimaries") public final static AUID SMPTE170M = new tv.amwa.maj.embeddable.AUID( 0x04010101, (short) 0x0301, (short) 0x0000, new byte[] { 0x06, 0x0e, 0x2b, 0x34, 0x04, 0x01, 0x01, 0x06 });
Note that the new elements are registered within the local Java virtual machine only.
ExtendibleEnumerationWarehouse
,
TypeDefinitionExtendibleEnumeration
,
ColorPrimariesType
Required Element Summary | |
---|---|
String |
target
Name of the extendible enumeration that this labelled constant is an element for. |
Element Detail |
---|
public abstract String target
Name of the extendible enumeration that this labelled constant is an element for. When used to create an element of an extendible enumeration, the name of the labelled AUID constant is used as the name of the element.
ExtendibleEnumerationWarehouse.addItemsFromClass(Class)
|
Media Authoring with Java API |
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: REQUIRED | OPTIONAL | DETAIL: ELEMENT |