| |||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.emf.edit.command.CommandParameter
This is a convenient common base class for all the command parameters need by the various types of commands. It provides particular support for the encodings need by the basic EMF-based command implementations.
Field Summary | |
Collection | collection
This is the collection of values involved in the command. |
Object | feature
This is the aspect of the owner that will be affected. |
int | index
This the index (ususally the position indicator) of the command. |
static int | NO_INDEX
This value is used to indicate that the optional positional index indicator is unspecified. |
Object | owner
This is the object that is the target or subject of the command. |
Object | value
This is the single value involved in the command. |
Constructor Summary | |
CommandParameter(Object owner)
This creates an instance specifying only an owner. | |
CommandParameter(Object owner,
Object feature,
Collection collection)
This creates an instance specifying an owner, a feature, and a collection of values. | |
CommandParameter(Object owner,
Object feature,
Collection collection,
int index)
This creates an instance specifying an owner, a feature, a collection of values, and an index. | |
CommandParameter(Object owner,
Object feature,
Object value)
This creates an instance specifying an owner, a feature, and a value. | |
CommandParameter(Object owner,
Object feature,
Object value,
Collection collection)
This creates an instance specifying an owner, a feature, and a value, and a collection. | |
CommandParameter(Object owner,
Object feature,
Object value,
Collection collection,
int index)
This creates an instance specifying an owner, a feature, a value, a collection, and an index. | |
CommandParameter(Object owner,
Object feature,
Object value,
int index)
This creates an instance specifying an owner, a feature, a value, and an index. |
Method Summary | |
static String | collectionToString(Collection collection)
|
Collection | getCollection()
This returns the specified collection. |
EAttribute | getEAttribute()
This returns the specified feature as a EReference, if it is one. |
EObject | getEOwner()
This returns the specified owner as a EObject, if it is one. |
EReference | getEReference()
This returns the specified feature as a EReference, if it is one. |
EStructuralFeature | getEStructuralFeature()
This returns the specified feature as a EStructuralFeature, if it is one. |
EObject | getEValue()
This returns the specified value as a EObject, if it is one. |
Object | getFeature()
This returns the specified feature. |
int | getIndex()
This returns the specified index. |
List | getList()
This returns the specified collection as a list. |
Object | getOwner()
This returns the specified owner. |
EList | getOwnerList()
This is a safe way to get the list affected by the parameters for an add or remove specification. |
Collection | getParameters()
This yields an encoding of the owner-child relation. |
Object | getValue()
This returns the specified value. |
void | setOwner(Object owner)
This sets the owner to the specified value. |
String | toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int NO_INDEX
public Object owner
public Object feature
public Collection collection
public Object value
public int index
Constructor Detail |
public CommandParameter(Object owner)
public CommandParameter(Object owner, Object feature, Object value)
public CommandParameter(Object owner, Object feature, Object value, int index)
public CommandParameter(Object owner, Object feature, Collection collection)
public CommandParameter(Object owner, Object feature, Collection collection, int index)
public CommandParameter(Object owner, Object feature, Object value, Collection collection)
public CommandParameter(Object owner, Object feature, Object value, Collection collection, int index)
Method Detail |
public Object getOwner()
public EObject getEOwner()
public void setOwner(Object owner)
public Object getFeature()
public EStructuralFeature getEStructuralFeature()
public EReference getEReference()
public EAttribute getEAttribute()
public EList getOwnerList()
It works as an excellent guard for poorly formed parameters.
public Collection getCollection()
public List getList()
public Object getValue()
public EObject getEValue()
public int getIndex()
public Collection getParameters()
public static String collectionToString(Collection collection)
public String toString()
|
Copyright 2001-2004 IBM Corporation and others. All Rights Reserved. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |