本文整理了Java中org.eclipse.xsd.XSDImport.getNamespace()
方法的一些代码示例,展示了XSDImport.getNamespace()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDImport.getNamespace()
方法的具体详情如下:
包路径:org.eclipse.xsd.XSDImport
类名称:XSDImport
方法名:getNamespace
[英]Returns the value of the 'Namespace' attribute.
This concrete attribute represents the value of the namespace attribute.
[中]返回“Namespace”属性的值。
这个具体属性表示namespace属性的值。
代码示例来源:origin: geotools/geotools
XSDImport imprt = (XSDImport) content;
if (!added.contains(imprt.getNamespace())) {
imports.add(imprt);
added.add(imprt.getNamespace());
LOGGER.info(
"Schema import wasn't resolved: "
+ imprt.getNamespace()
+ " declared location: "
+ imprt.getSchemaLocation());
代码示例来源:origin: geotools/geotools
XSDImport imprt = (XSDImport) im.next();
if (config.getNamespaceURI().equals(imprt.getNamespace())) {
found = true;
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
public String getText()
{
XSDSchemaDirective directive = (XSDSchemaDirective) target;
String result = "";
String location = directive.getSchemaLocation();
if (location == null || location.equals("") )
{
result = "(" + Messages._UI_LABEL_NO_LOCATION_SPECIFIED + ")";
}
else
{
result = location;
}
// only show the namespace when the directiave is an import
// (otherwise the namespace is obviously the same as the containing schema's)
if (directive instanceof XSDImport)
{
XSDImport importObj = (XSDImport) directive;
String namespace = importObj.getNamespace();
if (namespace != null)
{
result += " {" + namespace + "}";
}
}
return result;
}
代码示例来源:origin: org.geotools/gt2-xml-xsd
XSDImport imprt = (XSDImport) content;
if (!added.contains(imprt.getNamespace())) {
imports.add(imprt);
added.add(imprt.getNamespace());
代码示例来源:origin: org.geotools/gt2-xml-core
XSDImport imprt = (XSDImport) content;
if (!added.contains(imprt.getNamespace())) {
imports.add(imprt);
added.add(imprt.getNamespace());
代码示例来源:origin: org.geotools.xsd/gt-core
XSDImport imprt = (XSDImport) content;
if (!added.contains(imprt.getNamespace())) {
imports.add(imprt);
added.add(imprt.getNamespace());
LOGGER.info("Schema import wasn't resolved: " + imprt.getNamespace()
+ " declared location: " + imprt.getSchemaLocation());
}else{
代码示例来源:origin: stackoverflow.com
final XSDResourceImpl rsrc = new XSDResourceImpl(URI.createFileURI(xsdFileWithPath));
rsrc.load(new HashMap());
final XSDSchema schema = rsrc.getSchema();
for (Object content : schema.getContents())
{
if (content instanceof XSDImport)
{
XSDImport xsdImport = (XSDImport) content;
xsdImport.resolveTypeDefinition(xsdImport.getNamespace(), "");
}
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
public void updateMapAfterDelete(XSDImport deletedNode)
{
String ns = deletedNode.getNamespace();
if (ns != null)
{
String prefix = getPrefix(ns, false);
if (prefix != null)
{
prefix = prefix.trim();
}
String xmlnsAttr = (prefix == "") ? "xmlns" : "xmlns:" + prefix;
if (prefix == "")
{
prefix = null;
}
if (xsdSchema != null)
{
Map map = xsdSchema.getQNamePrefixToNamespaceMap();
map.remove(prefix);
Element schemaElement = xsdSchema.getElement();
schemaElement.removeAttribute(xmlnsAttr);
}
}
}
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
String importNamespace = xsdImport.getNamespace();
if (namespace == null ? importNamespace == null || "".equals(importNamespace): namespace.equals(importNamespace))
代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator
String importNamespace = theImport.getNamespace();
if (WSDLConstants.isMatchingNamespace(namespace, importNamespace))
代码示例来源:origin: org.eclipse/org.eclipse.xsd
String importNamespace = xsdImport.getNamespace();
if (namespace == null ? importNamespace == null || "".equals(importNamespace): namespace.equals(importNamespace))
代码示例来源:origin: org.eclipse/org.eclipse.xsd
if (namespace == null ? xsdImport.getNamespace() == null : namespace.equals(xsdImport.getNamespace()))
代码示例来源:origin: org.eclipse/org.eclipse.xsd
xsdImport.resolveTypeDefinition(xsdImport.getNamespace(), "");
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
if (namespace == null ? xsdImport.getNamespace() == null : namespace.equals(xsdImport.getNamespace()))
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
xsdImport.resolveTypeDefinition(xsdImport.getNamespace(), "");
代码示例来源:origin: org.geotools/gt2-xml-core
XSDImport imprt = (XSDImport) im.next();
if (config.getNamespaceURI().equals(imprt.getNamespace())) {
found = true;
代码示例来源:origin: org.geoserver/gs-wfs
if (gmlNamespace.equals(imprt.getNamespace())) {
i.remove();
代码示例来源:origin: org.geotools.xsd/gt-core
XSDImport imprt = (XSDImport) im.next();
if (config.getNamespaceURI().equals(imprt.getNamespace())) {
found = true;
代码示例来源:origin: org.geotools/gt2-xml-xsd
for ( Iterator im = imports.iterator(); im.hasNext(); ) {
XSDImport imprt = (XSDImport) im.next();
if ( config.getNamespaceURI().equals( imprt.getNamespace() ) ) {
found = true;
break O;
内容来源于网络,如有侵权,请联系作者删除!