本文整理了Java中org.eclipse.xsd.XSDElementDeclaration.getQName()
方法的一些代码示例,展示了XSDElementDeclaration.getQName()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。XSDElementDeclaration.getQName()
方法的具体详情如下:
包路径:org.eclipse.xsd.XSDElementDeclaration
类名称:XSDElementDeclaration
方法名:getQName
暂无
代码示例来源:origin: geotools/geotools
private boolean hasElement(XSDSchema schema, String elQName) {
boolean elFound = false;
EList<XSDElementDeclaration> elDeclList = schema.getElementDeclarations();
for (XSDElementDeclaration elDecl : elDeclList) {
if (elQName.equals(elDecl.getQName())) {
elFound = true;
}
}
return elFound;
}
代码示例来源:origin: geotools/geotools
+ property.getQName()
+ ", using XSAnyTypeBinding.");
bindings.add(new XSAnyTypeBinding());
代码示例来源:origin: org.eclipse.xsd/org.eclipse.xsd
@Override
public String getQName()
{
XSDElementDeclaration resolvedElementDeclaration = getResolvedElementDeclaration();
if (resolvedElementDeclaration == this)
{
return super.getQName();
}
else
{
return resolvedElementDeclaration.getQName(this);
}
}
代码示例来源:origin: org.eclipse/org.eclipse.xsd
@Override
public String getQName()
{
XSDElementDeclaration resolvedElementDeclaration = getResolvedElementDeclaration();
if (resolvedElementDeclaration == this)
{
return super.getQName();
}
else
{
return resolvedElementDeclaration.getQName(this);
}
}
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
public java.util.List getGlobalElements()
{
Vector items = new Vector();
if (xsdSchema != null)
{
updateExternalImportGlobals();
if (xsdSchema.getElementDeclarations() != null)
{
Iterator i = xsdSchema.getElementDeclarations().iterator();
while (i.hasNext())
{
XSDElementDeclaration elementDeclaration = (XSDElementDeclaration) i.next();
String name = elementDeclaration.getQName(xsdSchema);
if (name != null)
{
items.add(name);
}
}
}
// items = addExternalImportedGlobalElements(items);
items = (Vector) sortList(items);
}
return items;
}
代码示例来源:origin: org.eclipse.emf/org.eclipse.xsd.edit
@Override
public String getText(Object object)
{
XSDElementDeclaration xsdElementDeclaration = ((XSDElementDeclaration)object);
XSDElementDeclaration resolvedElementDeclaration = xsdElementDeclaration.getResolvedElementDeclaration();
String name =
xsdElementDeclaration != resolvedElementDeclaration ?
xsdElementDeclaration.getQName() :
xsdElementDeclaration.getName();
StringBuffer result = new StringBuffer();
if (name == null)
{
result.append(XSDEditPlugin.INSTANCE.getString("_UI_Absent_label"));
}
else
{
result.append(name);
}
if (resolvedElementDeclaration.getAnonymousTypeDefinition() == null && resolvedElementDeclaration.getTypeDefinition() != null)
{
result.append(" : ");
result.append(resolvedElementDeclaration.getTypeDefinition().getQName(xsdElementDeclaration));
}
return result.toString();
}
代码示例来源:origin: org.geotools.xsd/gt-gml2
throw new RuntimeException("Could not find binding for " + property.getQName());
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
Command command = new UpdateAttributeValueCommand(concreteComponent.getElement(), XSDConstants.SUBSTITUTIONGROUP_ATTRIBUTE, elementDec.getQName(concreteComponent.getSchema()));
command.execute();
Command command = new UpdateAttributeValueCommand(concreteComponent.getElement(), XSDConstants.SUBSTITUTIONGROUP_ATTRIBUTE, ((XSDElementDeclaration)component.getObject()).getQName(concreteComponent.getSchema()));
command.execute();
代码示例来源:origin: org.eclipse/org.eclipse.wst.xsd.ui
private void fillSubstitutionGroupCombo()
{
IEditorPart editor = getActiveEditor();
ComponentReferenceEditManager manager = (ComponentReferenceEditManager)editor.getAdapter(XSDSubstitutionGroupEditManager.class);
ComponentSpecification[] items = manager.getQuickPicks();
substGroupCombo.removeAll();
substGroupCombo.add(Messages._UI_ACTION_BROWSE);
substGroupCombo.add(Messages._UI_ACTION_NEW);
for (int i = 0; i < items.length; i++)
{
substGroupCombo.add(items[i].getName());
}
// Add the current substitution group if needed
XSDElementDeclaration namedComponent = ((XSDElementDeclaration) input).getSubstitutionGroupAffiliation();
if (namedComponent != null)
{
ComponentSpecification ret = getComponentSpecFromQuickPickForValue(namedComponent.getName(),manager);
if (ret == null)
{
substGroupCombo.add(namedComponent.getQName(xsdSchema));
}
}
}
内容来源于网络,如有侵权,请联系作者删除!