org.eclipse.xtext.mwe
Class SlotEntry

java.lang.Object
  extended by org.eclipse.xtext.mwe.SlotEntry
All Implemented Interfaces:
ISlotEntry
Direct Known Subclasses:
ResourceSetBasedSlotEntry

public class SlotEntry
extends java.lang.Object
implements ISlotEntry

Author:
Jan Koehnlein - introduced QualifiedName

Constructor Summary
SlotEntry()
           
 
Method Summary
protected  java.util.Set<org.eclipse.emf.ecore.EClass> findEClasses(org.eclipse.emf.ecore.resource.ResourceSet resourceSet, java.lang.String nsURI2, java.lang.String typeName2)
           
protected  java.util.List<org.eclipse.emf.ecore.EObject> findEObjectsOfType(java.util.Set<org.eclipse.emf.ecore.EClass> eClasses, IResourceDescriptions resourceDescriptions, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
           
protected  org.eclipse.emf.ecore.EObject getEObject(IEObjectDescription description, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
           
 java.lang.String getName()
           
 java.lang.String getNamespaceDelimiter()
           
protected  java.util.Set<java.lang.String> getNsUris()
           
 java.lang.String getSlot()
           
 boolean isFirstOnly()
           
protected  boolean matches(java.util.Set<org.eclipse.emf.ecore.EClass> eclasses, IEObjectDescription desc)
           
 void preInvoke()
          implementers can check their configuration and throw IllegalStateException when problems exists.
 void put(org.eclipse.emf.mwe.core.WorkflowContext ctx, IResourceDescriptions resourceDescriptions, org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
          implementers can modify the ctx (i.e. add new entries based on the configuration)
 void setFirstOnly(boolean firstOnly)
           
 void setName(java.lang.String name)
           
 void setNamespaceDelimiter(java.lang.String namespaceDelimiter)
           
 void setNsURI(java.lang.String nsURI)
           
 void setSlot(java.lang.String slot)
           
 void setType(java.lang.String typeName)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SlotEntry

public SlotEntry()
Method Detail

setType

public void setType(java.lang.String typeName)

setNsURI

public void setNsURI(java.lang.String nsURI)

getName

public java.lang.String getName()

getSlot

public java.lang.String getSlot()

getNamespaceDelimiter

public java.lang.String getNamespaceDelimiter()

setName

public void setName(java.lang.String name)

setSlot

public void setSlot(java.lang.String slot)

setNamespaceDelimiter

public void setNamespaceDelimiter(java.lang.String namespaceDelimiter)

setFirstOnly

public void setFirstOnly(boolean firstOnly)

isFirstOnly

public boolean isFirstOnly()

put

public void put(org.eclipse.emf.mwe.core.WorkflowContext ctx,
                IResourceDescriptions resourceDescriptions,
                org.eclipse.emf.ecore.resource.ResourceSet resourceSet)
Description copied from interface: ISlotEntry
implementers can modify the ctx (i.e. add new entries based on the configuration)

Specified by:
put in interface ISlotEntry
Parameters:
ctx - - the workflow context to modify
resourceDescriptions - - the index state
resourceSet - - the resource set containing the loaded resources

findEObjectsOfType

protected java.util.List<org.eclipse.emf.ecore.EObject> findEObjectsOfType(java.util.Set<org.eclipse.emf.ecore.EClass> eClasses,
                                                                           IResourceDescriptions resourceDescriptions,
                                                                           org.eclipse.emf.ecore.resource.ResourceSet resourceSet)

findEClasses

protected java.util.Set<org.eclipse.emf.ecore.EClass> findEClasses(org.eclipse.emf.ecore.resource.ResourceSet resourceSet,
                                                                   java.lang.String nsURI2,
                                                                   java.lang.String typeName2)

getNsUris

protected java.util.Set<java.lang.String> getNsUris()

matches

protected boolean matches(java.util.Set<org.eclipse.emf.ecore.EClass> eclasses,
                          IEObjectDescription desc)

getEObject

protected org.eclipse.emf.ecore.EObject getEObject(IEObjectDescription description,
                                                   org.eclipse.emf.ecore.resource.ResourceSet resourceSet)

preInvoke

public void preInvoke()
Description copied from interface: ISlotEntry
implementers can check their configuration and throw IllegalStateException when problems exists.

Specified by:
preInvoke in interface ISlotEntry