Class DbViewElementSource


  • public class DbViewElementSource
    extends Object
    Type-mutable DbViewElement source. It's used to work with type-changable DbViewElement without the overhead of excessive cloning
    • Constructor Detail

      • DbViewElementSource

        public DbViewElementSource​(DbViewElement source)
        Constructs an instance using provided source DbViewElement
        Parameters:
        source - The source. May not be null
    • Method Detail

      • getFieldsByTypeDescription

        public static List<DbViewElementSource> getFieldsByTypeDescription​(org.eclipse.emf.ecore.EObject context,
                                                                           TypeDescription typeDescription)
        Returns fields provided by type description or empty list.
        Parameters:
        context - the context object to figure out execution scope
        typeDescription - the TypeDescription (may be null)
        Returns:
        fields from dbviews provided by field types or empty list.
      • resolve

        public static void resolve​(DbViewElementSource dbView,
                                   org.eclipse.emf.ecore.EObject semanticObject)
        Resolves given DbViewElementSource if possible
        Parameters:
        dbView - The DbViewElementSource to resolve. May be null
        semanticObject - The object to use as a resolution context. May not be null
      • eContainer

        public org.eclipse.emf.ecore.EObject eContainer()
        Gets the eContainer of the original DbViewElement
        Returns:
        The eContainer of the original DbViewElement. May be null in case of cloning
      • eContainingFeature

        public org.eclipse.emf.ecore.EStructuralFeature eContainingFeature()
        Gets the eContainingFeature of the original DbViewElement
        Returns:
        The eContainingFeature of the original DbViewElement
      • eGet

        public Object eGet​(org.eclipse.emf.ecore.EStructuralFeature feature)
        Gets the feature value from the original DbViewElement
        Parameters:
        feature - The feature to get value for. May not be null
        Returns:
        The value of the feature. May be null
      • getMdObject

        public org.eclipse.emf.ecore.EObject getMdObject()
        Gets the associated MdObject from the original DbViewElement
        Returns:
        The associated MdObject. May be null
      • getName

        public String getName()
        Gets the name of the original DbViewElement
        Returns:
        The name if present. May be null
      • getNameRu

        public String getNameRu()
        Gets the russion name variant of the original DbViewElement
        Returns:
        The name if present. May be null
      • resolve

        public void resolve​(org.eclipse.emf.ecore.EObject semanticObject)
        Resolves the underlying source
        Parameters:
        semanticObject - The context object to use during the resoltion. May not be null