Rename packages from openecomp to onap.
[sdc.git] / common / onap-sdc-artifact-generator-lib / onap-sdc-artifact-generator-api / src / main / java / org / onap / sdc / generator / aai / model / Widget.java
  * ============LICENSE_END=========================================================
  */
 
-package org.openecomp.sdc.generator.aai.model;
+package org.onap.sdc.generator.aai.model;
 
-import static org.openecomp.sdc.generator.data.GeneratorConstants.GENERATOR_AAI_CONFIGLPROP_NOT_FOUND;
-
-import org.openecomp.sdc.generator.aai.types.ModelType;
-import org.openecomp.sdc.generator.aai.types.ModelWidget;
-import org.openecomp.sdc.generator.data.ArtifactType;
-import org.openecomp.sdc.generator.data.GeneratorConstants;
-import org.openecomp.sdc.generator.data.WidgetConfigurationUtil;
-import org.openecomp.sdc.generator.error.IllegalAccessException;
+import org.onap.sdc.generator.aai.types.ModelType;
+import org.onap.sdc.generator.data.ArtifactType;
+import org.onap.sdc.generator.data.GeneratorConstants;
+import org.onap.sdc.generator.aai.types.ModelWidget;
+import org.onap.sdc.generator.data.WidgetConfigurationUtil;
+import org.onap.sdc.generator.error.IllegalAccessException;
 
 import java.util.Collections;
 import java.util.HashSet;
@@ -93,7 +91,8 @@ public abstract class Widget extends Model {
     Properties properties = WidgetConfigurationUtil.getConfig();
     String id = properties.getProperty(ArtifactType.AAI.name() + ".model-version-id." + getName());
     if (id == null) {
-      throw new IllegalArgumentException(String.format(GENERATOR_AAI_CONFIGLPROP_NOT_FOUND,
+      throw new IllegalArgumentException(String.format(
+          GeneratorConstants.GENERATOR_AAI_CONFIGLPROP_NOT_FOUND,
           ArtifactType.AAI.name() + ".model-version-id." + getName()));
     }
     return id;
@@ -118,7 +117,8 @@ public abstract class Widget extends Model {
     String id = properties.getProperty(ArtifactType.AAI.name() + ".model-invariant-id."
         + getName());
     if (id == null) {
-      throw new IllegalArgumentException(String.format(GENERATOR_AAI_CONFIGLPROP_NOT_FOUND,
+      throw new IllegalArgumentException(String.format(
+          GeneratorConstants.GENERATOR_AAI_CONFIGLPROP_NOT_FOUND,
           ArtifactType.AAI.name() + ".model-invariant-id." + getName()));
     }
     return id;