diff options
Diffstat (limited to 'catalog-model/src/main/java/org/openecomp/sdc/be/model/GroupProperty.java')
-rw-r--r-- | catalog-model/src/main/java/org/openecomp/sdc/be/model/GroupProperty.java | 75 |
1 files changed, 35 insertions, 40 deletions
diff --git a/catalog-model/src/main/java/org/openecomp/sdc/be/model/GroupProperty.java b/catalog-model/src/main/java/org/openecomp/sdc/be/model/GroupProperty.java index 649aa1f710..95702a3486 100644 --- a/catalog-model/src/main/java/org/openecomp/sdc/be/model/GroupProperty.java +++ b/catalog-model/src/main/java/org/openecomp/sdc/be/model/GroupProperty.java @@ -24,50 +24,45 @@ import org.openecomp.sdc.be.datatypes.elements.PropertyDataDefinition; public class GroupProperty extends PropertyDefinition { - /** - * current value - */ -// private String value; + /** + * The unique is of Group property on graph. If it is null, then the + * property's value was not updated. The value is taken from the group type + * property. + */ + private String valueUniqueUid; - /** - * The unique is of Group property on graph. If it is null, then the - * property's value was not updated. The value is taken from the group type - * property. - */ - private String valueUniqueUid; + public GroupProperty() { + super(); + } - public GroupProperty() { - super(); - } + public GroupProperty(PropertyDefinition pd, String value, String valueUniqueUid) { + super(pd); + setValue(value); + this.valueUniqueUid = valueUniqueUid; + } - public GroupProperty(PropertyDefinition pd, String value, String valueUniqueUid) { - super(pd); - setValue(value); - this.valueUniqueUid = valueUniqueUid; - } + public GroupProperty(GroupProperty other) { + super(other); + if (other != null) { + setValue(other.getValue()); + this.valueUniqueUid = other.getValueUniqueUid(); + } + } + public GroupProperty(PropertyDataDefinition other) { + super(other); + } - public GroupProperty(GroupProperty other) { - super(other); - if (other != null) { - setValue(other.getValue()); - this.valueUniqueUid = other.getValueUniqueUid(); - } - } - public GroupProperty(PropertyDataDefinition other) { - super(other); - } + public String getValueUniqueUid() { + return valueUniqueUid; + } - public String getValueUniqueUid() { - return valueUniqueUid; - } + public void setValueUniqueUid(String valueUniqueUid) { + this.valueUniqueUid = valueUniqueUid; + } - public void setValueUniqueUid(String valueUniqueUid) { - this.valueUniqueUid = valueUniqueUid; - } - - @Override - public String toString() { - return "GroupProperty [ " + super.toString() + ", valueUniqueUid = " + valueUniqueUid - + " ]"; - } + @Override + public String toString() { + return "GroupProperty [ " + super.toString() + ", valueUniqueUid = " + valueUniqueUid + + " ]"; + } } |