File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11.DS_Strore
2- /bin /
2+ /bin /
3+ /.scannerwork /
Original file line number Diff line number Diff line change 11# XMLJava
22
3- Custom library for handling XML in [ Maxprograms] ( https://maxprograms.com ) projects.
3+ Java library for handling XML in [ Maxprograms] ( https://maxprograms.com ) projects.
44
55## Building
66
7- You need JAVA 17 and [ Apache Ant 1.10.12] ( https://ant.apache.org ) or newer
7+ You need Java 17 and [ Apache Ant 1.10.12] ( https://ant.apache.org ) or newer
88
9- - Checkout this repository
109- Point your JAVA_HOME variable to JDK 17
10+ - Checkout this repository
1111- Run ` ant ` to compile the source code
12+
13+ ``` text
14+ git clone https://github.com/rmraya/XMLJava.git
15+ cd XMLJava
16+ ant
17+ ```
Original file line number Diff line number Diff line change 1+ # must be unique in a given SonarQube instance
2+ sonar.projectKey =XMLJava
3+ # this is the name displayed in the SonarQube UI
4+ sonar.projectName =XMLJava
5+ sonar.projectVersion =1.0.0
6+
7+ # Path is relative to the sonar-project.properties file. Replace "\" by "/" on Windows.
8+ # Since SonarQube 4.2, this property is optional if sonar.modules is set.
9+ # If not set, SonarQube starts looking for source code from the directory containing
10+ # the sonar-project.properties file.
11+ sonar.sources =src
12+ sonar.java.source =17
13+ sonar.java.binaries =bin
14+ sonar.java.libraries =lib
15+ sonar.scm.provider =git
16+
17+ # Encoding of the source code. Default is default system encoding
18+ sonar.sourceEncoding =UTF-8
Original file line number Diff line number Diff line change 1515public class Constants {
1616
1717 public static final String VERSION = "1.0.0" ;
18- public static final String BUILD = "20230105_0852 " ;
18+ public static final String BUILD = "20230109_0740 " ;
1919}
Original file line number Diff line number Diff line change 1111 *******************************************************************************/
1212package com .maxprograms .xml ;
1313
14- public class ContentModel {
14+ import java .io .Serializable ;
15+
16+ public class ContentModel implements Serializable {
1517
1618 public static final String EMPTY = "EMPTY" ;
1719 public static final String ANY = "ANY" ;
@@ -22,11 +24,14 @@ public class ContentModel {
2224 public static final int NONE = 0 ;
2325 public static final int OPTIONAL = 1 ; // ?
2426 public static final int ZEROMANY = 2 ; // *
25- public static final int ONEMANY = 3 ; // +
27+ public static final int ONEMANY = 3 ; // +
28+
29+ public ContentModel () {
30+ }
2631
27-
2832 public static ContentModel parse (String string ) {
2933 // TODO
3034 return new ContentModel ();
3135 }
36+
3237}
You can’t perform that action at this time.
0 commit comments