Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 25 of 25 for modelElement (0.15 sec)

  1. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/ModelSetIntegrationTest.groovy

            and:
            output.contains "name: people"
            output.contains "display-name: ModelSet<Person> 'people'"
            output.contains "to-string: ModelSet<Person> 'people'"
        }
    
        def "can view as ModelElement"() {
            when:
            buildScript '''
                @Managed
                interface Person {
                }
    
                class Rules extends RuleSource {
                  @Model
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 18.9K bytes
    - Viewed (0)
  2. subprojects/core/src/integTest/groovy/org/gradle/execution/taskgraph/RuleTaskBridgingIntegrationTest.groovy

                        println "as container: $tasks"
                        assert tasks.getByName("tasks") != null
                    }
                    @Mutate
                    void applyMessages(@Path("tasks") ModelElement tasks) {
                        println "as model element: $tasks"
                        println "name: $tasks.name"
                    }
                }
    
                apply type: MyPlugin
            '''
    
            when:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Mon May 20 12:57:53 UTC 2024
    - 19.2K bytes
    - Viewed (0)
  3. platforms/core-configuration/model-core/src/main/java/org/gradle/model/ModelMap.java

     * Model maps can only contain managed types.
     *
     * @param <T> the contract type for all items
     */
    @Incubating
    public interface ModelMap<T> extends Iterable<T>, ModelElement {
        /**
         * Returns a collection containing the items from this collection which are of the specified type.
         *
         * @param type The type.
         * @param <S> The type.
         * @return The collection.
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 9.2K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/registry/DefaultModelRegistryTest.groovy

            when:
            registry.realize("foo")
    
            then:
            thrown IllegalStateException
    
            when:
            def modelElement = registry.find("foo", ModelType.untyped())
    
            then:
            noExceptionThrown()
    
            and:
            modelElement == null
        }
    
        def "can get element for which a registration has been registered"() {
            given:
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 56K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/NodeBackedModelMapSpec.groovy

    This element was created by testrule > create(item) and can be mutated as the following types:
      - ${fullyQualifiedNameOf(itemClass)} (or assignment compatible type thereof)
      - ${ModelElement.name} (or assignment compatible type thereof)"""
        }
    
        static class NamedRules extends RuleSource {}
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 38.3K bytes
    - Viewed (0)
Back to top