Skip to content

Commit

Permalink
Store Node in Declaration to allow retraversal after postprocessing. w…
Browse files Browse the repository at this point in the history
  • Loading branch information
faerietree committed Mar 18, 2017
1 parent e8d8248 commit c103ef1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 1 deletion.
19 changes: 19 additions & 0 deletions src/core/Declaration.java
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,14 @@ public class Declaration {
*/
private IndexNumber index;

/**
* The node where this declaration was found if any.
* (To allow reprocessing the DOM after filtering | postprocessing
* declarations.)
*/
//private String xpath;
private org.w3c.dom.Node node;




Expand Down Expand Up @@ -270,6 +278,7 @@ public String getMatchGroup() {
return matchGroup;
}


/**
* @return the index
*/
Expand Down Expand Up @@ -315,6 +324,16 @@ public boolean hasIndex() {
return false;
}



/**
* Get the node where this declaration has been found.
*/
public org.w3c.dom.Node getNode() {
return this.node;
}


/**
* Get a string representation of the declaration.
*
Expand Down
2 changes: 1 addition & 1 deletion src/db/MysqlHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ public class MysqlHelper {

//final String url = "jdbc:mysql://localhost:3306/";
//
private final String db = "core";
private final String db = "aufgaben_db";

private final String user = "root";

Expand Down

0 comments on commit c103ef1

Please sign in to comment.