Examples of StringWithCustomTags


Examples of org.gedcom4j.model.StringWithCustomTags

        rootValidator.validate();
        assertFindingsContain(Severity.ERROR, "submitter", "not specified");

        Submitter s = new Submitter();
        s.xref = "@SUBM0001@";
        s.name = new StringWithCustomTags("test");
        g.submitters.put(s.xref, s);
        Header h = g.header;
        h.submitter = s;

        rootValidator.validate();
View Full Code Here

Examples of org.gedcom4j.model.StringWithCustomTags

        Gedcom g = new Gedcom();
        rootValidator.gedcom = g;
        rootValidator.autorepair = false;
        Submitter s = new Submitter();
        s.xref = "@SUBM0001@";
        s.name = new StringWithCustomTags("test");
        g.submitters.put(s.xref, s);
        Header h = g.header;
        h.submitter = s;
        g.submission = new Submission("@SUBN0001@");
        h.submission = g.submission;

        h.sourceSystem = null;

        rootValidator.validate();
        assertFindingsContain(Severity.ERROR, "source system", "specified");

        h.sourceSystem = new SourceSystem();
        rootValidator.validate();
        assertNoIssues();

        h.sourceSystem.corporation = null;
        rootValidator.validate();
        assertNoIssues();

        h.sourceSystem.corporation = new Corporation();
        rootValidator.validate();
        assertNoIssues();

        h.sourceSystem.corporation.businessName = null;
        rootValidator.validate();
        assertFindingsContain(Severity.ERROR, "source system", "corporation", "name");

        h.sourceSystem.corporation.businessName = "Frying Pan";
        rootValidator.validate();
        assertNoIssues();

        h.sourceSystem.productName = new StringWithCustomTags("Yo");
        rootValidator.validate();
        assertNoIssues();

        h.sourceSystem.productName.customTags = null;
        rootValidator.validate();
View Full Code Here

Examples of org.gedcom4j.model.StringWithCustomTags

        Gedcom g = new Gedcom();
        g.submission = new Submission("@SUBN0001@");
        g.header.submission = g.submission;
        Submitter s = new Submitter();
        s.xref = "@SUBM0001@";
        s.name = new StringWithCustomTags("Joe Tester");
        g.submitters.put(s.xref, s);
        g.header.submitter = s;
        GedcomWriter gw = new GedcomWriter(g);
        gw.write(fn);
    }
View Full Code Here

Examples of org.gedcom4j.model.StringWithCustomTags

        rootValidator.validate();
        assertNoIssues();

        PersonalNameVariation romanized = new PersonalNameVariation();
        pn.romanized.add(romanized);
        romanized.givenName = new StringWithCustomTags("Bjorn");
        romanized.surname = new StringWithCustomTags("Jorgen");
        rootValidator.validate();
        assertFindingsContain(Severity.ERROR, "variation", "name", "required");
        romanized.variation = "Bjorn /Jorgen/";
        rootValidator.validate();
        assertNoIssues();

        PersonalNameVariation phonetic = new PersonalNameVariation();
        pn.phonetic.add(phonetic);
        phonetic.givenName = new StringWithCustomTags("Byorn");
        phonetic.surname = new StringWithCustomTags("Yorgen");
        rootValidator.validate();
        assertFindingsContain(Severity.ERROR, "variation", "name", "required");
        phonetic.variation = "Byorn /Yorgen/";
        rootValidator.validate();
        assertNoIssues();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.