Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 5 of 5 for NamedThing (0.1 sec)

  1. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/UnmanagedNodeBackedModelMapTest.groovy

    class UnmanagedNodeBackedModelMapTest extends NodeBackedModelMapSpec<NamedThing, SpecialNamedThing> {
    
        static class NamedThing implements Named {
            String name
            String other
    
            NamedThing(String name) {
                this.name = name
            }
        }
    
        static class SpecialNamedThing extends NamedThing implements Special {
            SpecialNamedThing(String name) {
                super(name)
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 3.4K bytes
    - Viewed (0)
  2. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/model/managed/PolymorphicManagedTypeIntegrationTest.groovy

                @Managed
                interface NamedThing extends Named {
                    String getValue()
                    void setValue(String value)
                }
    
                class RulePlugin extends RuleSource {
                    @Model
                    void namedThing(NamedThing namedThing) {
                        namedThing.name = "name"
                        namedThing.value = "value"
                    }
    
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 6.7K bytes
    - Viewed (0)
  3. subprojects/core/src/integTest/groovy/org/gradle/api/internal/model/ObjectFactoryIntegrationTest.groovy

            given:
            buildFile """
                class NamedThing implements Named {
                    final String name
                    NamedThing(String name) {
                        this.name = name
                    }
                }
    
                def container = project.objects.domainObjectContainer(NamedThing) {
                    return new NamedThing("prefix-" + it)
                }
                assert container != null
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Sun Apr 07 02:25:12 UTC 2024
    - 25.4K bytes
    - Viewed (0)
  4. platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/manage/projection/ModelSetModelProjectionTest.groovy

        @Managed
        interface NamedThing {
            String getName()
    
            void setName(String name);
    
            String getValue()
    
            void setValue(String value)
        }
    
        def collectionPath = ModelPath.path("collection")
        def collectionType = new ModelType<ModelSet<NamedThing>>() {}
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Sep 28 09:51:04 UTC 2023
    - 4.7K bytes
    - Viewed (0)
  5. platforms/core-configuration/model-core/src/integTest/groovy/org/gradle/internal/extensibility/CallablePropertyIntegrationTest.groovy

                    }
                }
    
                abstract class NamedThing implements Named {
                    private final CallableItem prop = new CallableItem()
    
                    CallableItem getProp() {
                        return prop
                    }
                }
    
                def container = objects.domainObjectContainer(NamedThing)
                container.register("foo")
    
                container.foo.prop()
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Dec 28 13:46:49 UTC 2023
    - 3.3K bytes
    - Viewed (0)
Back to top