Class IvmlModelQuery


  • public class IvmlModelQuery
    extends ModelQuery
    Provides IVML specific model query operations.
    Author:
    Holger Eichelberger
    • Constructor Detail

      • IvmlModelQuery

        public IvmlModelQuery()
    • Method Detail

      • getElementsByNamePrefix

        public static java.util.List<SearchResult> getElementsByNamePrefix​(ModelElement element,
                                                                           java.lang.String namePrefix,
                                                                           QualifiedNameMode mode,
                                                                           SearchContext context,
                                                                           java.lang.Class<?>... restrictions)
        Searches a given set of elements by a name prefix starting at element.
        Parameters:
        element - the element to start searching at
        namePrefix - the name prefix
        mode - the type name resolution mode to be applied
        context - additional information to include or exclude locally defined model elements
        restrictions - type restrictions on the elements to include into the search
        Returns:
        the search results
      • getElementsByNamePrefix

        public static java.util.List<SearchResult> getElementsByNamePrefix​(ModelElement element,
                                                                           java.lang.String namePrefix,
                                                                           SearchContext context,
                                                                           java.lang.Class<?>... restrictions)
        Searches a given set of elements by a name prefix starting at element. Types are resolved to qualified names.
        Parameters:
        element - the element to start searching at
        namePrefix - the name prefix
        context - additional information to include or exclude locally defined model elements
        restrictions - type restrictions on the elements to include into the search
        Returns:
        the search results