edu.cmu.sei.aadl.model.pluginsupport
Class AObjectActionFilter

java.lang.Object
  extended by edu.cmu.sei.aadl.model.pluginsupport.AObjectActionFilter
All Implemented Interfaces:
org.eclipse.ui.IActionFilter

public class AObjectActionFilter
extends java.lang.Object
implements org.eclipse.ui.IActionFilter

Action filter for AObject objects, allowing access to the "AADLMetaModelClass" attribute, and the "AADLMetaModelKind" attribute.

The "AADLMetaModelClass" attribute tests the runtime class of the given object against the named class in the value field. If the object's class is a subclass of the named class then the attribute is true.

The "AADLMetaModelKind" attribute allows the action to test whether the object is part of an AADL instance model or part of an AADL declarative model. Legal values are "instance" and "declarative" respectively.

Author:
aarong

Field Summary
static java.lang.String DECLARATIVE_KIND
           
static java.lang.String INSTANCE_KIND
           
static java.lang.String META_MODEL_CLASS
           
static java.lang.String META_MODEL_KIND
           
static AObjectActionFilter prototype
           
 
Method Summary
 boolean testAttribute(java.lang.Object target, java.lang.String name, java.lang.String value)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

META_MODEL_CLASS

public static final java.lang.String META_MODEL_CLASS
See Also:
Constant Field Values

META_MODEL_KIND

public static final java.lang.String META_MODEL_KIND
See Also:
Constant Field Values

INSTANCE_KIND

public static final java.lang.String INSTANCE_KIND
See Also:
Constant Field Values

DECLARATIVE_KIND

public static final java.lang.String DECLARATIVE_KIND
See Also:
Constant Field Values

prototype

public static final AObjectActionFilter prototype
Method Detail

testAttribute

public boolean testAttribute(java.lang.Object target,
                             java.lang.String name,
                             java.lang.String value)
Specified by:
testAttribute in interface org.eclipse.ui.IActionFilter