MCPcopy Create free account
hub / github.com/FamilySearch/gedcom5-java / MediaRef

Class MediaRef

src/main/java/org/folg/gedcom/model/MediaRef.java:23–49  ·  view source on GitHub ↗

User: dallan Date: 1/7/12

Source from the content-addressed store, hash-verified

21 * Date: 1/7/12
22 */
23public 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected