- if ("ONAPName".equals(attributeId)) {
- policyAdapter.setOnapName(value);
- } else if ("ConfigName".equals(attributeId)) {
- policyAdapter.setConfigName(value);
- } else if ("uuid".equals(attributeId)) {
- policyAdapter.setUuid(value);
- } else if ("location".equals(attributeId)) {
- policyAdapter.setLocation(value);
- } else if ("RiskType".equals(attributeId)) {
- policyAdapter.setRiskType(value);
- } else if ("RiskLevel".equals(attributeId)) {
- policyAdapter.setRiskLevel(value);
- } else if ("guard".equals(attributeId)) {
- policyAdapter.setGuard(value);
- } else if ("TTLDate".equals(attributeId) && !value.contains("NA")) {
- String newDate = new PolicyController().convertDate(value);
- policyAdapter.setTtlDate(newDate);
- }
+ policyAdapter.setupUsingAttribute(match.getAttributeDesignator().getAttributeId(),
+ (String) match.getAttributeValue().getContent().get(0));