Class AbstractPropertyQuery<T>

    • Field Detail

      • msgCenter

        protected static final simphony.util.messages.MessageCenter msgCenter
        Deprecated.
      • EMPTY

        protected static final Object[] EMPTY
        Deprecated.
      • primNums

        protected static Set<Class> primNums
        Deprecated.
      • propertyValue

        protected Object propertyValue
        Deprecated.
    • Constructor Detail

      • AbstractPropertyQuery

        public AbstractPropertyQuery​(Context<T> context,
                                     String propertyName,
                                     Object propertyValue)
        Deprecated.
        Creates an AbstractProperty query to query the specified contexts using the specified property name and value.
        Parameters:
        context -
        propertyName -
        propertyValue -
    • Method Detail

      • getQueryPredicate

        public org.apache.commons.collections15.Predicate<T> getQueryPredicate()
        Deprecated.
        Gets the Predicate that will be used in this Predicate's next call to query().
        Returns:
        the Predicate that will be used in this Predicate's next call to query().
      • createPredicate

        protected abstract org.apache.commons.collections15.Predicate<T> createPredicate​(Context<T> context,
                                                                                         String propertyName)
        Deprecated.
        Implemented by subclasses to return the appropriate Predicate. For example, a property equals query predicate will return true if an object has that property and its value is equal to the value specified in the constructor.
        Parameters:
        context -
        propertyName -
        Returns:
        the Predicate appropriate to the implementing sub class.
      • query

        public Iterable<T> query()
        Deprecated.
        Returns the result of the query.
        Specified by:
        query in interface Query<T>
        Returns:
        an iterable over the objects that are the result of the query.
      • propertyNotFound

        protected void propertyNotFound​(String propertyName)
        Deprecated.
      • query

        public Iterable<T> query​(Iterable<T> iter)
        Deprecated.
        Returns an iterable over the objects that are the result of the query and are in the passed in iterable. This allows queries to be chained together where the result of one query is passed into another.
        Specified by:
        query in interface Query<T>
        Parameters:
        iter -
        Returns:
        an iterable over the objects that are the result of the query and are in the passed in iterable.