diff options
Diffstat (limited to 'common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java')
-rw-r--r-- | common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java | 52 |
1 files changed, 52 insertions, 0 deletions
diff --git a/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java new file mode 100644 index 0000000000..b619c66ee0 --- /dev/null +++ b/common-be/src/main/java/org/openecomp/sdc/be/datatypes/elements/AttributeDataDefinition.java @@ -0,0 +1,52 @@ +/*- + * ============LICENSE_START======================================================= + * SDC + * ================================================================================ + * Copyright (C) 2020, Nordix Foundation. 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. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * ============LICENSE_END========================================================= + */ +package org.openecomp.sdc.be.datatypes.elements; + +import lombok.Getter; +import lombok.NoArgsConstructor; +import lombok.Setter; +import org.openecomp.sdc.be.datatypes.tosca.ToscaDataDefinition; + +@Getter +@Setter +@NoArgsConstructor +public class AttributeDataDefinition extends ToscaDataDefinition{ + + private String uniqueId; + private String name; + private SchemaDefinition schema; + private String value; + + public AttributeDataDefinition(final AttributeDataDefinition attributeDataDefinition) { + super(); + this.setUniqueId(attributeDataDefinition.getUniqueId()); + this.setName(attributeDataDefinition.getName()); + this.setSchema(attributeDataDefinition.getSchema()); + this.setValue(attributeDataDefinition.getValue()); + } + + public String getParentUniqueId() { + return getOwnerId(); + } + + public void setParentUniqueId(final String parentUniqueId) { + setOwnerId(parentUniqueId); + } +} |