diff options
Diffstat (limited to 'sca-java-2.x/trunk/modules/contribution')
2 files changed, 4 insertions, 3 deletions
diff --git a/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportProcessor.java b/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportProcessor.java index 1cfb30ac6d..a199f6874c 100644 --- a/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportProcessor.java +++ b/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/java/impl/JavaImportProcessor.java @@ -29,6 +29,7 @@ import javax.xml.stream.XMLStreamWriter; import org.apache.tuscany.sca.contribution.java.JavaImport; import org.apache.tuscany.sca.contribution.java.JavaImportExportFactory; +import org.apache.tuscany.sca.contribution.processor.BaseStAXArtifactProcessor; import org.apache.tuscany.sca.contribution.processor.ContributionReadException; import org.apache.tuscany.sca.contribution.processor.ContributionResolveException; import org.apache.tuscany.sca.contribution.processor.ContributionWriteException; @@ -45,7 +46,7 @@ import org.apache.tuscany.sca.monitor.Problem.Severity; * * @version $Rev$ $Date$ */ -public class JavaImportProcessor implements StAXArtifactProcessor<JavaImport> { +public class JavaImportProcessor extends BaseStAXArtifactProcessor implements StAXArtifactProcessor<JavaImport> { private static final String SCA11_NS = "http://docs.oasis-open.org/ns/opencsa/sca/200912"; private static final QName IMPORT_JAVA = new QName(SCA11_NS, "import.java"); @@ -105,7 +106,7 @@ public class JavaImportProcessor implements StAXArtifactProcessor<JavaImport> { } else javaImport.setPackage(packageName); - String location = reader.getAttributeValue(null, LOCATION); + String location = getURIString(reader, LOCATION); javaImport.setLocation(location); } break; diff --git a/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceImportProcessor.java b/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceImportProcessor.java index 120689c28e..f9ba0c40fd 100644 --- a/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceImportProcessor.java +++ b/sca-java-2.x/trunk/modules/contribution/src/main/java/org/apache/tuscany/sca/contribution/namespace/impl/NamespaceImportProcessor.java @@ -116,7 +116,7 @@ public class NamespaceImportProcessor extends BaseStAXArtifactProcessor implemen namespaceImport.setNamespace(ns); } - String location = reader.getAttributeValue(null, LOCATION); + String location = getURIString(reader, LOCATION); if (location != null) { namespaceImport.setLocation(location); } |