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

com.linkedin.restli.restspec.CustomAnnotationContentSchemaMap Maven / Gradle / Ivy


package com.linkedin.restli.restspec;

import java.util.List;
import java.util.Map;
import javax.annotation.Generated;
import com.linkedin.data.DataMap;
import com.linkedin.data.schema.MapDataSchema;
import com.linkedin.data.schema.PathSpec;
import com.linkedin.data.template.DataTemplateUtil;
import com.linkedin.data.template.WrappingMapTemplate;

@Generated(value = "com.linkedin.pegasus.generator.JavaCodeUtil", comments = "Rest.li Data Template. Generated from /Users/mnchen/dev/pegasus_trunk/pegasus/restli-common/src/main/pegasus/com/linkedin/restli/restspec/CustomAnnotationSchema.pdsc.", date = "Tue Oct 03 15:15:24 PDT 2017")
public class CustomAnnotationContentSchemaMap
    extends WrappingMapTemplate
{

    private final static MapDataSchema SCHEMA = ((MapDataSchema) DataTemplateUtil.parseSchema("{\"type\":\"map\",\"values\":{\"type\":\"record\",\"name\":\"CustomAnnotationContentSchema\",\"namespace\":\"com.linkedin.restli.restspec\",\"doc\":\"Unstructured record that represents arbitrary custom annotations for idl. Actual content is always a map with annotation's overridable member name as key and member value as value\",\"fields\":[]}}"));

    public CustomAnnotationContentSchemaMap() {
        this(new DataMap());
    }

    public CustomAnnotationContentSchemaMap(int initialCapacity) {
        this(new DataMap(initialCapacity));
    }

    public CustomAnnotationContentSchemaMap(int initialCapacity, float loadFactor) {
        this(new DataMap(initialCapacity, loadFactor));
    }

    public CustomAnnotationContentSchemaMap(Map m) {
        this(newDataMapOfSize(m.size()));
        putAll(m);
    }

    public CustomAnnotationContentSchemaMap(DataMap data) {
        super(data, SCHEMA, CustomAnnotationContentSchema.class);
    }

    @Override
    public CustomAnnotationContentSchemaMap clone()
        throws CloneNotSupportedException
    {
        return ((CustomAnnotationContentSchemaMap) super.clone());
    }

    @Override
    public CustomAnnotationContentSchemaMap copy()
        throws CloneNotSupportedException
    {
        return ((CustomAnnotationContentSchemaMap) super.copy());
    }

    public static class Fields
        extends PathSpec
    {


        public Fields(List path, String name) {
            super(path, name);
        }

        public Fields() {
            super();
        }

        public com.linkedin.restli.restspec.CustomAnnotationContentSchema.Fields values() {
            return new com.linkedin.restli.restspec.CustomAnnotationContentSchema.Fields(getPathComponents(), PathSpec.WILDCARD);
        }

    }

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy