/** * @see org.artificer.common.visitors.HierarchicalArtifactVisitor#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.ElementDeclaration) */ @Override public void visit(ElementDeclaration artifact) { super.visit(artifact); try { createProperty("namespace", artifact.getNamespace()); createProperty("ncName", artifact.getNCName()); } catch (Exception e) { throw new RuntimeException(e); } }
/** * @see org.overlord.sramp.common.visitors.HierarchicalArtifactVisitorAdapter#visit(org.oasis_open.docs.s_ramp.ns.s_ramp_v1.ElementDeclaration) */ @Override public void visit(ElementDeclaration artifact) { super.visit(artifact); try { setProperty("sramp:namespace", artifact.getNamespace()); //$NON-NLS-1$ setProperty("sramp:ncName", artifact.getNCName()); //$NON-NLS-1$ } catch (Exception e) { throw new RuntimeException(e); } }
if (artifact instanceof ElementDeclaration) { ElementDeclaration element = (ElementDeclaration) artifact; QName key = new QName(element.getNamespace(), element.getNCName()); elementIndex.put(key, element); } else if (artifact instanceof SimpleTypeDeclaration) {
if (artifact instanceof ElementDeclaration) { ElementDeclaration element = (ElementDeclaration) artifact; QName key = new QName(element.getNamespace(), element.getNCName()); elementIndex.put(key, element); } else if (artifact instanceof SimpleTypeDeclaration) {
elementNames.add(((ElementDeclaration) dat).getNCName()); } else if (dat instanceof AttributeDeclaration) { numAttributes++;
} else if (artifact instanceof ElementDeclaration) { ElementDeclaration arty = (ElementDeclaration) artifact; index.put(new QName(arty.getArtifactType().toString(), arty.getNCName()), artifact); } else if (artifact instanceof AttributeDeclaration) { AttributeDeclaration arty = (AttributeDeclaration) artifact; Assert.assertNotNull(artifact); Assert.assertEquals("findResponse", artifact.getName()); //$NON-NLS-1$ Assert.assertEquals("findResponse", ((ElementDeclaration) artifact).getNCName()); //$NON-NLS-1$ Assert.assertEquals("http://ewittman.redhat.com/sample/2012/09/wsdl/sample.wsdl/types", ((ElementDeclaration) artifact).getNamespace()); //$NON-NLS-1$