-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #36 from DILCISBoard/feat/test-parsing
FEAT: Structure file parsing
- Loading branch information
Showing
50 changed files
with
3,887 additions
and
1,027 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
84 changes: 0 additions & 84 deletions
84
src/main/java/eu/dilcis/csip/out/XmlFragmentGenerator.java
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package eu.dilcis.csip.profile; | ||
|
||
import java.util.List; | ||
|
||
import org.xml.sax.Attributes; | ||
|
||
public final class Example { | ||
final String id; | ||
final String label; | ||
final List<String> content; | ||
|
||
private Example(String id, String label, List<String> content) { | ||
this.id = id; | ||
this.label = label; | ||
this.content = content; | ||
} | ||
|
||
static Example fromValues(String id, String label, List<String> content) { | ||
return new Example(id, label, content); | ||
} | ||
|
||
static class Builder extends XmlFragmentGenerator { | ||
private String id; | ||
private String label; | ||
|
||
Builder(Attributes attributes) { | ||
this.id = Utilities.getId(attributes); | ||
this.label = (Utilities.getLabel(attributes)); | ||
} | ||
|
||
Builder id(String id) { | ||
this.id = id; | ||
return this; | ||
} | ||
|
||
Builder label(String label) { | ||
this.label = label; | ||
return this; | ||
} | ||
|
||
Example build() { | ||
return Example.fromValues(id, label, content); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.