Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 14 for JsonNode (0.16 seconds)

  1. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/match/AddMatch.java

        private static JsonNodeFactory jsonNodeFactory = JsonNodeFactory.withExactBigDecimals(false);
        private final String matchKey;
        private final String testName;
        private final JsonNode matchValue;
    
        public AddMatch(String matchKey, JsonNode matchValue, String testName) {
            this.matchKey = matchKey;
            this.matchValue = matchValue;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2.5K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/ReplaceByKey.java

        private final String requiredChildKey;
        private final String newChildKey;
        private final JsonNode replacementNode;
        private final String testName;
    
        public ReplaceByKey(String requiredChildKey, JsonNode replacementNode) {
            this(requiredChildKey, replacementNode, null);
        }
    
        public ReplaceByKey(String requiredChildKey, JsonNode replacementNode, String testName) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 2.2K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/ValidateJsonNoKeywordsTask.java

                    try {
                        final JsonNode jsonNode = mapper.readTree(file);
    
                        if (jsonNode.isObject() == false) {
                            errors.put(file, Set.of("Expected an object, but found: " + jsonNode.getNodeType()));
                            return;
                        }
    
                        final ObjectNode rootNode = (ObjectNode) jsonNode;
    
                        if (rootNode.size() != 1) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 7.6K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/RestTestTransformer.java

            for (ObjectNode test : tests) {
                Iterator<Map.Entry<String, JsonNode>> testsIterator = test.fields();
                while (testsIterator.hasNext()) {
                    Map.Entry<String, JsonNode> testObject = testsIterator.next();
                    String testName = testObject.getKey();
                    if ("setup".equals(testName)) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Jul 12 17:42:01 GMT 2021
    - 8.1K bytes
    - Click Count (0)
  5. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/feature/FeatureInjector.java

        public abstract String getSkipFeatureName();
    
        private boolean hasFeature(ArrayNode skipParent) {
            JsonNode features = skipParent.at("/0/skip/features");
            if (features != null) {
                if (features.isArray()) {
                    ArrayNode featuresArray = (ArrayNode) features;
                    Iterator<JsonNode> it = featuresArray.elements();
                    while (it.hasNext()) {
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 5.8K bytes
    - Click Count (0)
  6. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/text/ReplaceTextual.java

            return valueToBeReplaced;
        }
    
        @Input
        public JsonNode getReplacementNode() {
            return replacementNode;
        }
    
        @Input
        @Optional
        public String getTestName() {
            return testName;
        }
    
        @Override
        public boolean matches(JsonNode child) {
            return child.asText().equals(requiredChildKey());
        }
    
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jul 27 10:37:15 GMT 2021
    - 2.6K bytes
    - Click Count (0)
  7. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/match/ReplaceValueInMatch.java

     */
    public class ReplaceValueInMatch extends ReplaceByKey {
    
        public ReplaceValueInMatch(String replaceKey, JsonNode replacementNode) {
            this(replaceKey, replacementNode, null);
        }
    
        public ReplaceValueInMatch(String replaceKey, JsonNode replacementNode, String testName) {
            super(replaceKey, replaceKey, replacementNode, testName);
        }
    
        @Override
        @Internal
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.5K bytes
    - Click Count (0)
  8. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/RestTestTransform.java

     */
    
    package org.elasticsearch.gradle.internal.test.rest.transform;
    
    import com.fasterxml.jackson.databind.JsonNode;
    import org.gradle.api.Named;
    import org.gradle.api.tasks.Input;
    
    /**
     * A single instruction to transforms a REST test.
     */
    public interface RestTestTransform<T extends JsonNode> extends Named {
    
        /**
         * Transform the Json structure per the given {@link RestTestTransform}
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.2K bytes
    - Click Count (0)
  9. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/skip/Skip.java

                addSkip(setupNode);
            }
            return setupNodeParent;
        }
    
        private void addSkip(ArrayNode skipParent) {
            Iterator<JsonNode> skipParentIt = skipParent.elements();
            boolean found = false;
            while (skipParentIt.hasNext()) {
                JsonNode arrayEntry = skipParentIt.next();
                if (arrayEntry.isObject()) {
                    ObjectNode skipCandidate = (ObjectNode) arrayEntry;
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Thu Sep 30 16:30:48 GMT 2021
    - 4K bytes
    - Click Count (0)
  10. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/test/rest/transform/length/ReplaceKeyInLength.java

     * in compliance with, at your election, the Elastic License 2.0 or the Server
     * Side Public License, v 1.
     */
    
    package org.elasticsearch.gradle.internal.test.rest.transform.length;
    
    import com.fasterxml.jackson.databind.JsonNode;
    import com.fasterxml.jackson.databind.node.ObjectNode;
    import org.elasticsearch.gradle.internal.test.rest.transform.ReplaceByKey;
    import org.gradle.api.tasks.Internal;
    
    /**
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 1.4K bytes
    - Click Count (0)
Back to Top