Class QueryProperties

  • All Implemented Interfaces:

    public class QueryProperties
    extends Properties
    Maps between the query model and text properties. This can be done simpler by using reflection but the performance penalty was not worth it, especially since we should be conservative in adding things to the query model.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.Object get​( key, java.util.Map<java.lang.String,​java.lang.String> context, substitution)  
      Query getParentQuery()
      Returns the query owning this property object.
      java.util.Map<java.lang.String,​java.lang.Object> listProperties​( prefix, java.util.Map<java.lang.String,​java.lang.String> context, substitution)  
      void set​( key, java.lang.Object value, java.util.Map<java.lang.String,​java.lang.String> context)  
      void setParentQuery​(Query query)
      Invoked during deep cloning of the parent query.
      • Methods inherited from class

        asBoolean, asDouble, asInteger, asLong, asString, chain, clearAll, clearAll, clearAll, clearAll, clone, cloneMap, get, get, get, get, get, get, get, getBoolean, getBoolean, getBoolean, getBoolean, getDouble, getDouble, getDouble, getDouble, getInstance, getInteger, getInteger, getInteger, getInteger, getLong, getLong, getLong, getLong, getString, getString, getString, getString, listProperties, listProperties, listProperties, listProperties, listProperties, listProperties, listProperties, set, set, set
      • Methods inherited from class java.lang.Object

        equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setParentQuery

        public void setParentQuery​(Query query)
        Description copied from class: Properties
        Invoked during deep cloning of the parent query.
        setParentQuery in class Properties
      • get

        public java.lang.Object get​( key,
                                    java.util.Map<java.lang.String,​java.lang.String> context,
        get in class
      • set

        public void set​( key,
                        java.lang.Object value,
                        java.util.Map<java.lang.String,​java.lang.String> context)
        set in class
      • listProperties

        public java.util.Map<java.lang.String,​java.lang.Object> listProperties​( prefix,
                                                                                     java.util.Map<java.lang.String,​java.lang.String> context,
        listProperties in class
      • getParentQuery

        public final Query getParentQuery()
        Description copied from class: Properties
        Returns the query owning this property object. Only guaranteed to work if this instance is accessible as
        getParentQuery in class Properties