本文整理了Java中org.eclipse.xsd.XSDNamedComponent.getURI()
方法的一些代码示例,展示了XSDNamedComponent.getURI()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDNamedComponent.getURI()
方法的具体详情如下:
包路径:org.eclipse.xsd.XSDNamedComponent
类名称:XSDNamedComponent
方法名:getURI
[英]Returns the value of the 'URI' attribute.
This is equivalent to the string
<
#getTargetNamespace()>#<
#getName()>
where a null
target namespace is taken to mean an empty string.
[中]返回“URI”属性的值。
这相当于字符串
<
#getTargetNamespace()>#<
#getName()>
其中null
目标名称空间表示空字符串。
代码示例来源:origin: org.wso2.wsdl.validator/wsdl-validator
protected void changeReference(EReference eReference)
{
if (isReconciling)
return;
super.changeReference(eReference);
Element theElement = getElement();
if (theElement != null)
{
if (eReference == null || eReference == WSDLPackage.Literals.PART__TYPE_DEFINITION)
{
XSDTypeDefinition typeDefinition = getTypeDefinition();
if (typeDefinition != null)
{
niceSetAttributeURIValue(theElement, WSDLConstants.TYPE_ATTRIBUTE, typeDefinition.getURI());
}
}
if (eReference == null || eReference == WSDLPackage.Literals.PART__ELEMENT_DECLARATION)
{
XSDElementDeclaration elementDecl = getElementDeclaration();
if (elementDecl != null)
{
niceSetAttributeURIValue(theElement, WSDLConstants.ELEMENT_ATTRIBUTE, elementDecl.getURI());
}
}
}
}
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
public void validateNoDuplicates(String componentNoun, EList<? extends XSDNamedComponent> xsdNamedComponents)
{
String name = null;
String targetNamespace = null;
for (XSDNamedComponent xsdNamedComponent : xsdNamedComponents)
{
if (xsdNamedComponent.hasNameAndTargetNamespace(name, targetNamespace))
{
getDiagnosticTarget(xsdNamedComponent).createDiagnostic
(XSDDiagnosticSeverity.ERROR_LITERAL,
"coss-schema.2",
XSDPlugin.INSTANCE.getString(componentNoun),
xsdNamedComponent.getURI());
}
name = xsdNamedComponent.getName();
targetNamespace = xsdNamedComponent.getTargetNamespace();
}
}
代码示例来源:origin: org.eclipse/org.eclipse.xsd
public void validateNoDuplicates(String componentNoun, EList<? extends XSDNamedComponent> xsdNamedComponents)
{
String name = null;
String targetNamespace = null;
for (XSDNamedComponent xsdNamedComponent : xsdNamedComponents)
{
if (xsdNamedComponent.hasNameAndTargetNamespace(name, targetNamespace))
{
getDiagnosticTarget(xsdNamedComponent).createDiagnostic
(XSDDiagnosticSeverity.ERROR_LITERAL,
"coss-schema.2",
XSDPlugin.INSTANCE.getString(componentNoun),
xsdNamedComponent.getURI());
}
name = xsdNamedComponent.getName();
targetNamespace = xsdNamedComponent.getTargetNamespace();
}
}
内容来源于网络,如有侵权,请联系作者删除!