argos/backend/core/src/main/java/org/opencdmp/service/visibility/RuleWithTarget.java

49 lines
1.1 KiB
Java
Raw Normal View History

2024-04-26 12:50:56 +02:00
package org.opencdmp.service.visibility;
2024-03-20 17:40:34 +01:00
2024-04-26 12:50:56 +02:00
import org.opencdmp.commons.types.descriptiontemplate.FieldEntity;
import org.opencdmp.commons.types.descriptiontemplate.RuleEntity;
2024-03-20 17:40:34 +01:00
import java.time.Instant;
public class RuleWithTarget{
private final String target;
private final String source;
private final String textValue;
private final Instant dateValue;
2024-05-02 09:46:36 +02:00
private final Boolean booleanValue;
2024-03-20 17:40:34 +01:00
private final FieldEntity fieldEntity;
public RuleWithTarget(String source, RuleEntity rule, FieldEntity fieldEntity) {
this.target = rule.getTarget();
this.source = source;
this.fieldEntity = fieldEntity;
this.textValue = rule.getTextValue();
this.dateValue = rule.getDateValue();
2024-05-02 09:46:36 +02:00
this.booleanValue = rule.getBooleanValue();
2024-03-20 17:40:34 +01:00
}
public String getTarget() {
2024-05-02 09:46:36 +02:00
return this.target;
2024-03-20 17:40:34 +01:00
}
public String getSource() {
2024-05-02 09:46:36 +02:00
return this.source;
2024-03-20 17:40:34 +01:00
}
public String getTextValue() {
2024-05-02 09:46:36 +02:00
return this.textValue;
2024-03-20 17:40:34 +01:00
}
public Instant getDateValue() {
2024-05-02 09:46:36 +02:00
return this.dateValue;
}
public Boolean getBooleanValue() {
return this.booleanValue;
2024-03-20 17:40:34 +01:00
}
public FieldEntity getFieldEntity() {
2024-05-02 09:46:36 +02:00
return this.fieldEntity;
2024-03-20 17:40:34 +01:00
}
}