Package com._1c.g5.v8.dt.ql.resource
Class QlMapper
- java.lang.Object
- 
- com._1c.g5.v8.dt.lcore.util.Mapper
- 
- com._1c.g5.v8.dt.ql.resource.QlMapper
 
 
- 
 public class QlMapper extends Mapper The mapper for the Ql language. Use as mapping between DbView and QuerySchema elements One source (QuerySchema elements) corresponding a lot of DbView objects
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com._1c.g5.v8.dt.lcore.util.MapperMapper.Mapping
 
- 
 - 
Constructor SummaryConstructors Constructor Description QlMapper()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidassociate(org.eclipse.emf.ecore.EObject sourceObject, org.eclipse.emf.ecore.EObject derivedObject)Associates the given source object with the given derived object.voidassociate(org.eclipse.emf.ecore.EObject sourceObject, org.eclipse.emf.ecore.EObject derivedObject, boolean bidirectional)Creates a mapping from the given derived object to the given source object.Set<org.eclipse.emf.ecore.EObject>getDerivedObjects(org.eclipse.emf.ecore.EObject eObject)Returns the set of derived objects for the given object.Set<org.eclipse.emf.ecore.EObject>getSourceObjects(org.eclipse.emf.ecore.EObject eObject)Returns the set of source objects for the given object.protected <T extends Mapper.Mapping>
 TnewMapping(Class<T> mappingType)Returns a new mapping object of the given type.voidunsetMapping(org.eclipse.emf.ecore.EObject eObject)Disassociates the given object with the mapped objects previously associated with it.voidunsetMappingForContentTree(org.eclipse.emf.ecore.EObject root)Disassociates the given object and all its direct and indirect contents (i.e.- 
Methods inherited from class com._1c.g5.v8.dt.lcore.util.MappergetMappedObjects, getMapping, getPrimaryMappedObject, unsetMapping
 
- 
 
- 
- 
- 
Method Detail- 
getDerivedObjectspublic Set<org.eclipse.emf.ecore.EObject> getDerivedObjects(org.eclipse.emf.ecore.EObject eObject) Returns the set of derived objects for the given object.- Parameters:
- eObject- not- null
- Returns:
- the set of derived objects (never null)
- See Also:
- associate(EObject, EObject)
 
 - 
getSourceObjectspublic Set<org.eclipse.emf.ecore.EObject> getSourceObjects(org.eclipse.emf.ecore.EObject eObject) Returns the set of source objects for the given object.- Parameters:
- eObject- not- null
- Returns:
- the set of source objects (never null)
- See Also:
- associate(EObject, EObject)
 
 - 
associatepublic void associate(org.eclipse.emf.ecore.EObject sourceObject, org.eclipse.emf.ecore.EObject derivedObject)Associates the given source object with the given derived object. Note that the created association is bidirectional. This is a shortcut toassociate(sourceObject, derivedObject, true).- Parameters:
- sourceObject- not- null
- derivedObject- not- null
 
 - 
associatepublic void associate(org.eclipse.emf.ecore.EObject sourceObject, org.eclipse.emf.ecore.EObject derivedObject, boolean bidirectional)Creates a mapping from the given derived object to the given source object. If bidirectional association is requested, also creates the inverse mapping from the source object to the derived object.- Parameters:
- sourceObject- not- null
- derivedObject- not- null
- bidirectional- whether association is to be bidirectional
 
 - 
unsetMappingpublic void unsetMapping(org.eclipse.emf.ecore.EObject eObject) Disassociates the given object with the mapped objects previously associated with it.- Parameters:
- eObject- not- null
 
 - 
unsetMappingForContentTreepublic void unsetMappingForContentTree(org.eclipse.emf.ecore.EObject root) Disassociates the given object and all its direct and indirect contents (i.e. the content tree) with the mapped objects previously associated with them.- Parameters:
- root- the root of a content tree (not- null)
 
 - 
newMappingprotected <T extends Mapper.Mapping> T newMapping(Class<T> mappingType) Description copied from class:MapperReturns a new mapping object of the given type.- Specified by:
- newMappingin class- Mapper
- Parameters:
- mappingType- the type of the mapping (not- null)
- Returns:
- a new mapping object of the given type (never null)
 
 
- 
 
-