Media Authoring
with Java API

tv.amwa.maj.enumeration
Enum DefinitionKind

java.lang.Object
  extended by java.lang.Enum<DefinitionKind>
      extended by tv.amwa.maj.enumeration.DefinitionKind
All Implemented Interfaces:
Serializable, Comparable<DefinitionKind>, AAFEnumerationValue

public enum DefinitionKind
extends Enum<DefinitionKind>
implements AAFEnumerationValue

Specifies the kind of a definition, such as Class, Property, Operation etc.. Values of this enumeration are used to define search criteria for search operations.

Original C name: aafDefinitionKind_e

Author:
Richard Cartwright
See Also:
DefinitionCriteriaByKind, DefinitionObject

Enum Constant Summary
AllDefinitions
          Matches all definitions.
ClassDefinition
          Matches class definitions.
DataDefinition
          Matches data definitions.
OperationDefinition
          Matches operation definitions.
PropertyDefinition
          Matches property definitions.
TypeDefinition
          Matches type definitions.
 
Method Summary
 long value()
          Returns the unique integer value associated with an enumeration value, either according to the AAF specification and/or the current AAF meta dictionary.
static DefinitionKind valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DefinitionKind[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface tv.amwa.maj.enumeration.AAFEnumerationValue
name
 

Enum Constant Detail

AllDefinitions

public static final DefinitionKind AllDefinitions

Matches all definitions.


ClassDefinition

public static final DefinitionKind ClassDefinition

Matches class definitions.


PropertyDefinition

public static final DefinitionKind PropertyDefinition

Matches property definitions.


TypeDefinition

public static final DefinitionKind TypeDefinition

Matches type definitions.


DataDefinition

public static final DefinitionKind DataDefinition

Matches data definitions.


OperationDefinition

public static final DefinitionKind OperationDefinition

Matches operation definitions.

Method Detail

values

public static final DefinitionKind[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(DefinitionKind c : DefinitionKind.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static DefinitionKind valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

value

@Int64
public long value()
Description copied from interface: AAFEnumerationValue

Returns the unique integer value associated with an enumeration value, either according to the AAF specification and/or the current AAF meta dictionary.

Specified by:
value in interface AAFEnumerationValue
Returns:
Unique integer value associated with an enumeration constant.

Media Authoring
with Java API

(c) 2007-2008 Richard Cartwright, all rights reserved. Subject to the terms of the AAF SDK Public Source License.