Skip to content

Commit 9bf96b7

Browse files
committed
Updated content
1 parent 53b55c4 commit 9bf96b7

6 files changed

Lines changed: 38 additions & 8 deletions

File tree

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.DS_Strore
2-
/bin/
2+
/bin/
3+
/.scannerwork/

README.md

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,17 @@
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+
```

lib/xmljava.jar

19 Bytes
Binary file not shown.

sonar-project.properties

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
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

src/com/maxprograms/xml/Constants.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,5 @@
1515
public 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
}

src/com/maxprograms/xml/ContentModel.java

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,9 @@
1111
*******************************************************************************/
1212
package 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
}

0 commit comments

Comments
 (0)