- Sort Score
- Result 10 results
- Languages All
Results 1 - 4 of 4 for isDirectChild (0.28 sec)
-
platforms/core-configuration/model-core/src/test/groovy/org/gradle/model/internal/core/ModelPathTest.groovy
expect: ModelPath.ROOT.isDirectChild(ModelPath.path("p")) !ModelPath.ROOT.isDirectChild(ModelPath.ROOT) !ModelPath.ROOT.isDirectChild(ModelPath.path("a.b")) ModelPath.path("a.b").isDirectChild(ModelPath.path("a.b.c")) !ModelPath.path("a.b").isDirectChild(ModelPath.path("a.b.c.d")) !ModelPath.path("a.b").isDirectChild(ModelPath.path("a.a.b"))
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 5.1K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/ModelElementNode.java
return linked != null && predicate.apply(linked); } @Override public void applyToLink(ModelActionRole type, ModelAction action) { if (!getPath().isDirectChild(action.getSubject().getPath())) { throw new IllegalArgumentException(String.format("Linked element action reference has a path (%s) which is not a child of this node (%s).", action.getSubject().getPath(), getPath()));
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Mon May 06 21:54:37 UTC 2024 - 10.9K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/core/ModelPath.java
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Thu Sep 28 09:51:04 UTC 2023 - 11.2K bytes - Viewed (0) -
platforms/core-configuration/model-core/src/main/java/org/gradle/model/internal/registry/DefaultModelRegistry.java
return projectPath; } @Override public DefaultModelRegistry register(ModelRegistration registration) { ModelPath path = registration.getPath(); if (!ModelPath.ROOT.isDirectChild(path)) { throw new InvalidModelRuleDeclarationException(registration.getDescriptor(), "Cannot register element at '" + path + "', only top level is allowed (e.g. '" + path.getRootParent() + "')"); }
Registered: Wed Jun 12 18:38:38 UTC 2024 - Last Modified: Fri May 24 15:40:00 UTC 2024 - 45.7K bytes - Viewed (0)