All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.sphere.sdk.customobjects.queries.CustomObjectValueRootJsonObjectQueryModelImpl Maven / Gradle / Ivy

There is a newer version: 2.16.0
Show newest version
package io.sphere.sdk.customobjects.queries;

import io.sphere.sdk.queries.*;

import javax.annotation.Nullable;

final class CustomObjectValueRootJsonObjectQueryModelImpl extends QueryModelImpl implements RootJsonQueryModel, JsonObjectQueryModel, JsonValueQueryModel {

    public static final String VALUE = "value";

    CustomObjectValueRootJsonObjectQueryModelImpl(@Nullable final QueryModel parent, @Nullable final String pathSegment) {
        super(parent, pathSegment);
    }

    @Override
    public JsonObjectQueryModel ofJsonObject() {
        return new CustomObjectValueRootJsonObjectQueryModelImpl<>(null, VALUE);
    }

    @Override
    public JsonValueQueryModel ofJsonValue() {
        return new CustomObjectValueRootJsonObjectQueryModelImpl<>(null, null);
    }

    @Override
    public StringQueryModel ofString(final String fieldName) {
        return stringModel(fieldName);
    }

    @Override
    public JsonObjectQueryModel ofJsonObject(final String fieldName) {
        return new CustomObjectValueRootJsonObjectQueryModelImpl<>(this, fieldName);
    }

    @Override
    public BooleanQueryModel ofBoolean(final String fieldName) {
        return booleanModel(fieldName);
    }

    @Override
    public StringCollectionQueryModel ofStringCollection(final String fieldName) {
        return super.stringCollectionModel(fieldName);
    }

    @Override
    public IntegerQueryModel ofInteger(final String fieldName) {
        return integerModel(fieldName);
    }

    @Override
    public LongQueryModel ofLong(final String fieldName) {
        return longModel(fieldName);
    }

    @Override
    public StringQueryModel ofString() {
        return stringModel(null, VALUE);
    }

    @Override
    public IntegerQueryModel ofInteger() {
        return integerModel(null, VALUE);
    }

    @Override
    public LongQueryModel ofLong() {
        return longModel(null, VALUE);
    }

    @Override
    public BooleanQueryModel ofBoolean() {
        return booleanModel(null, VALUE);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy