* limitations under the License.
* ============LICENSE_END=========================================================
*/
+
package org.openecomp.sdc.be.model;
import static org.openecomp.sdc.be.dao.utils.CollectionUtils.safeGetList;
import java.lang.reflect.Type;
import java.util.List;
import java.util.stream.Collectors;
+import lombok.Getter;
import lombok.NoArgsConstructor;
+import lombok.Setter;
import org.apache.commons.collections.CollectionUtils;
import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition;
import org.openecomp.sdc.be.model.operations.impl.PropertyOperation;
public class PropertyDefinition extends PropertyDataDefinition implements IOperationParameter, IComplexDefaultValue, ToscaPropertyData {
private List<PropertyConstraint> constraints;
-
- public String getToscaSubPath() {
- return toscaSubPath;
- }
-
- public void setToscaSubPath(String toscaSubPath) {
- this.toscaSubPath = toscaSubPath;
- }
-
+ @Getter
+ @Setter
private String toscaSubPath;
public PropertyDefinition(PropertyDataDefinition p) {
public List<PropertyConstraint> getConstraints() {
if (CollectionUtils.isEmpty(constraints)) {
- constraints = deserializePropertyConstraints(findConstraints());
+ setConstraints(deserializePropertyConstraints(findConstraints()));
}
return constraints;
}