com.linkedin.restli.restspec.AlternativeKeySchemaArray Maven / Gradle / Ivy
package com.linkedin.restli.restspec;
import java.util.Collection;
import java.util.List;
import javax.annotation.Generated;
import com.linkedin.data.DataList;
import com.linkedin.data.schema.ArrayDataSchema;
import com.linkedin.data.schema.PathSpec;
import com.linkedin.data.template.DataTemplateUtil;
import com.linkedin.data.template.WrappingArrayTemplate;
@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/CollectionSchema.pdsc.", date = "Tue Oct 03 15:15:24 PDT 2017")
public class AlternativeKeySchemaArray
extends WrappingArrayTemplate
{
private final static ArrayDataSchema SCHEMA = ((ArrayDataSchema) DataTemplateUtil.parseSchema("{\"type\":\"array\",\"items\":{\"type\":\"record\",\"name\":\"AlternativeKeySchema\",\"namespace\":\"com.linkedin.restli.restspec\",\"fields\":[{\"name\":\"name\",\"type\":\"string\",\"doc\":\"Name of the alternative key\"},{\"name\":\"doc\",\"type\":\"string\",\"doc\":\"Documentation for the alternative key\",\"optional\":true},{\"name\":\"type\",\"type\":\"string\",\"doc\":\"the avro type of the alternative key\"},{\"name\":\"keyCoercer\",\"type\":\"string\",\"doc\":\"the keyCoercer class for this alternative key\"}]}}"));
public AlternativeKeySchemaArray() {
this(new DataList());
}
public AlternativeKeySchemaArray(int initialCapacity) {
this(new DataList(initialCapacity));
}
public AlternativeKeySchemaArray(Collection c) {
this(new DataList(c.size()));
addAll(c);
}
public AlternativeKeySchemaArray(DataList data) {
super(data, SCHEMA, AlternativeKeySchema.class);
}
@Override
public AlternativeKeySchemaArray clone()
throws CloneNotSupportedException
{
return ((AlternativeKeySchemaArray) super.clone());
}
@Override
public AlternativeKeySchemaArray copy()
throws CloneNotSupportedException
{
return ((AlternativeKeySchemaArray) 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.AlternativeKeySchema.Fields items() {
return new com.linkedin.restli.restspec.AlternativeKeySchema.Fields(getPathComponents(), PathSpec.WILDCARD);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy