public class Include extends PartOfQuery implements CanInclude
| Modifier and Type | Class and Description |
|---|---|
static class |
Include.TypeDef |
| Constructor and Description |
|---|
Include(PackageMetaData packageMetaData) |
| Modifier and Type | Method and Description |
|---|---|
void |
addField(org.eclipse.emf.ecore.EReference field) |
void |
addField(String fieldName)
Add the fields _after_ adding the types, because the fields will be checked against the types, all types should have the given field.
|
void |
addFieldDirect(String fieldName) |
void |
addInclude(Include newInclude) |
void |
addIncludeReference(Include down,
String name) |
void |
addOutputType(org.eclipse.emf.ecore.EClass eClass) |
void |
addType(org.eclipse.emf.ecore.EClass eClass,
boolean includeAllSubTypes) |
void |
addType(Include.TypeDef typeDef) |
Include |
createInclude() |
void |
dump(int indent,
StringBuilder sb) |
List<org.eclipse.emf.ecore.EReference> |
getFields() |
List<org.eclipse.emf.ecore.EReference> |
getFieldsDirect() |
List<Include> |
getIncludes() |
List<org.eclipse.emf.ecore.EClass> |
getOutputTypes() |
PackageMetaData |
getPackageMetaData() |
List<Reference> |
getReferences() |
Set<Include.TypeDef> |
getTypes() |
boolean |
hasDirectFields() |
boolean |
hasFields() |
boolean |
hasIncludes() |
boolean |
hasOutputTypes() |
boolean |
hasReferences() |
boolean |
hasTypes() |
boolean |
isIncludeAllFields() |
void |
makeDirectRecursive(Set<Include> done) |
indent, toStringpublic Include(PackageMetaData packageMetaData)
public void addField(String fieldName) throws QueryException
fieldName - QueryExceptionpublic void addFieldDirect(String fieldName) throws QueryException
QueryExceptionpublic void addInclude(Include newInclude)
addInclude in interface CanIncludepublic List<org.eclipse.emf.ecore.EReference> getFields()
public List<org.eclipse.emf.ecore.EReference> getFieldsDirect()
public void addType(org.eclipse.emf.ecore.EClass eClass,
boolean includeAllSubTypes)
public void addOutputType(org.eclipse.emf.ecore.EClass eClass)
public List<org.eclipse.emf.ecore.EClass> getOutputTypes()
public boolean hasOutputTypes()
public Set<Include.TypeDef> getTypes()
public boolean hasFields()
public boolean hasTypes()
public List<Include> getIncludes()
getIncludes in interface CanIncludepublic boolean hasIncludes()
hasIncludes in interface CanIncludepublic boolean isIncludeAllFields()
isIncludeAllFields in interface CanIncludepublic void dump(int indent,
StringBuilder sb)
public Include createInclude()
public boolean hasDirectFields()
public void addIncludeReference(Include down, String name)
addIncludeReference in interface CanIncludepublic List<Reference> getReferences()
getReferences in interface CanIncludepublic boolean hasReferences()
hasReferences in interface CanIncludepublic void addType(Include.TypeDef typeDef)
public void addField(org.eclipse.emf.ecore.EReference field)
throws QueryException
QueryExceptionpublic PackageMetaData getPackageMetaData()
Copyright © 2018 OpenSource BIM. All rights reserved.