Class EntitySelection

  • All Implemented Interfaces:
    Comparable<EntitySelection>

    public class EntitySelection
    extends Object
    implements Comparable<EntitySelection>
    Represent an entity with an information about either or not the entity is selected to perform some refactoring.
    Since:
    9.1RC1
    Version:
    $Id: 24ee96ac07519e3bc1eb318ecaeb84878ec6a9cb $
    • Constructor Detail

      • EntitySelection

        public EntitySelection​(org.xwiki.model.reference.EntityReference entityReference)
        Construct an EntitySelection.
        Parameters:
        entityReference - the reference of the entity concerned by the refactoring
    • Method Detail

      • getEntityReference

        public org.xwiki.model.reference.EntityReference getEntityReference()
        Returns:
        the reference of the entity to select
      • isSelected

        public boolean isSelected()
        Returns:
        true if the user has selected the entity or no choice has been made
      • setSelected

        public void setSelected​(boolean selected)
        Change the state of the entity.
        Parameters:
        selected - either or not the user has selected the entity
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object