/** * Build up this identifier with a type. * @param type The type. * @return this. */ public Identifier type(URI type) { setType(type); return this; }
/** * Set the value of the id type from a known identifier type. * * @param knownType The known identifier type. */ @JsonIgnore @org.codehaus.jackson.annotate.JsonIgnore public void setKnownType(IdentifierType knownType) { setType(knownType == null ? null : knownType.toQNameURI()); }
fatherChildRelationship.setIdentifiers(new ArrayList<>(1)); fatherChildRelationship.getIdentifiers().add(new Identifier()); fatherChildRelationship.getIdentifiers().get(0).setType(FamilySearchIdentifierType.ChildAndParentsRelationship.toQNameURI(), true); fatherChildRelationship.getIdentifiers().get(0).setValue(primaryIdentifier.getValue()); motherChildRelationship.setIdentifiers(new ArrayList<>(1)); motherChildRelationship.getIdentifiers().add(new Identifier()); motherChildRelationship.getIdentifiers().get(0).setType(FamilySearchIdentifierType.ChildAndParentsRelationship.toQNameURI(), true); motherChildRelationship.getIdentifiers().get(0).setValue(primaryIdentifier.getValue());