org.eclipse.emf.mwe2.language.resource
Class MweResourceDescriptionStrategy

java.lang.Object
  extended by org.eclipse.xtext.resource.impl.DefaultResourceDescriptionStrategy
      extended by org.eclipse.emf.mwe2.language.resource.MweResourceDescriptionStrategy
All Implemented Interfaces:
org.eclipse.xtext.resource.IDefaultResourceDescriptionStrategy

public class MweResourceDescriptionStrategy
extends org.eclipse.xtext.resource.impl.DefaultResourceDescriptionStrategy

Author:
Jan Koehnlein - Initial contribution and API

Field Summary
static java.lang.String DECLARED_PROPERTY__MANDATORY
           
static java.lang.String DECLARED_PROPERTY__TYPE
           
static java.lang.String MANDATORY_TRUE
           
static java.lang.String TYPE__BOOLEAN
           
static java.lang.String TYPE__STRING
           
 
Constructor Summary
MweResourceDescriptionStrategy()
           
 
Method Summary
 boolean createEObjectDescriptions(org.eclipse.emf.ecore.EObject eObject, org.eclipse.xtext.util.IAcceptor<org.eclipse.xtext.resource.IEObjectDescription> acceptor)
           
protected  org.eclipse.xtext.resource.IEObjectDescription createIEObjectDescription(DeclaredProperty property)
           
protected  java.lang.String getValueFromNodeModel(org.eclipse.emf.ecore.EObject object, org.eclipse.emf.ecore.EReference feature)
           
 
Methods inherited from class org.eclipse.xtext.resource.impl.DefaultResourceDescriptionStrategy
createReferenceDescription, createReferenceDescriptions, getLazyURIEncoder, getQualifiedNameProvider, isIndexable, isResolvedAndExternal, setLazyURIEncoder, setQualifiedNameProvider
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DECLARED_PROPERTY__MANDATORY

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

MANDATORY_TRUE

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

DECLARED_PROPERTY__TYPE

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

TYPE__BOOLEAN

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

TYPE__STRING

public static final java.lang.String TYPE__STRING
See Also:
Constant Field Values
Constructor Detail

MweResourceDescriptionStrategy

public MweResourceDescriptionStrategy()
Method Detail

createEObjectDescriptions

public boolean createEObjectDescriptions(org.eclipse.emf.ecore.EObject eObject,
                                         org.eclipse.xtext.util.IAcceptor<org.eclipse.xtext.resource.IEObjectDescription> acceptor)
Specified by:
createEObjectDescriptions in interface org.eclipse.xtext.resource.IDefaultResourceDescriptionStrategy
Overrides:
createEObjectDescriptions in class org.eclipse.xtext.resource.impl.DefaultResourceDescriptionStrategy

createIEObjectDescription

protected org.eclipse.xtext.resource.IEObjectDescription createIEObjectDescription(DeclaredProperty property)

getValueFromNodeModel

protected java.lang.String getValueFromNodeModel(org.eclipse.emf.ecore.EObject object,
                                                 org.eclipse.emf.ecore.EReference feature)