/** * @see org.artificer.common.visitors.HierarchicalArtifactVisitor#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.XsdDocument) */ @Override public void visit(XsdDocument artifact) { super.visit(artifact); try { createProperty("targetNamespace", artifact.getTargetNamespace()); } catch (Exception e) { error = e; } }
/** * @see org.overlord.sramp.common.visitors.HierarchicalArtifactVisitorAdapter#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.XsdDocument) */ @Override public void visit(XsdDocument artifact) { super.visit(artifact); try { setProperty("sramp:targetNamespace", artifact.getTargetNamespace()); //$NON-NLS-1$ } catch (Exception e) { error = e; } }
} else if (artifact instanceof XsdDocument) { XsdDocument xsdDocument = (XsdDocument) artifact; String[] key = new String[] { xsdDocument.getTargetNamespace(), xsdDocument.getName() }; xsdDocumentIndex.put(key, xsdDocument); } else if (artifact instanceof WsdlDocument) {
Assert.assertNotNull(xsd); Assert.assertEquals("jcr-sample-externalrefs.xsd", xsd.getName()); //$NON-NLS-1$ Assert.assertEquals("urn:s-ramp:test:jcr-sample-externalrefs:types", xsd.getTargetNamespace()); //$NON-NLS-1$
Assert.assertEquals("urn:s-ramp:test:jcr-sample-externalrefs:types", xsd.getTargetNamespace()); //$NON-NLS-1$