Class VisitProperty<T extends PersistenceEntity>

  • Type Parameters:
    T - PersistenceEntity
    All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable

    public class VisitProperty<T extends PersistenceEntity>
    extends VisitComponent
    VisitProperty is a VisitTarget that represents an EntityProperty in an EntityBackingBean or EntityListBackingBean(a certain row).
    Since:
    4.0
    See Also:
    Serialized Form
    • Constructor Detail

      • VisitProperty

        public VisitProperty​(EntityProperty<T> entityProperty,
                             T entity)
        Constructor from entityProperty and its entity. Its part is Part.ALL.
        Parameters:
        entityProperty - entity property
        entity - the entity. There is only one entity for EntityBackingBean. It is a row entity for EntityListBackingBean
      • VisitProperty

        public VisitProperty​(EntityProperty<T> entityProperty,
                             T entity,
                             VisitComponent.Part part)
        Constructor from entityProperty and its entity.
        Parameters:
        entityProperty - entity property
        entity - the entity. There is only one entity for EntityBackingBean. It is a row entity for EntityListBackingBean
        part - the part of the EntityProperty
    • Method Detail

      • getEntity

        public T getEntity()
        Get the entity of the property
        Returns:
        entity
      • setEntity

        public void setEntity​(T entity)
        Set the entity of the property
        Parameters:
        entity - the entity to set
      • equals

        public boolean equals​(java.lang.Object o,
                              boolean ignorePart)
        Description copied from class: VisitComponent
        Is this object equal to the specified object?
        Overrides:
        equals in class VisitComponent
        Parameters:
        o - the object to compare with
        ignorePart - whether to ignore part for comparison
        Returns:
        true if they are equal, false otherwise
        See Also:
        VisitComponent.getPart()
      • isSubtreeTarget

        public boolean isSubtreeTarget​(VisitTarget visitTarget)
        Description copied from class: VisitTarget
        Check if the visitTarget is a subtree target of this visitTarget.
        Overrides:
        isSubtreeTarget in class VisitComponent
        Parameters:
        visitTarget - subtree target to check
        Returns:
        true if it is a subtree(descendant) target