diff options
author | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-04 23:28:53 +0000 |
---|---|---|
committer | lresende <lresende@13f79535-47bb-0310-9956-ffa450edef68> | 2009-03-04 23:28:53 +0000 |
commit | aefcaedbf3dd61adbd4ddfddefe592c217ebcbbe (patch) | |
tree | 565586654cfa2c3054727485a589fb1a70e7ba66 /java/sca/modules/interface-java-xml/src/main | |
parent | 099a783bef62a0b6084aad524011d8e26bad9b75 (diff) |
Moving interface-java to use OASIS namespace/schema
git-svn-id: http://svn.us.apache.org/repos/asf/tuscany@750227 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'java/sca/modules/interface-java-xml/src/main')
3 files changed, 5 insertions, 5 deletions
diff --git a/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaConstants.java b/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaConstants.java index 2b45eac7bc..2c0fb7b364 100644 --- a/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaConstants.java +++ b/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaConstants.java @@ -26,9 +26,9 @@ import javax.xml.namespace.QName; * @version $Rev$ $Date$ */ public interface JavaConstants { - String SCA10_NS = "http://www.osoa.org/xmlns/sca/1.0"; + String SCA11_NS = "http://docs.oasis-open.org/ns/opencsa/sca/200712"; String INTERFACE_JAVA = "interface.java"; - QName INTERFACE_JAVA_QNAME = new QName(SCA10_NS, "interface.java"); + QName INTERFACE_JAVA_QNAME = new QName(SCA11_NS, "interface.java"); String INTERFACE = "interface"; String CALLBACK_INTERFACE = "callbackInterface"; diff --git a/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java b/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java index 23de150374..dec635083f 100644 --- a/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java +++ b/java/sca/modules/interface-java-xml/src/main/java/org/apache/tuscany/sca/interfacedef/java/xml/JavaInterfaceProcessor.java @@ -46,7 +46,7 @@ import org.apache.tuscany.sca.monitor.Problem.Severity; * @version $Rev$ $Date$ */ public class JavaInterfaceProcessor implements StAXArtifactProcessor<JavaInterfaceContract>, JavaConstants { - private static final String SCA10_NS = "http://www.osoa.org/xmlns/sca/1.0"; + private static final String SCA11_NS = "http://docs.oasis-open.org/ns/opencsa/sca/200712"; private JavaInterfaceFactory javaFactory; private Monitor monitor; @@ -118,7 +118,7 @@ public class JavaInterfaceProcessor implements StAXArtifactProcessor<JavaInterfa public void write(JavaInterfaceContract javaInterfaceContract, XMLStreamWriter writer) throws ContributionWriteException, XMLStreamException { // Write an <interface.java> - writer.writeStartElement(SCA10_NS, INTERFACE_JAVA); + writer.writeStartElement(SCA11_NS, INTERFACE_JAVA); JavaInterface javaInterface = (JavaInterface)javaInterfaceContract.getInterface(); if (javaInterface != null && javaInterface.getName() != null) { diff --git a/java/sca/modules/interface-java-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor b/java/sca/modules/interface-java-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor index b3e52e5709..bca46e7e71 100644 --- a/java/sca/modules/interface-java-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor +++ b/java/sca/modules/interface-java-xml/src/main/resources/META-INF/services/org.apache.tuscany.sca.contribution.processor.StAXArtifactProcessor @@ -16,4 +16,4 @@ # under the License. # Implementation class for the artifact processor extension -org.apache.tuscany.sca.interfacedef.java.xml.JavaInterfaceProcessor;qname=http://www.osoa.org/xmlns/sca/1.0#interface.java,model=org.apache.tuscany.sca.interfacedef.java.JavaInterfaceContract +org.apache.tuscany.sca.interfacedef.java.xml.JavaInterfaceProcessor;qname=http://docs.oasis-open.org/ns/opencsa/sca/200712#interface.java,model=org.apache.tuscany.sca.interfacedef.java.JavaInterfaceContract |