protected boolean match(XSSchema d) { return d.getTargetNamespace().equals(uri); } }
protected boolean match(XSSchema d) { return d.getTargetNamespace().equals(uri); } }
protected boolean match(XSSchema d) { return d.getTargetNamespace().equals(uri); } }
protected boolean match(XSSchema d) { return d.getTargetNamespace().equals(uri); } }
protected boolean match(XSSchema d) { return d.getTargetNamespace().equals(uri); } }
/** * @see com.sun.xml.xsom.visitor.XSFunction#schema(XSSchema) */ public String schema(XSSchema schema) { return nameGetter.schema( schema ) + " \"" + schema.getTargetNamespace()+"\""; }
/** * @see com.sun.xml.xsom.visitor.XSFunction#schema(XSSchema) */ public String schema(XSSchema schema) { return nameGetter.schema( schema ) + " \"" + schema.getTargetNamespace()+"\""; }
/** * @see com.sun.xml.xsom.visitor.XSFunction#schema(XSSchema) */ public String schema(XSSchema schema) { return nameGetter.schema( schema ) + " \"" + schema.getTargetNamespace()+"\""; }
/** * @see com.sun.xml.xsom.visitor.XSFunction#schema(XSSchema) */ public String schema(XSSchema schema) { return nameGetter.schema( schema ) + " \"" + schema.getTargetNamespace()+"\""; }
/** * @see com.sun.xml.xsom.visitor.XSFunction#schema(XSSchema) */ public String schema(XSSchema schema) { return nameGetter.schema( schema ) + " \"" + schema.getTargetNamespace()+"\""; }
private XSSchemaSet getXSSchemaSet(String namespaceURI) { for (XSSchemaSet schemaSet : schemaSets) for (XSSchema schema : schemaSet.getSchemas()) if (schema.getTargetNamespace().equals(namespaceURI)) return schemaSet; return null; }
protected void collectReferencedXSD(XSSchemaSet xsSchemas) { Collection<XSSchema> schemas = xsSchemas.getSchemas(); String ns; for (XSSchema s : schemas) { ns = s.getTargetNamespace(); if (ns.length() <= 0 || ns.equals(NS_XSD)) { continue; } String systemId = s.getLocator().getSystemId(); if (systemId != null && systemId.startsWith("file:/")) { String filePath = systemId.substring(6); if (!referencedXSD.contains(filePath)) { referencedXSD.add(filePath); } } } }
// iterate each XSSchema object. XSSchema is a per-namespace schema. Iterator itr = sset.iterateSchema(); while( itr.hasNext() ) { XSSchema s = (XSSchema)itr.next(); System.out.println("Target namespace: "+s.getTargetNamespace()); Iterator jtr = s.iterateElementDecls(); while( jtr.hasNext() ) { XSElementDecl e = (XSElementDecl)jtr.next(); System.out.print( e.getName() ); if( e.isAbstract() ) System.out.print(" (abstract)"); System.out.println(); } }
/** * Declare the target namespace as a package and collect the top-level comments in it * @param schema not null */ private void declareTargetNamespacePackage(XSSchema schema) { UmlPackage namespace; namespace = factory.constructPackage( formatPackageName( schema.getTargetNamespace() ) ); assignDocumentation( namespace, schema ); }
@Override public void elementDecl(XSElementDecl decl) { if (localName.equals(decl.getName()) && schema.getTargetNamespace().equals(decl.getTargetNamespace())) elements.add(new ElementDecl(decl, Schema.this)); if (decl.getType().isLocal() && shouldWalk() && addToVisited(decl.getType())) decl.getType().visit(this); }
/** * Generates <code>package.html</code> if the customization * says so. */ private void processPackageJavadoc( XSSchema s ) { // look for the schema-wide customization BISchemaBinding cust = getBindInfo(s).get(BISchemaBinding.class); if(cust==null) return; // not present cust.markAsAcknowledged(); if( cust.getJavadoc()==null ) return; // no javadoc customization // produce a HTML file JTextFile html = new JTextFile("package.html"); html.setContents(cust.getJavadoc()); getClassSelector().getPackage(s.getTargetNamespace()).addResourceFile(html); }
/** * Generates <code>package.html</code> if the customization * says so. */ private void processPackageJavadoc( XSSchema s ) { // look for the schema-wide customization BISchemaBinding cust = getBindInfo(s).get(BISchemaBinding.class); if(cust==null) return; // not present cust.markAsAcknowledged(); if( cust.getJavadoc()==null ) return; // no javadoc customization // produce a HTML file JTextFile html = new JTextFile("package.html"); html.setContents(cust.getJavadoc()); getClassSelector().getPackage(s.getTargetNamespace()).addResourceFile(html); }
/** * Generates <code>package.html</code> if the customization * says so. */ private void processPackageJavadoc( XSSchema s ) { // look for the schema-wide customization BISchemaBinding cust = getBindInfo(s).get(BISchemaBinding.class); if(cust==null) return; // not present cust.markAsAcknowledged(); if( cust.getJavadoc()==null ) return; // no javadoc customization // produce a HTML file JTextFile html = new JTextFile("package.html"); html.setContents(cust.getJavadoc()); getClassSelector().getPackage(s.getTargetNamespace()).addResourceFile(html); }
/** * Generates <code>package.html</code> if the customization * says so. */ private void processPackageJavadoc( XSSchema s ) { // look for the schema-wide customization BISchemaBinding cust = getBindInfo(s).get(BISchemaBinding.class); if(cust==null) return; // not present cust.markAsAcknowledged(); if( cust.getJavadoc()==null ) return; // no javadoc customization // produce a HTML file JTextFile html = new JTextFile("package.html"); html.setContents(cust.getJavadoc()); getClassSelector().getPackage(s.getTargetNamespace()).addResourceFile(html); }
/** * Generates <code>package.html</code> if the customization * says so. */ private void processPackageJavadoc( XSSchema s ) { // look for the schema-wide customization BISchemaBinding cust = getBindInfo(s).get(BISchemaBinding.class); if(cust==null) return; // not present cust.markAsAcknowledged(); if( cust.getJavadoc()==null ) return; // no javadoc customization // produce a HTML file JTextFile html = new JTextFile("package.html"); html.setContents(cust.getJavadoc()); getClassSelector().getPackage(s.getTargetNamespace()).addResourceFile(html); }