Пример #1
0
 public MetaInfoBuilder addComments(String... comments) {
   if (comments == null) {
     return this;
   }
   if (meta.getComments() == null) {
     meta.setComments(new ArrayList<>());
   }
   meta.getComments().addAll(Arrays.asList(comments));
   return this;
 }
Пример #2
0
 public MetaInfoBuilder addContributors(String... contributors) {
   if (contributors == null) {
     return this;
   }
   if (meta.getContributors() == null) {
     meta.setContributors(new HashSet<>());
   }
   meta.getContributors().addAll(Arrays.asList(contributors));
   return this;
 }
Пример #3
0
 public MetaInfoBuilder addTitles(String... titles) {
   if (titles == null) {
     return this;
   }
   if (meta.getTitles() == null) {
     meta.setTitles(new HashSet<>());
   }
   meta.getTitles().addAll(Arrays.asList(titles));
   return this;
 }
Пример #4
0
 public MetaInfoBuilder addAudiences(String... audiences) {
   if (audiences == null) {
     return this;
   }
   if (meta.getAudiences() == null) {
     meta.setAudiences(new HashSet<>());
   }
   meta.getAudiences().addAll(Arrays.asList(audiences));
   return this;
 }
Пример #5
0
 public MetaInfoBuilder addSeeAlso(String... seeAlso) {
   if (seeAlso == null) {
     return this;
   }
   if (meta.getSeeAlso() == null) {
     meta.setSeeAlso(new HashSet<>());
   }
   meta.getSeeAlso().addAll(Arrays.asList(seeAlso));
   return this;
 }
Пример #6
0
 public MetaInfoBuilder addSubjects(String... subjects) {
   if (subjects == null) {
     return this;
   }
   if (meta.getSubjects() == null) {
     meta.setSubjects(new HashSet<>());
   }
   meta.getSubjects().addAll(Arrays.asList(subjects));
   return this;
 }
Пример #7
0
 public MetaInfoBuilder addRights(String... rights) {
   if (rights == null) {
     return this;
   }
   if (meta.getRights() == null) {
     meta.setRights(new HashSet<>());
   }
   meta.getRights().addAll(Arrays.asList(rights));
   return this;
 }
Пример #8
0
 public MetaInfoBuilder addPublishers(String... publishers) {
   if (publishers == null) {
     return this;
   }
   if (meta.getPublishers() == null) {
     meta.setPublishers(new HashSet<>());
   }
   meta.getPublishers().addAll(Arrays.asList(publishers));
   return this;
 }
Пример #9
0
 public MetaInfoBuilder addIdentifiers(String... ids) {
   if (ids == null) {
     return this;
   }
   if (meta.getIdentifiers() == null) {
     meta.setIdentifiers(new HashSet<>());
   }
   meta.getIdentifiers().addAll(Arrays.asList(ids));
   return this;
 }
Пример #10
0
 public MetaInfoBuilder addSources(String... sources) {
   if (sources == null) {
     return this;
   }
   if (meta.getHasSources() == null) {
     meta.setHasSources(new HashSet<>());
   }
   meta.getHasSources().addAll(Arrays.asList(sources));
   return this;
 }
Пример #11
0
 public MetaInfoBuilder addDescriptions(String... descriptions) {
   if (descriptions == null) {
     return this;
   }
   if (meta.getDescriptions() == null) {
     meta.setDescriptions(new HashSet<>());
   }
   meta.getDescriptions().addAll(Arrays.asList(descriptions));
   return this;
 }
Пример #12
0
 public MetaInfoBuilder setCurrentDate() {
   meta.setDate(new Date());
   return this;
 }
Пример #13
0
 public MetaInfoBuilder setDate(Date date) {
   meta.setDate(date);
   return this;
 }