Skip to content

Commit 4546b13

Browse files
committed
1 parent 71b4519 commit 4546b13

5 files changed

Lines changed: 120 additions & 0 deletions

File tree

obix/.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
/.settings/
2+
/.classpath
3+
/.project

obix/pom.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" 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">
2+
<modelVersion>4.0.0</modelVersion>
3+
<parent>
4+
<groupId>tec.uom.tools</groupId>
5+
<artifactId>uom-tools</artifactId>
6+
<version>0.1-SNAPSHOT</version>
7+
</parent>
8+
<artifactId>uom-obix-tools</artifactId>
9+
<name>Units of Measurement Tools for oBiX</name>
10+
<description>UOM Tools for oBIX (Open Building Information Xchange)</description>
11+
</project>
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
/**
2+
* Unit-API - Units of Measurement API for Java
3+
* Copyright (c) 2005-2015, Jean-Marie Dautelle, Werner Keil, V2COM.
4+
*
5+
* All rights reserved.
6+
*
7+
* Redistribution and use in source and binary forms, with or without modification,
8+
* are permitted provided that the following conditions are met:
9+
*
10+
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
11+
*
12+
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
13+
*
14+
* 3. Neither the name of JSR-363 nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
15+
*
16+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
18+
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
25+
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26+
*/
27+
package tec.uom.tools.obix;
28+
29+
import java.io.InputStream;
30+
import java.io.OutputStream;
31+
import java.util.Arrays;
32+
import java.util.Collections;
33+
import java.util.HashSet;
34+
import java.util.Set;
35+
36+
import javax.lang.model.SourceVersion;
37+
import javax.tools.Tool;
38+
39+
/**
40+
* @author Werner
41+
*
42+
*/
43+
public class ObixImporter implements Tool {
44+
45+
/* (non-Javadoc)
46+
* @see javax.tools.Tool#run(java.io.InputStream, java.io.OutputStream, java.io.OutputStream, java.lang.String[])
47+
*/
48+
@Override
49+
public int run(InputStream in, OutputStream out, OutputStream err,
50+
String... arguments) {
51+
// TODO Auto-generated method stub
52+
return 0;
53+
}
54+
55+
/* (non-Javadoc)
56+
* @see javax.tools.Tool#getSourceVersions()
57+
*/
58+
@Override
59+
public Set<SourceVersion> getSourceVersions() {
60+
return Collections.unmodifiableSet(new HashSet<SourceVersion>(Arrays.asList(
61+
new SourceVersion[]{SourceVersion.RELEASE_5, SourceVersion.RELEASE_6,
62+
SourceVersion.RELEASE_7 }
63+
)));
64+
}
65+
66+
/**
67+
* @param args
68+
*/
69+
public static void main(String[] args) {
70+
// TODO Auto-generated method stub
71+
72+
}
73+
74+
}
Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
/**
2+
* Unit-API - Units of Measurement API for Java
3+
* Copyright (c) 2005-2015, Jean-Marie Dautelle, Werner Keil, V2COM.
4+
*
5+
* All rights reserved.
6+
*
7+
* Redistribution and use in source and binary forms, with or without modification,
8+
* are permitted provided that the following conditions are met:
9+
*
10+
* 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
11+
*
12+
* 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
13+
*
14+
* 3. Neither the name of JSR-363 nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
15+
*
16+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
17+
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
18+
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
19+
* ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
20+
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
21+
* (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
22+
* LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
23+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24+
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
25+
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26+
*/
27+
/**
28+
* @author Werner
29+
*
30+
*/
31+
package tec.uom.tools.obix;

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,5 +135,6 @@
135135
</profiles>
136136
<modules>
137137
<module>cldr</module>
138+
<module>obix</module>
138139
</modules>
139140
</project>

0 commit comments

Comments
 (0)