com.cybersource.flex.sdk.model.ErrorLinks Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of flex-server-sdk Show documentation
Show all versions of flex-server-sdk Show documentation
CyberSource Flex API Server Side SDK
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);
}
}