Ejemplo n.º 1
0
 /**
  * Process all of the {@literal "user"} XML resources.
  *
  * @param xmlResources Resource collection. Cannot be {@code null}.
  * @return {@link Set} of {@link RemoteAddeEntry}s contained within {@code resource}.
  */
 private Set<AddeEntry> extractUserEntries(final XmlResourceCollection xmlResources) {
   int rcSize = xmlResources.size();
   Set<AddeEntry> entries = newLinkedHashSet(rcSize);
   for (int i = 0; i < rcSize; i++) {
     Element root = xmlResources.getRoot(i);
     if (root == null) {
       continue;
     }
     entries.addAll(EntryTransforms.convertUserXml(root));
   }
   return entries;
 }