package com.iqser.red.service.persistence.service.v2.api.external.model;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlCData;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.ArrayList;
import java.util.List;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class Component {

    @JacksonXmlCData
    private String name;
    @JacksonXmlCData
    private List<String> values;
    @JacksonXmlCData
    private List<String> originalValues;
    @JacksonXmlCData
    private String componentRule;

    @Builder.Default
    private List<Entity> entityReferences = new ArrayList<>();

}
