Class SelectorReference

    • Constructor Detail

      • SelectorReference

        public SelectorReference()
        Creates a Selector Reference property with no name and with a null value.
      • SelectorReference

        public SelectorReference​(Atom propertyAtom)
        Creates a Selector Reference property with the specified name with a null value.
        Parameters:
        propertyAtom - the property atom.
      • SelectorReference

        public SelectorReference​(Atom propertyAtom,
                                 java.lang.String newValue)
        Creates a Selector Reference property with the specified name and value.
        Parameters:
        propertyAtom - the property atom.
        newValue - the new string value for the property.
    • Method Detail

      • isPropPrivateAtCreation

        protected boolean isPropPrivateAtCreation()
        Called upon creation of the property to check it's private state. This is used by properties that are not distributed to the remote party.
        Overrides:
        isPropPrivateAtCreation in class GProp<ReferenceString>
        Returns:
        true, always.
      • getSelector

        public Selector getSelector()
        Gets the Selector for this reference.

        The method first attempts to use the resolved mechanism of getting the selector. If this has failed or has not been resolved yet, the property tree will be used to search for it. The latter is, of course, slower.

        Returns:
        The Selector instance, or null if not found.
      • isSelectorSelected

        public boolean isSelectorSelected​(EnvProps envProps)
        Verifies if this selector reference causes the owner to be selected or not.
        Parameters:
        envProps - The Client Properties for the Client connections.
        Returns:
        true if selected, false if unselected or the reference is not resolved.