Class QueryPropReference


  • public class QueryPropReference
    extends java.lang.Object
    Class to define a reference to a property for the Query References message.
    Author:
    Christopher Mindus
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean equals​(java.lang.Object o)
      Checks for two identical items.
      int getIndex()
      Gets the index, -1 for none.
      GProp<?> getProp()
      Gets the property.
      GProp<?> getSource()
      Gets the property.
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • QueryPropReference

        public QueryPropReference​(GProp<?> prop,
                                  GProp<?> source)
        Constructor for simple property reference.
        Parameters:
        prop - The property being referenced by the source property.
        source - The source property.
        Throws:
        java.lang.NullPointerException - If prop is null.
      • QueryPropReference

        public QueryPropReference​(GProp<?> prop,
                                  int index,
                                  GProp<?> source)
        Constructor for an index-based multi-property reference.
        Parameters:
        prop - The property being referenced by the source property.
        index - The index.
        source - The source property.
        Throws:
        java.lang.NullPointerException - If prop is null.
    • Method Detail

      • getProp

        public GProp<?> getProp()
        Gets the property.
      • getSource

        public GProp<?> getSource()
        Gets the property.
      • getIndex

        public int getIndex()
        Gets the index, -1 for none.
      • equals

        public boolean equals​(java.lang.Object o)
        Checks for two identical items.
        Overrides:
        equals in class java.lang.Object