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

com.silanis.esl.api.model.ReferencedDocument Maven / Gradle / Ivy

There is a newer version: 11.59.0
Show newest version
package com.silanis.esl.api.model;

import static com.silanis.esl.api.util.SchemaSanitizer.throwOnNull;
import static com.silanis.esl.api.util.SchemaSanitizer.trim;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import java.io.Serializable;
import java.util.List;

@JsonIgnoreProperties(ignoreUnknown = true)
public class ReferencedDocument extends Model implements Serializable {

    @JsonIgnore
    public static final String FIELD_ID = "documentId";
    @JsonIgnore
    public static final String REF_FIELDS = "fields";

    private String documentId;
    private List fields;

    public ReferencedDocument setDocumentId(String value) {

        throwOnNull(FIELD_ID, value);
        value = trim(value);

        this.documentId = value;
        setDirty(FIELD_ID);
        return this;
    }

    public String getDocumentId() {
        return documentId;
    }

    public ReferencedDocument setFields(List value) {

        throwOnNull(REF_FIELDS, value);

        this.fields = value;
        setDirty(REF_FIELDS);
        return this;
    }

    public List getFields() {
        return fields;
    }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy