|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.eclipse.gmf.runtime.emf.type.core.MultiClientContext
public class MultiClientContext
Implements a multi-context, which is a compound context representing a group of client contexts.
It's matcher matches an EObject if all of child contexts match
that EObject.
It includes an IElementType or an
IEditHelperAdviceDescriptor if all of the child contexts
include that IElementType or
IEditHelperAdviceDescriptor.
| Field Summary | |
|---|---|
static java.lang.String |
MULTI_CLIENT_CONTEXT_ID
The ID of all multi-contexts. |
| Constructor Summary | |
|---|---|
MultiClientContext(java.util.Collection childContexts)
Initializes me with my child contexts. |
|
| Method Summary | |
|---|---|
void |
add(IClientContext context)
Adds the given context to this multi-context. |
void |
bindId(java.lang.String typeId)
Binds the typeId to each of my children. |
void |
bindPattern(java.util.regex.Pattern pattern)
Binds the pattern to each of my children. |
boolean |
equals(java.lang.Object obj)
The children fully determine equality. |
java.util.Collection |
getChildren()
Returns a list of IClientContexts contained in this
multi-context, or an empty list if this is not a multi-context. |
java.lang.String |
getId()
Returns the context ID defined by the client if this is not a multi-context. |
IElementMatcher |
getMatcher()
Matches an EObject if all of my children match that
EObject. |
int |
hashCode()
The children fully determine equality. |
boolean |
includes(org.eclipse.gmf.runtime.emf.type.core.internal.descriptors.IEditHelperAdviceDescriptor advice)
Includes the advice if all of my child contexts include
the advice. |
boolean |
includes(IElementType elementType)
Includes the elementType if all of my child contexts
include the elementType. |
boolean |
includes(IElementTypeDescriptor elementTypeDescriptor)
Includes the elementTypeDescriptor if all of my child
contexts include the elementTypeDescriptor. |
boolean |
isMultiClientContext()
I am a multi-clientContext. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String MULTI_CLIENT_CONTEXT_ID
| Constructor Detail |
|---|
public MultiClientContext(java.util.Collection childContexts)
children - the IClientContexts that I represent| Method Detail |
|---|
public boolean isMultiClientContext()
isMultiClientContext in interface IClientContexttrue for a multi-context, false
otherwisepublic void add(IClientContext context)
context
is a multi-context, adds its children instead of itself.
status - the new child contextpublic final java.lang.String getId()
IClientContext
getId in interface IClientContextpublic java.util.Collection getChildren()
IClientContextIClientContexts contained in this
multi-context, or an empty list if this is not a multi-context.
getChildren in interface IClientContextpublic final IElementMatcher getMatcher()
EObject if all of my children match that
EObject.
getMatcher in interface IClientContextpublic void bindId(java.lang.String typeId)
typeId to each of my children.
bindId in interface IClientContexttypeId - the ID of a element type or advice that is to be bound to mepublic void bindPattern(java.util.regex.Pattern pattern)
pattern to each of my children.
bindPattern in interface IClientContextpattern - the pattern of element type and advice IDs that are bound to
mepublic boolean includes(IElementTypeDescriptor elementTypeDescriptor)
elementTypeDescriptor if all of my child
contexts include the elementTypeDescriptor.
includes in interface IClientContextelementTypeDescriptor - an element type descriptor
true if I am bound to the
elementTypeDescriptor; false,
otherwisepublic boolean includes(IElementType elementType)
elementType if all of my child contexts
include the elementType.
includes in interface IClientContextelementType - an element type
true if I am bound to the elementType;
false, otherwisepublic boolean includes(org.eclipse.gmf.runtime.emf.type.core.internal.descriptors.IEditHelperAdviceDescriptor advice)
advice if all of my child contexts include
the advice.
includes in interface IClientContexttrue if I am bound to the a;
false, otherwisepublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object
|
Runtime | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
Guidelines for using Eclipse APIs.
Copyright (c) IBM Corp., Borland Software Corp., and others 2005,2006. All rights reserved.