This repository has been archived by the owner on Oct 23, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 24
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
90 additions
and
77 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,24 +4,89 @@ | |
|
||
<groupId>gov.adlnet.xapi</groupId> | ||
<artifactId>xapi</artifactId> | ||
<version>1.0-SNAPSHOT</version> | ||
<version>0.1.0</version> | ||
<packaging>jar</packaging> | ||
<name>xapi</name> | ||
<url>http://maven.apache.org</url> | ||
<licenses> | ||
<license> | ||
<name>Apache License, Version 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
<scm> | ||
<url>https://github.com/adlnet/jxapi</url> | ||
</scm> | ||
<name>xAPI</name> | ||
<description> | ||
Java xAPI client | ||
</description> | ||
<url>https://github.com/adlnet/jxapi</url> | ||
<licenses> | ||
<license> | ||
<name>Apache License, Version 2.0</name> | ||
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url> | ||
<distribution>repo</distribution> | ||
</license> | ||
</licenses> | ||
<scm> | ||
<connection>scm:git:git://github.com/adlnet/jxapi.git</connection> | ||
<developerConnection>scm:git:[email protected]:adlnet/jxapi.git</developerConnection> | ||
<url>https://github.com/adlnet/jxapi</url> | ||
<tag>HEAD</tag> | ||
</scm> | ||
<issueManagement> | ||
<system>GitHub</system> | ||
<url>https://github.com/adlnet/jxapi/issues</url> | ||
</issueManagement> | ||
<repositories> | ||
<repository> | ||
<id>sonatype-nexus-snapshots</id> | ||
<name>Sonatype Nexus Snapshots</name> | ||
<url>http://oss.sonatype.org/content/repositories/snapshots</url> | ||
<releases> | ||
<enabled>false</enabled> | ||
</releases> | ||
<snapshots> | ||
<enabled>true</enabled> | ||
</snapshots> | ||
</repository> | ||
</repositories> | ||
|
||
<distributionManagement> | ||
<snapshotRepository> | ||
<id>sonatype-nexus-snapshots</id> | ||
<name>Sonatype Nexus Snapshots</name> | ||
<url>http://oss.sonatype.org/content/repositories/snapshots</url> | ||
</snapshotRepository> | ||
<repository> | ||
<id>sonatype-nexus-staging</id> | ||
<name>Nexus Release Repository</name> | ||
<url>http://oss.sonatype.org/service/local/staging/deploy/maven2/</url> | ||
</repository> | ||
</distributionManagement> | ||
<profiles> | ||
<profile> | ||
<id>release-sign-artifacts</id> | ||
<activation> | ||
<property> | ||
<name>performRelease</name> | ||
<value>true</value> | ||
</property> | ||
</activation> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<version>1.4</version> | ||
<executions> | ||
<execution> | ||
<id>sign-artifacts</id> | ||
<phase>verify</phase> | ||
<goals> | ||
<goal>sign</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
<version>3.1</version> | ||
<configuration> | ||
|
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 |
---|---|---|
@@ -1,22 +1,19 @@ | ||
package gov.adlnet.xapi.model; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map.Entry; | ||
import com.google.gson.*; | ||
public class Definition { | ||
private HashMap<String, String> extensions; | ||
private JsonObject extensions; | ||
public JsonElement serialize(){ | ||
JsonObject extensionsObj = new JsonObject(); | ||
for (Entry<String, String> item : extensions.entrySet()){ | ||
extensionsObj.addProperty(item.getKey(), item.getValue()); | ||
} | ||
return extensionsObj; | ||
|
||
JsonObject self = new JsonObject(); | ||
self.add("extensions", extensions); | ||
return self; | ||
} | ||
public HashMap<String, String> getExtensions() { | ||
public JsonObject getExtensions() { | ||
return extensions; | ||
} | ||
|
||
public void setExtensions(HashMap<String, String> extensions) { | ||
public void setExtensions(JsonObject extensions) { | ||
this.extensions = extensions; | ||
} | ||
} |
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