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

com.cybersource.flex.sdk.model.ErrorLinks Maven / Gradle / Ivy

There is a newer version: 0.11.1
Show newest version
package com.cybersource.flex.sdk.model;

import java.util.List;

public class ErrorLinks {

    private static final String SELF = "self";
    private static final String DOCUMENTATION = "documentation";
    private static final String NEXT = "next";

    private LinkMap linkMap;

    public ErrorLinks() {
        linkMap = new LinkMap();
        linkMap.addEmptyLink(SELF);
        linkMap.addEmptyLinkList(DOCUMENTATION);
        linkMap.addEmptyLinkList(NEXT);
    }

    public Link getSelf() {
        return linkMap.getLink(SELF);
    }

    public void setSelf(Link self) {
        linkMap.setLink(SELF, self);
    }

    public List getDocumentation() {
        return linkMap.getLinkList(DOCUMENTATION);
    }

    public void addDocumentationLinks(List links) {
        linkMap.addLinksToList(DOCUMENTATION, links);
    }

    public List getNext() {
        return linkMap.getLinkList(NEXT);
    }

    public void addNextLinks(List links) {
        linkMap.addLinksToList(NEXT, links);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy