public abstract class MethodBag extends Object
Collection of Java methods required to manipulate a property value
of an AAF type. Implementations of this class scan a set of
methods to see if any are annotated with AAF-specific annotations
(MediaPropertySetter, MediaSetAdd etc.). If they are, methods of this class allow
invocation of those methods.
| Constructor and Description |
|---|
MethodBag(Method getter,
Method[] candidateMethods,
String propertyName)
Create a method bag from a given getter method for a property value, a
set of candidate manipulation methods and the defined name of the related
property.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
get(MetadataObject mdObject) |
String |
getGetterName() |
String |
getPropertyName() |
public MethodBag(Method getter, Method[] candidateMethods, String propertyName)
Create a method bag from a given getter method for a property value, a set of candidate manipulation methods and the defined name of the related property.
getter - Getter method used to retrieve the property value.candidateMethods - List of candidate manipulation methods.propertyName - Name of the property this method bag relates to.public Object get(MetadataObject mdObject) throws IllegalArgumentException, IllegalAccessException, InvocationTargetException
public String getPropertyName()
public String getGetterName()
(c)2007-2016 Richard Cartwright, all rights reserved. Licensed under Apache 2 license and subject to the AMWA IPR policy.