org.eclipse.xtext.xbase.jvmmodel
Class JvmModelAssociator

java.lang.Object
  extended by org.eclipse.xtext.xbase.jvmmodel.JvmModelAssociator
All Implemented Interfaces:
IJvmModelAssociations, IJvmModelAssociator
Direct Known Subclasses:
IXtend2JvmAssociations.Impl

public class JvmModelAssociator
extends java.lang.Object
implements IJvmModelAssociations, IJvmModelAssociator

Author:
Jan Koehnlein - Initial contribution and API

Nested Class Summary
protected static class JvmModelAssociator.AbstractAssociationAdapter
           
protected static class JvmModelAssociator.JvmAssociationAdapter
           
protected static class JvmModelAssociator.SourceAssociationAdapter
           
 
Constructor Summary
JvmModelAssociator()
           
 
Method Summary
 void associate(org.eclipse.emf.ecore.EObject sourceElement, org.eclipse.emf.ecore.EObject jvmElement)
           
protected  void associate(org.eclipse.emf.ecore.EObject sourceElement, org.eclipse.emf.ecore.EObject jvmElement, boolean isPrimary)
           
 void associatePrimary(org.eclipse.emf.ecore.EObject sourceElement, org.eclipse.emf.ecore.EObject jvmElement)
           
protected  void checkAdapter(JvmModelAssociator.AbstractAssociationAdapter adapter, boolean isJvm)
           
 void disassociate(org.eclipse.emf.ecore.EObject rootElement)
           
 java.util.Set<org.eclipse.emf.ecore.EObject> getAssociatedElements(org.eclipse.emf.ecore.EObject jvmOrSourceElement)
           
protected  java.util.Set<org.eclipse.emf.ecore.EObject> getAssociatedElements(JvmModelAssociator.AbstractAssociationAdapter adapter)
           
protected  JvmModelAssociator.AbstractAssociationAdapter getAssociationAdapter(org.eclipse.emf.ecore.EObject jvmOrSourceElement)
           
protected  JvmModelAssociator.JvmAssociationAdapter getJvmAdapter(org.eclipse.emf.ecore.EObject jvmElement)
           
 java.util.Set<org.eclipse.emf.ecore.EObject> getJvmElements(org.eclipse.emf.ecore.EObject sourceElement)
           
 org.eclipse.emf.ecore.EObject getPrimarySourceElement(org.eclipse.emf.ecore.EObject jvmElement)
           
protected  JvmModelAssociator.SourceAssociationAdapter getSourceAdapter(org.eclipse.emf.ecore.EObject sourceElement)
           
 java.util.Set<org.eclipse.emf.ecore.EObject> getSourceElements(org.eclipse.emf.ecore.EObject jvmElement)
           
protected  void setJvmAdapter(org.eclipse.emf.ecore.EObject targetElement, org.eclipse.emf.ecore.EObject associatedElement, boolean isPrimary)
           
protected  void setSourceAdapter(org.eclipse.emf.ecore.EObject targetElement, org.eclipse.emf.ecore.EObject associatedElement)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JvmModelAssociator

public JvmModelAssociator()
Method Detail

associate

public void associate(org.eclipse.emf.ecore.EObject sourceElement,
                      org.eclipse.emf.ecore.EObject jvmElement)
Specified by:
associate in interface IJvmModelAssociator

associatePrimary

public void associatePrimary(org.eclipse.emf.ecore.EObject sourceElement,
                             org.eclipse.emf.ecore.EObject jvmElement)
Specified by:
associatePrimary in interface IJvmModelAssociator

disassociate

public void disassociate(org.eclipse.emf.ecore.EObject rootElement)
Specified by:
disassociate in interface IJvmModelAssociator

associate

protected void associate(org.eclipse.emf.ecore.EObject sourceElement,
                         org.eclipse.emf.ecore.EObject jvmElement,
                         boolean isPrimary)

setSourceAdapter

protected void setSourceAdapter(org.eclipse.emf.ecore.EObject targetElement,
                                org.eclipse.emf.ecore.EObject associatedElement)

setJvmAdapter

protected void setJvmAdapter(org.eclipse.emf.ecore.EObject targetElement,
                             org.eclipse.emf.ecore.EObject associatedElement,
                             boolean isPrimary)

getJvmElements

public java.util.Set<org.eclipse.emf.ecore.EObject> getJvmElements(org.eclipse.emf.ecore.EObject sourceElement)
Specified by:
getJvmElements in interface IJvmModelAssociations

getSourceElements

public java.util.Set<org.eclipse.emf.ecore.EObject> getSourceElements(org.eclipse.emf.ecore.EObject jvmElement)
Specified by:
getSourceElements in interface IJvmModelAssociations

getPrimarySourceElement

public org.eclipse.emf.ecore.EObject getPrimarySourceElement(org.eclipse.emf.ecore.EObject jvmElement)
Specified by:
getPrimarySourceElement in interface IJvmModelAssociations

getAssociatedElements

public java.util.Set<org.eclipse.emf.ecore.EObject> getAssociatedElements(org.eclipse.emf.ecore.EObject jvmOrSourceElement)
Specified by:
getAssociatedElements in interface IJvmModelAssociations

getAssociatedElements

protected java.util.Set<org.eclipse.emf.ecore.EObject> getAssociatedElements(JvmModelAssociator.AbstractAssociationAdapter adapter)

getSourceAdapter

protected JvmModelAssociator.SourceAssociationAdapter getSourceAdapter(org.eclipse.emf.ecore.EObject sourceElement)

getJvmAdapter

protected JvmModelAssociator.JvmAssociationAdapter getJvmAdapter(org.eclipse.emf.ecore.EObject jvmElement)

checkAdapter

protected void checkAdapter(JvmModelAssociator.AbstractAssociationAdapter adapter,
                            boolean isJvm)

getAssociationAdapter

protected JvmModelAssociator.AbstractAssociationAdapter getAssociationAdapter(org.eclipse.emf.ecore.EObject jvmOrSourceElement)