Class EffectiveTraitQuery.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • model

        public EffectiveTraitQuery.Builder model​(Model model)
        Sets the required model to query.
        Parameters:
        model - Model to query.
        Returns:
        Returns the query object builder.
      • traitClass

        public EffectiveTraitQuery.Builder traitClass​(java.lang.Class<? extends Trait> traitClass)
        Sets the required trait being queried.
        Parameters:
        traitClass - Trait to detect on shapes.
        Returns:
        Returns the query object builder.
      • inheritFromContainer

        public EffectiveTraitQuery.Builder inheritFromContainer​(boolean inheritFromContainer)
        When testing member shapes, also checks the container of the member for the presence of a trait.

        By default, traits are not inherited from a member's parent container.

        Parameters:
        inheritFromContainer - Set to true to inherit traits from member containers.
        Returns:
        Returns the query object builder.