Skip to content
This repository has been archived by the owner on Jul 4, 2021. It is now read-only.

Commit

Permalink
package name com.metanorma renamed to org.metanorma
Browse files Browse the repository at this point in the history
  • Loading branch information
Intelligent2013 committed Jul 2, 2021
1 parent 24905a9 commit ebbacbd
Show file tree
Hide file tree
Showing 20 changed files with 853 additions and 851 deletions.
2 changes: 1 addition & 1 deletion README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ Update version in `pom.xml`, e.g.:

[source,xml]
----
<groupId>com.metanorma</groupId>
<groupId>org.metanorma</groupId>
<artifactId>mn2sts</artifactId>
<version>1.9</version>
<name>Metanorma MN XML to NISO STS XML converter</name>
Expand Down
8 changes: 4 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.metanorma</groupId>
<groupId>org.metanorma</groupId>
<artifactId>mn2sts</artifactId>
<version>1.9</version>
<name>Metanorma XML to NISO STS XML converter</name>
<packaging>jar</packaging>
<url>https://www.metanorma.com</url>
<url>https://www.metanorma.org</url>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<jarname>${project.artifactId}-${project.version}.jar</jarname>
<exec.mainClass>com.metanorma.mn2sts</exec.mainClass>
<exec.mainClass>org.metanorma.mn2sts</exec.mainClass>
<junit.version>5.4.2</junit.version>
</properties>
<distributionManagement>
Expand Down Expand Up @@ -55,7 +55,7 @@
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<manifestEntries>
<Main-Class>com.metanorma.mn2sts</Main-Class>
<Main-Class>org.metanorma.mn2sts</Main-Class>
<Implementation-Version>${project.version}</Implementation-Version>
</manifestEntries>
</transformer>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.metanorma;
package org.metanorma;

/**
*
Expand Down
Original file line number Diff line number Diff line change
@@ -1,106 +1,106 @@
package com.metanorma;

import com.metanorma.utils.LoggerHelper;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.w3c.dom.ls.LSInput;


public class LSInputImpl implements LSInput {

private static final Logger logger = Logger.getLogger(LoggerHelper.LOGGER_NAME);

private String publicId;

private String systemId;

public String getPublicId() {
return publicId;
}

public void setPublicId(String publicId) {
this.publicId = publicId;
}

public String getBaseURI() {
return null;
}

public InputStream getByteStream() {
return null;
}

public boolean getCertifiedText() {
return false;
}

public Reader getCharacterStream() {
return null;
}

public String getEncoding() {
return null;
}

public String getStringData() {
synchronized (inputStream) {
try {
byte[] input = new byte[inputStream.available()];
inputStream.read(input);
String contents = new String(input);
return contents;
} catch (IOException e) {
//e.printStackTrace();
//System.out.println("Exception " + e);
logger.log(Level.INFO, "Exception {0}", e);
return null;
}
}
}

public void setBaseURI(String baseURI) {
}

public void setByteStream(InputStream byteStream) {
}

public void setCertifiedText(boolean certifiedText) {
}

public void setCharacterStream(Reader characterStream) {
}

public void setEncoding(String encoding) {
}

public void setStringData(String stringData) {
}

public String getSystemId() {
return systemId;
}

public void setSystemId(String systemId) {
this.systemId = systemId;
}

public BufferedInputStream getInputStream() {
return inputStream;
}

public void setInputStream(BufferedInputStream inputStream) {
this.inputStream = inputStream;
}

private BufferedInputStream inputStream;

public LSInputImpl(String publicId, String sysId, InputStream input) {
this.publicId = publicId;
this.systemId = sysId;
this.inputStream = new BufferedInputStream(input);
}
package org.metanorma;

import org.metanorma.utils.LoggerHelper;
import java.io.BufferedInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.Reader;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.w3c.dom.ls.LSInput;


public class LSInputImpl implements LSInput {

private static final Logger logger = Logger.getLogger(LoggerHelper.LOGGER_NAME);

private String publicId;

private String systemId;

public String getPublicId() {
return publicId;
}

public void setPublicId(String publicId) {
this.publicId = publicId;
}

public String getBaseURI() {
return null;
}

public InputStream getByteStream() {
return null;
}

public boolean getCertifiedText() {
return false;
}

public Reader getCharacterStream() {
return null;
}

public String getEncoding() {
return null;
}

public String getStringData() {
synchronized (inputStream) {
try {
byte[] input = new byte[inputStream.available()];
inputStream.read(input);
String contents = new String(input);
return contents;
} catch (IOException e) {
//e.printStackTrace();
//System.out.println("Exception " + e);
logger.log(Level.INFO, "Exception {0}", e);
return null;
}
}
}

public void setBaseURI(String baseURI) {
}

public void setByteStream(InputStream byteStream) {
}

public void setCertifiedText(boolean certifiedText) {
}

public void setCharacterStream(Reader characterStream) {
}

public void setEncoding(String encoding) {
}

public void setStringData(String stringData) {
}

public String getSystemId() {
return systemId;
}

public void setSystemId(String systemId) {
this.systemId = systemId;
}

public BufferedInputStream getInputStream() {
return inputStream;
}

public void setInputStream(BufferedInputStream inputStream) {
this.inputStream = inputStream;
}

private BufferedInputStream inputStream;

public LSInputImpl(String publicId, String sysId, InputStream input) {
this.publicId = publicId;
this.systemId = sysId;
this.inputStream = new BufferedInputStream(input);
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package com.metanorma;


public enum OutputFormatEnum {
NISO, ISO
}
package org.metanorma;


public enum OutputFormatEnum {
NISO, ISO
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package com.metanorma;
package org.metanorma;

import java.util.regex.Matcher;
import java.util.regex.Pattern;
Expand Down
Loading

0 comments on commit ebbacbd

Please sign in to comment.