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

io.apptik.json.generator.GeneratorConfig Maven / Gradle / Ivy

There is a newer version: 1.1.0-alpha1
Show newest version
/*
 * Copyright (C) 2014 Kalin Maldzhanski
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package io.apptik.json.generator;


import io.apptik.json.JsonElement;

import java.util.ArrayList;
import java.util.Date;
import java.util.HashMap;

public class GeneratorConfig {

    //for object type
    public HashMap objectPropertiesMin =  new HashMap();
    public HashMap objectPropertiesMax =  new HashMap();
    public Integer globalObjectPropertiesMin =  null;
    public Integer globalObjectPropertiesMax = null;

    //for array type
    //first check for predefined items, those items can be filled in a random order
    public HashMap> arrayPredefinedItems =  new HashMap>();
    public HashMap arrayItemsMin =  new HashMap();
    public HashMap arrayItemsMax =  new HashMap();
    public Integer globalArrayItemsMin = null;
    public Integer globalArrayItemsMax = null;


    //for integer type
    public HashMap integerMin =  new HashMap();
    public HashMap integerMax =  new HashMap();
    public Integer globalIntegerMin = null;
    public Integer globalIntegerMax = null;

    //for number type
    public HashMap numberMin =  new HashMap();
    public HashMap numberMax =  new HashMap();
    public Integer globalNumberMin = null;
    public Integer globalNumberMax = null;

    //for string type
    //first check predefined values, acts as if an enum is set in the schema
    public HashMap> stringPredefinedValues =  new HashMap>();
    public HashMap stringLengthMin =  new HashMap();
    public HashMap stringLengthMax =  new HashMap();
    public Integer globalStringLengthMin = null;
    public Integer globalStringLengthMax = null;

    //for date and datetime formats, string type
    public Date globalDateMin = null;
    public Date globalDateMax = null;
    public HashMap dateMin =  new HashMap();
    public HashMap dateMax =  new HashMap();

    //for uri format, string type
    public ArrayList globalUriSchemes = new ArrayList();
    public ArrayList globalUriHosts = new ArrayList();
    public ArrayList globalUriPaths = new ArrayList();

    public HashMap> uriSchemes =  new HashMap>();
    public HashMap> uriHosts =  new HashMap>();
    public HashMap> uriPaths =  new HashMap>();


    public HashMap uriPathLengthMin =  new HashMap();
    public HashMap uriPathLengthMax =  new HashMap();
    public Integer globalUriPathLengthMin = null;
    public Integer globalUriPathLengthMax = null;

    public ArrayList skipObjectProperties = new ArrayList();



}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy