001package jmri.jmrit.signalsystemeditor; 002 003import java.util.ArrayList; 004import java.util.List; 005 006/** 007 * A string that might contain URL links 008 * 009 * @author Daniel Bergqvist (C) 2022 010 */ 011public class StringWithLinks { 012 013 private final List<String> _strings = new ArrayList<>(); 014 private final List<Link> _links = new ArrayList<>(); 015 016 public List<String> getStrings() { 017 return this._strings; 018 } 019 020 public List<Link> getLinks() { 021 return this._links; 022 } 023 024 025 public static class Link { 026 027 private String _name; 028 private String _href; 029 030 public Link(String name, String href) { 031 this._name = name; 032 this._href = href; 033 } 034 035 public void setName(String name) { 036 this._name = name; 037 } 038 039 public String getName() { 040 return this._name; 041 } 042 043 public void setHref(String href) { 044 this._href = href; 045 } 046 047 public String getHref() { 048 return this._href; 049 } 050 051 } 052}