* ============LICENSE_START=======================================================
* ONAP
* ================================================================================
- * Copyright (C) 2019-2020 AT&T Intellectual Property. All rights reserved.
+ * Copyright (C) 2019-2021 AT&T Intellectual Property. All rights reserved.
* ================================================================================
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
//
// Create an ObligationExpression
//
- ObligationExpressionType obligation = new ObligationExpressionType();
+ var obligation = new ObligationExpressionType();
obligation.setFulfillOn(effectType);
obligation.setObligationId(obligationId.stringValue());
//
//
// Create an AttributeValue for it
//
- AttributeValueType value = new AttributeValueType();
+ var value = new AttributeValueType();
value.setDataType(datatype.stringValue());
value.getContent().add(theValue.toString());
//
// Create our AttributeAssignmentExpression where we will
// store the contents of the policy id.
//
- AttributeAssignmentExpressionType expressionType = new AttributeAssignmentExpressionType();
+ var expressionType = new AttributeAssignmentExpressionType();
expressionType.setAttributeId(id.stringValue());
expressionType.setCategory(category.stringValue());
expressionType.setExpression(factory.createAttributeValue(value));