class SwidTagIdPolicyEvaluator extends AbstractPolicyEvaluator {

    private static final Logger LOGGER = Logger.getLogger(SwidTagIdPolicyEvaluator.class);

    /**
     * {@inheritDoc}
     */
    @Override
    public PolicyCondition.Subject supportedSubject() {
        return PolicyCondition.Subject.SWID_TAGID;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public List<PolicyConditionViolation> evaluate(final Policy policy, final Component component) {<FILL_FUNCTION_BODY>}

}

        final List<PolicyConditionViolation> violations = new ArrayList<>();
        for (final PolicyCondition condition: super.extractSupportedConditions(policy)) {
            LOGGER.debug("Evaluating component (" + component.getUuid() + ") against policy condition (" + condition.getUuid() + ")");
            if (PolicyCondition.Operator.MATCHES == condition.getOperator()) {
                if (Matcher.matches(component.getSwidTagId(), condition.getValue())) {
                    violations.add(new PolicyConditionViolation(condition, component));
                }
            } else if (PolicyCondition.Operator.NO_MATCH == condition.getOperator()) {
                if (!Matcher.matches(component.getSwidTagId(), condition.getValue())) {
                    violations.add(new PolicyConditionViolation(condition, component));
                }
            }
        }
        return violations;
    
<methods>public non-sealed void <init>() ,public void setQueryManager(org.dependencytrack.persistence.QueryManager) <variables>protected org.dependencytrack.persistence.QueryManager qm