本文整理汇总了Java中org.marc.everest.datatypes.generic.SET.add方法的典型用法代码示例。如果您正苦于以下问题:Java SET.add方法的具体用法?Java SET.add怎么用?Java SET.add使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类org.marc.everest.datatypes.generic.SET
的用法示例。
在下文中一共展示了SET.add方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: setParticipant
import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
private void setParticipant() {
Participant2 participant = new Participant2(ParticipationType.LOC, ContextControl.OverridingPropagating);
ParticipantRole participantRole = new ParticipantRole(new CD<String>(Constants.RoleClass.SDLOC.toString()));
PlayingEntity playingEntity = new PlayingEntity(EntityClassRoot.Organization);
if(!EverestUtils.isNullorEmptyorWhitespace(immunization.getPreventionMap().get(Constants.PreventionExtKeys.location.toString()))) {
SET<PN> names = new SET<PN>();
ArrayList<ENXP> name = new ArrayList<ENXP>();
name.add(new ENXP(immunization.getPreventionMap().get(Constants.PreventionExtKeys.location.toString())));
names.add(new PN(null, name));
playingEntity.setName(names);
}
participantRole.setPlayingEntityChoice(playingEntity);
participant.setParticipantRole(participantRole);
this.participant = new ArrayList<Participant2>(Arrays.asList(participant));
}
示例2: getBORNRealm
import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
protected SET<CS<BindingRealm>> getBORNRealm() {
SET<CS<BindingRealm>> result = new SET<CS<BindingRealm>>();
CS<BindingRealm> cs = new CS<BindingRealm>();
BindingRealm realm = new BindingRealm("CA-ON", "");
cs.setCodeEx(realm);
result.add(cs);
return result;
}
示例3: setPerson
import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
private void setPerson() {
Person person = new Person();
SET<PN> names = new SET<PN>();
EverestUtils.addNamePart(names, provider.getFirstName(), provider.getLastName(), EntityNameUse.OfficialRecord);
if(names.isEmpty()) {
PN pn = new PN();
pn.setNullFlavor(NullFlavor.NoInformation);
names.add(pn);
}
person.setName(names);
this.person = person;
}
示例4: addTelecomPart
import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
public static void addTelecomPart(SET<TEL> telecoms, String value, TelecommunicationsAddressUse telecomAddressUse, TelecomType telecomType) {
if(!isNullorEmptyorWhitespace(value)) {
if(telecomType == Constants.TelecomType.TELEPHONE) {
telecoms.add(new TEL(Constants.DocumentHeader.TEL_PREFIX + value.replaceAll("-", ""), telecomAddressUse));
} else if(telecomType == Constants.TelecomType.EMAIL) {
telecoms.add(new TEL(Constants.DocumentHeader.EMAIL_PREFIX + value, telecomAddressUse));
}
}
}
示例5: addNamePart
import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
public static void addNamePart(SET<PN> names, String firstName, String lastName, EntityNameUse entityNameUse) {
ArrayList<ENXP> name = new ArrayList<ENXP>();
if(!isNullorEmptyorWhitespace(firstName)) {
name.add(new ENXP(firstName, EntityNamePartType.Given));
}
if(!isNullorEmptyorWhitespace(lastName)) {
name.add(new ENXP(lastName, EntityNamePartType.Family));
}
if(!name.isEmpty()) {
names.add(new PN(entityNameUse, name));
}
}
示例6: AuthorPersonLens
import org.marc.everest.datatypes.generic.SET; //导入方法依赖的package包/类
public AuthorPersonLens() {
get = providerNo -> {
Provider provider = EverestUtils.getProviderFromString(providerNo);
Person person = new Person();
if(provider != null) {
SET<PN> names = new SET<>();
List<ENXP> name = new ArrayList<>();
if(!EverestUtils.isNullorEmptyorWhitespace(provider.getFirstName())) {
name.add(new NamePartLens(EntityNamePartType.Given).get(provider.getFirstName()));
}
if(!EverestUtils.isNullorEmptyorWhitespace(provider.getLastName())) {
name.add(new NamePartLens(EntityNamePartType.Family).get(provider.getLastName()));
}
if(!name.isEmpty()) {
names = new SET<>(new PN(EntityNameUse.OfficialRecord, name));
} else {
PN pn = new PN();
pn.setNullFlavor(NullFlavor.NoInformation);
names.add(pn);
}
person.setName(names);
} else {
person.setNullFlavor(NullFlavor.NoInformation);
}
return person;
};
put = (providerNo, person) -> {
return providerNo;
};
}