|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.gedcomx.conversion.gedcom.dq55.CommonMapper
public class CommonMapper
| Method Summary | |
|---|---|
static String |
getContributorReference(String id)
|
static String |
getOrganizationReference(String id)
|
static String |
getPersonReference(String gedxPersonId)
|
static String |
getRelationshipReference(String id)
|
static String |
getSourceDescriptionReference(String gedxDescriptionId)
|
static boolean |
inCanonicalGlobalFormat(String telephoneNumber)
|
static Date |
parseDateString(String parsePattern,
String value)
|
static void |
populateAgent(org.gedcomx.agent.Agent agent,
String id,
String name,
org.folg.gedcom.model.Address address,
String phone,
String fax,
String email,
String www)
|
static org.gedcomx.types.ConfidenceLevel |
toConfidenceLevel(String dqQuality)
|
static Date |
toDate(org.folg.gedcom.model.Change dqChange)
|
static org.gedcomx.common.ResourceReference |
toReference(String gedxPersonId)
Returns a GEDCOM X reference for the given person identifier. |
static org.gedcomx.conclusion.Relationship |
toRelationship(String familyId,
String personId1,
String personId2,
org.gedcomx.types.RelationshipType relationshipType)
Creates a GEDCOM X relationship. |
static List<org.gedcomx.source.SourceReference> |
toSourcesAndSourceReferences(List<org.folg.gedcom.model.SourceCitation> dqSources,
GedcomxConversionResult result)
Create a list of GedcomX SourceReference based on the ged5 SourceCitations. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static List<org.gedcomx.source.SourceReference> toSourcesAndSourceReferences(List<org.folg.gedcom.model.SourceCitation> dqSources,
GedcomxConversionResult result)
throws IOException
dqSources - Gedcom 5 source citations
IOExceptionpublic static Date toDate(org.folg.gedcom.model.Change dqChange)
public static org.gedcomx.types.ConfidenceLevel toConfidenceLevel(String dqQuality)
public static Date parseDateString(String parsePattern,
String value)
throws ParseException
ParseExceptionpublic static String getPersonReference(String gedxPersonId)
gedxPersonId - to be saved in zip file
public static String getRelationshipReference(String id)
public static String getSourceDescriptionReference(String gedxDescriptionId)
gedxDescriptionId - resource to be saved in zip file
public static String getContributorReference(String id)
public static String getOrganizationReference(String id)
public static org.gedcomx.conclusion.Relationship toRelationship(String familyId,
String personId1,
String personId2,
org.gedcomx.types.RelationshipType relationshipType)
familyId - the GEDCOM 5.5 identifier associated with the family to which this relationship belongspersonId1 - the GEDCOM 5.5 identifier associated with the person 1personId2 - the GEDCOM 5.5 identifier associated with the person 1relationshipType - the relationship type
public static org.gedcomx.common.ResourceReference toReference(String gedxPersonId)
gedxPersonId - the identifier of the GEDCOM X person
public static boolean inCanonicalGlobalFormat(String telephoneNumber)
public static void populateAgent(org.gedcomx.agent.Agent agent,
String id,
String name,
org.folg.gedcom.model.Address address,
String phone,
String fax,
String email,
String www)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||