User: Dallan Date: 12/26/11 omit: reference number don't make this a SourceCitationContainer, because that would allow nested notes
| 28 | * don't make this a SourceCitationContainer, because that would allow nested notes |
| 29 | */ |
| 30 | public class Note extends ExtensionContainer { |
| 31 | private String id = null; |
| 32 | private String value = null; |
| 33 | private String rin = null; |
| 34 | private Change chan = null; |
| 35 | private List<SourceCitation> sourceCitations = null; |
| 36 | private boolean sourceCitationsUnderValue = false; // yuck: Reunion does this: 0 NOTE 1 CONT ... 2 SOUR; remember for round-trip |
| 37 | |
| 38 | public String getId() { |
| 39 | return id; |
| 40 | } |
| 41 | |
| 42 | public void setId(String id) { |
| 43 | this.id = id; |
| 44 | } |
| 45 | |
| 46 | public String getValue() { |
| 47 | return value; |
| 48 | } |
| 49 | |
| 50 | public void setValue(String value) { |
| 51 | this.value = value; |
| 52 | } |
| 53 | |
| 54 | public String getRin() { |
| 55 | return rin; |
| 56 | } |
| 57 | |
| 58 | public void setRin(String rin) { |
| 59 | this.rin = rin; |
| 60 | } |
| 61 | |
| 62 | public Change getChange() { |
| 63 | return chan; |
| 64 | } |
| 65 | |
| 66 | public void setChange(Change chan) { |
| 67 | this.chan = chan; |
| 68 | } |
| 69 | |
| 70 | public List<SourceCitation> getSourceCitations() { |
| 71 | return sourceCitations != null ? sourceCitations : Collections.<SourceCitation>emptyList(); |
| 72 | } |
| 73 | |
| 74 | public void setSourceCitations(List<SourceCitation> sourceCitations) { |
| 75 | this.sourceCitations = sourceCitations; |
| 76 | } |
| 77 | |
| 78 | public void addSourceCitation(SourceCitation sourceCitation) { |
| 79 | if (sourceCitations == null) { |
| 80 | sourceCitations = new ArrayList<SourceCitation>(); |
| 81 | } |
| 82 | sourceCitations.add(sourceCitation); |
| 83 | } |
| 84 | |
| 85 | public boolean isSourceCitationsUnderValue() { |
| 86 | return sourceCitationsUnderValue; |
| 87 | } |
nothing calls this directly
no outgoing calls
no test coverage detected