热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

com.sun.xml.xsom.XSSchema.getTargetNamespace()方法的使用及代码示例

本文整理了Java中com.sun.xml.xsom.XSSchema.getTargetNamespace()方法的一些代码示例,展示了XSSchema.

本文整理了Java中com.sun.xml.xsom.XSSchema.getTargetNamespace()方法的一些代码示例,展示了XSSchema.getTargetNamespace()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSSchema.getTargetNamespace()方法的具体详情如下:
包路径:com.sun.xml.xsom.XSSchema
类名称:XSSchema
方法名:getTargetNamespace

XSSchema.getTargetNamespace介绍

[英]Gets the target namespace of the schema.
[中]

代码示例

代码示例来源:origin: sun-jaxb/jaxb-xjc

protected boolean match(XSSchema d) {
return d.getTargetNamespace().equals(uri);
}
}

代码示例来源:origin: com.sun.xsom/xsom

protected boolean match(XSSchema d) {
return d.getTargetNamespace().equals(uri);
}
}

代码示例来源:origin: org.glassfish.jaxb/xsom

protected boolean match(XSSchema d) {
return d.getTargetNamespace().equals(uri);
}
}

代码示例来源:origin: org.glassfish.metro/webservices-tools

protected boolean match(XSSchema d) {
return d.getTargetNamespace().equals(uri);
}
}

代码示例来源:origin: yeshodhan/android-jaxb

protected boolean match(XSSchema d) {
return d.getTargetNamespace().equals(uri);
}
}

代码示例来源:origin: yeshodhan/android-jaxb

/**
* @see com.sun.xml.xsom.visitor.XSFunction#schema(XSSchema)
*/
public String schema(XSSchema schema) {
return nameGetter.schema( schema ) + " \"" + schema.getTargetNamespace()+"\"";
}

代码示例来源:origin: org.glassfish.metro/webservices-tools

/**
* @see com.sun.xml.xsom.visitor.XSFunction#schema(XSSchema)
*/
public String schema(XSSchema schema) {
return nameGetter.schema( schema ) + " \"" + schema.getTargetNamespace()+"\"";
}

代码示例来源:origin: sun-jaxb/jaxb-xjc

/**
* @see com.sun.xml.xsom.visitor.XSFunction#schema(XSSchema)
*/
public String schema(XSSchema schema) {
return nameGetter.schema( schema ) + " \"" + schema.getTargetNamespace()+"\"";
}

代码示例来源:origin: com.sun.xsom/xsom

/**
* @see com.sun.xml.xsom.visitor.XSFunction#schema(XSSchema)
*/
public String schema(XSSchema schema) {
return nameGetter.schema( schema ) + " \"" + schema.getTargetNamespace()+"\"";
}

代码示例来源:origin: org.glassfish.jaxb/xsom

/**
* @see com.sun.xml.xsom.visitor.XSFunction#schema(XSSchema)
*/
public String schema(XSSchema schema) {
return nameGetter.schema( schema ) + " \"" + schema.getTargetNamespace()+"\"";
}

代码示例来源:origin: citygml4j/citygml4j

private XSSchemaSet getXSSchemaSet(String namespaceURI) {
for (XSSchemaSet schemaSet : schemaSets)
for (XSSchema schema : schemaSet.getSchemas())
if (schema.getTargetNamespace().equals(namespaceURI))
return schemaSet;
return null;
}

代码示例来源:origin: org.nuxeo.ecm.core/nuxeo-core-schema

protected void collectReferencedXSD(XSSchemaSet xsSchemas) {
Collection 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);
}
}
}
}

代码示例来源:origin: stackoverflow.com

// 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();
}
}

代码示例来源:origin: net.mdatools/modelant.uml13.reverse

/**
* 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 );
}

代码示例来源:origin: citygml4j/citygml4j

@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);
}

代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.jaxb-xjc

/**
* Generates package.html 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);
}

代码示例来源:origin: org.glassfish.metro/webservices-tools

/**
* Generates package.html 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);
}

代码示例来源:origin: sun-jaxb/jaxb-xjc

/**
* Generates package.html 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);
}

代码示例来源:origin: org.andromda.thirdparty.jaxb2_commons/jaxb-xjc

/**
* Generates package.html 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);
}

代码示例来源:origin: apache/servicemix-bundles

/**
* Generates package.html 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);
}

推荐阅读
author-avatar
书友58684991
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有