79 lines
2.0 KiB
Java
79 lines
2.0 KiB
Java
package org.opencdmp.commons.types.descriptiontemplate;
|
|
|
|
import jakarta.xml.bind.annotation.*;
|
|
import jakarta.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
|
|
import org.opencdmp.commons.xmladapter.InstantXmlAdapter;
|
|
|
|
import java.time.Instant;
|
|
import java.util.List;
|
|
|
|
@XmlAccessorType(XmlAccessType.FIELD)
|
|
public class RuleEntity {
|
|
@XmlAttribute(name="target")
|
|
private String target;
|
|
@XmlAttribute(name="value")
|
|
private String textValue;
|
|
|
|
@XmlElementWrapper(name = "textListValues")
|
|
@XmlElement(name = "textListValue")
|
|
private List<String> textListValue;
|
|
|
|
@XmlElement(name = "dateValue")
|
|
@XmlJavaTypeAdapter(InstantXmlAdapter.class)
|
|
private Instant dateValue;
|
|
|
|
@XmlElement(name = "booleanValue")
|
|
private Boolean booleanValue;
|
|
@XmlElement(name="externalIdentifier")
|
|
private ExternalIdentifierEntity externalIdentifier;
|
|
|
|
public String getTarget() {
|
|
return this.target;
|
|
}
|
|
|
|
public void setTarget(String target) {
|
|
this.target = target;
|
|
}
|
|
|
|
public String getTextValue() {
|
|
return this.textValue;
|
|
}
|
|
|
|
public void setTextValue(String textValue) {
|
|
this.textValue = textValue;
|
|
}
|
|
|
|
public List<String> getTextListValue() {
|
|
return this.textListValue;
|
|
}
|
|
|
|
public void setTextListValue(List<String> textListValue) {
|
|
this.textListValue = textListValue;
|
|
}
|
|
|
|
public Instant getDateValue() {
|
|
return this.dateValue;
|
|
}
|
|
|
|
public void setDateValue(Instant dateValue) {
|
|
this.dateValue = dateValue;
|
|
}
|
|
|
|
public Boolean getBooleanValue() {
|
|
return this.booleanValue;
|
|
}
|
|
|
|
public void setBooleanValue(Boolean booleanValue) {
|
|
this.booleanValue = booleanValue;
|
|
}
|
|
|
|
public ExternalIdentifierEntity getExternalIdentifier() {
|
|
return this.externalIdentifier;
|
|
}
|
|
|
|
public void setExternalIdentifier(ExternalIdentifierEntity externalIdentifier) {
|
|
this.externalIdentifier = externalIdentifier;
|
|
}
|
|
}
|
|
|