public List<PropertyDataDefinition> getProperties() {
return (List<PropertyDataDefinition>) getToscaPresentationValue(JsonPresentationFields.PROPERTIES);
}
+
+ public void addProperty(final PropertyDataDefinition property) {
+ List<PropertyDataDefinition> properties = (List<PropertyDataDefinition>) getToscaPresentationValue(JsonPresentationFields.PROPERTIES);
+ if (properties == null) {
+ properties = new ArrayList<>();
+ setProperties(properties);
+ }
+ properties.add(property);
+ }
private void setProperties(final List<PropertyDataDefinition> properties) {
setToscaPresentationValue(JsonPresentationFields.PROPERTIES, properties);
} else if (!getArtifactRepository().equals(other.getArtifactRepository())) {
return false;
}
+ if (getArtifactName() == null) {
+ if (other.getArtifactName() != null) {
+ return false;
+ }
+ } else if (!getArtifactName().equals(other.getArtifactName())) {
+ return false;
+ }
if (getArtifactType() == null) {
if (other.getArtifactType() != null) {
return false;