All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yodlee.api.model.AbstractAttribute Maven / Gradle / Ivy

There is a newer version: 1.0.29.beta1
Show newest version
/**
 * Copyright (c) 2019 Yodlee, Inc. All Rights Reserved.
 *
 * Licensed under the MIT License. See LICENSE file in the project root for license information.
 */
package com.yodlee.api.model;

import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import javax.validation.constraints.NotNull;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.yodlee.api.model.enums.AttributeName;
import com.yodlee.api.model.enums.Container;
import io.swagger.annotations.ApiModelProperty;

public abstract class AbstractAttribute extends AbstractModelComponent {

	@ApiModelProperty(value = "Attributes that are supported for a dataset."//
			+ "

"// + "Endpoints:"// + "
    "// + "
  • GET providers
  • "// + "
  • GET providers/{providerId}
  • "// + "
") @NotNull(message = "name cannot be null") @JsonProperty("name") protected AttributeName name; @ApiModelProperty(value = "Containers for which the attributes are supported."// + "

"// + "Endpoints:"// + "
    "// + "
  • GET providers
  • "// + "
  • GET providers/{providerId}
  • "// + "
"// ) @JsonProperty("container") protected List containers; /** * Attributes that are supported for a dataset.
*
* Endpoints: *
    *
  • GET providers
  • *
  • GET providers/{providerId}
  • *
* * @return name */ public AttributeName getName() { return name; } public void setName(AttributeName name) { this.name = name; } /** * Containers for which the attributes are supported.
*
* Endpoints: *
    *
  • GET providers
  • *
  • GET providers/{providerId}
  • *
* * @return container */ @JsonProperty("container") public List getContainers() { return containers == null ? null : Collections.unmodifiableList(containers); } @JsonProperty("container") public void setContainers(List containers) { this.containers = containers; } public boolean addContainer(Container container) { if (container == null) { return false; } if (containers == null) { containers = new ArrayList<>(); } return containers.add(container); } public boolean removeContainer(Container container) { if (containers != null) { return containers.remove(container); } return false; } public void clearContainers() { if (containers != null) { containers.clear(); } } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy