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
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.Mapper
Mapper.Mapping
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
associate
(org.eclipse.emf.ecore.EObject sourceObject, org.eclipse.emf.ecore.EObject derivedObject) Associates the given source object with the given derived object.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.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.void
unsetMapping
(org.eclipse.emf.ecore.EObject eObject) Disassociates the given object with the mapped objects previously associated with it.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.Methods inherited from class com._1c.g5.v8.dt.lcore.util.Mapper
getMappedObjects, getMapping, getPrimaryMappedObject, unsetMapping
-
Constructor Details
-
QlMapper
public QlMapper()
-
-
Method Details
-
getDerivedObjects
Returns the set of derived objects for the given object.- Parameters:
eObject
- notnull
- Returns:
- the set of derived objects (never
null
) - See Also:
-
getSourceObjects
Returns the set of source objects for the given object.- Parameters:
eObject
- notnull
- Returns:
- the set of source objects (never
null
) - See Also:
-
associate
public 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
- notnull
derivedObject
- notnull
-
associate
public 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
- notnull
derivedObject
- notnull
bidirectional
- whether association is to be bidirectional
-
unsetMapping
public void unsetMapping(org.eclipse.emf.ecore.EObject eObject) Disassociates the given object with the mapped objects previously associated with it.- Parameters:
eObject
- notnull
-
unsetMappingForContentTree
public 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 (notnull
)
-
newMapping
Description copied from class:Mapper
Returns a new mapping object of the given type.- Specified by:
newMapping
in classMapper
- Parameters:
mappingType
- the type of the mapping (notnull
)- Returns:
- a new mapping object of the given type (never
null
)
-