Skip to content

Commit

Permalink
Make validate() public.
Browse files Browse the repository at this point in the history
  • Loading branch information
mbjones committed Dec 4, 2018
1 parent 41722e3 commit d6c9464
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/java/org/ecoinformatics/eml/EMLValidator.java
Expand Up @@ -44,7 +44,7 @@ private Document parseDocument(InputSource in) throws Exception {
return doc;
}

private boolean validate() {
public boolean validate() {
boolean isValid = true;

// TODO: All EML documents MUST have the 'eml' module as the root
Expand All @@ -65,7 +65,7 @@ private boolean validate() {
// If an `additionalMetadata` element references another using a child `describes` element, another element with that value in its `id` attribute MUST exist in the document
Vector<String> refs = getXPathValues("//annotation[@references]/@references|//references|/describes");
for (String s : refs) {
System.out.println(s);
//System.out.println(s);
if (!ids.contains(s)) {
System.err.println("Invalid: Reference missing from IDs: " + s);
isValid = false;
Expand Down

0 comments on commit d6c9464

Please sign in to comment.