User: dallan Date: 1/7/12
| 21 | * Date: 1/7/12 |
| 22 | */ |
| 23 | public class MediaRef extends ExtensionContainer { |
| 24 | private String ref = null; |
| 25 | |
| 26 | public String getRef() { |
| 27 | return ref; |
| 28 | } |
| 29 | |
| 30 | public void setRef(String ref) { |
| 31 | this.ref = ref; |
| 32 | } |
| 33 | |
| 34 | /** |
| 35 | * Convenience function to dereference media |
| 36 | * @param gedcom Gedcom |
| 37 | * @return referenced media |
| 38 | */ |
| 39 | public Media getMedia(Gedcom gedcom) { |
| 40 | return gedcom.getMedia(ref); |
| 41 | } |
| 42 | |
| 43 | public void accept(Visitor visitor) { |
| 44 | if (visitor.visit(this)) { |
| 45 | super.visitContainedObjects(visitor); |
| 46 | visitor.endVisit(this); |
| 47 | } |
| 48 | } |
| 49 | } |
nothing calls this directly
no outgoing calls
no test coverage detected