Ejemplo n.º 1
0
 /**
  * Checks whether the provided document node is an XML representation of an owner name which is
  * one of those declared in the members.xml document.
  *
  * @param node Metadata document element to check.
  * @return
  */
 public boolean isOwnerName(Node node) {
   if (OrganizationName.isOrganizationName(node)) {
     OrganizationName org = new OrganizationName(node);
     return ownerNames.contains(org.getName());
   }
   return false;
 }
Ejemplo n.º 2
0
 private void collectOwnerNames(Node node) {
   if (OrganizationName.isOrganizationName(node)) {
     OrganizationName org = new OrganizationName(node);
     ownerNames.add(org.getName());
     return;
   }
   NodeList inner = node.getChildNodes();
   for (int i = 0; i < inner.getLength(); i++) {
     collectOwnerNames(inner.item(i));
   }
 }