public GetPropertyExecutor(Object parent, XSDNamedComponent content) { this.parent = parent; name = new QName(content.getTargetNamespace(), content.getName()); }
boolean target(XSDNamedComponent c, XSDSchema schema) { return c.getTargetNamespace().equals(schema.getTargetNamespace()); }
/** * Convenience method for getting the name of a component. */ protected final Name name(XSDNamedComponent component) { if (component.getName() == null) { logger.warning("Anonymous component: " + component); } return new NameImpl(component.getTargetNamespace(), component.getName()); }
stringBuffer.append(named.getTargetNamespace()); stringBuffer.append(TEXT_2); stringBuffer.append(named.getName());
stringBuffer.append(desc); stringBuffer.append(TEXT_6); stringBuffer.append(named.getTargetNamespace()); stringBuffer.append(TEXT_7); stringBuffer.append(named.getName());
String ns1 = component.getTargetNamespace(); String ns2 = qName.getNamespaceURI(); String n1 = component.getName();
bindingName = new QName( base.getTargetNamespace(), base.getName() + "_" + anonymous.getName());
boolean contains(XSDNamedComponent c, List l) { boolean contains = false; for (Iterator i = l.iterator(); !contains && i.hasNext(); ) { XSDNamedComponent e = (XSDNamedComponent) i.next(); if (e.getName().equals(c.getName())) { if (e.getTargetNamespace() == null) { contains = c.getTargetNamespace() == null; } else { contains = e.getTargetNamespace().equals(c.getTargetNamespace()); } } } return contains; }
public GetPropertyExecutor(Object parent, XSDNamedComponent content) { this.parent = parent; name = new QName(content.getTargetNamespace(),content.getName()); }
public GetPropertyExecutor(Object parent, XSDNamedComponent content) { this.parent = parent; name = new QName(content.getTargetNamespace(), content.getName()); }
public GetPropertyExecutor(Object parent, XSDNamedComponent content) { this.parent = parent; name = new QName(content.getTargetNamespace(), content.getName()); }
protected boolean isFromThisNamespace(XSDNamedComponent xsdNamedComponent) { String targetNamespace = xsdNamedComponent.getTargetNamespace(); return targetNamespace == null ? xsdSchema.getTargetNamespace() == null : targetNamespace.equals(xsdSchema.getTargetNamespace()); }
protected boolean isFromThisNamespace(XSDNamedComponent xsdNamedComponent) { String targetNamespace = xsdNamedComponent.getTargetNamespace(); return targetNamespace == null ? xsdSchema.getTargetNamespace() == null : targetNamespace.equals(xsdSchema.getTargetNamespace()); }
public boolean hasSameNameAndTargetNamespace(XSDNamedComponent xsdNamedComponent) { return (getTargetNamespace() == null ? xsdNamedComponent.getTargetNamespace() == null : getTargetNamespace().equals(xsdNamedComponent.getTargetNamespace())) && (getName() == null ? xsdNamedComponent.getName() == null : getName().equals(xsdNamedComponent.getName())); }
public boolean hasSameNameAndTargetNamespace(XSDNamedComponent xsdNamedComponent) { return (getTargetNamespace() == null ? xsdNamedComponent.getTargetNamespace() == null : getTargetNamespace().equals(xsdNamedComponent.getTargetNamespace())) && (getName() == null ? xsdNamedComponent.getName() == null : getName().equals(xsdNamedComponent.getName())); }
public String getQualifier(Object component) { String result = null; if (component instanceof ComponentSpecification) { result = ((ComponentSpecification)component).getQualifier(); } else if (component instanceof XSDNamedComponent) { result = ((XSDNamedComponent)component).getTargetNamespace(); } else if (component instanceof SearchMatch) { QualifiedName qualifiedName = getQualifiedNameForSearchMatch((SearchMatch)component); if (qualifiedName != null) { result = qualifiedName.getNamespace(); } } return result; }
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(); } }
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(); } }
public void run() { String pattern = ""; XSDNamedComponent component = getXSDNamedComponent(); IFile file = getCurrentFile(); if (file != null && component != null) { QualifiedName metaName = determineMetaName(component); QualifiedName elementQName = new QualifiedName(component.getTargetNamespace(), component.getName()); SearchScope scope = new WorkspaceSearchScope(); String scopeDescription = "Workspace"; XSDSearchQuery searchQuery = new XSDSearchQuery(pattern, file, elementQName, metaName, XSDSearchQuery.LIMIT_TO_REFERENCES, scope, scopeDescription); NewSearchUI.activateSearchResultView(); NewSearchUI.runQueryInBackground(searchQuery); } } }
public void run() { String pattern = ""; XSDNamedComponent component = getXSDNamedComponent(); IFile file = getCurrentFile(); if (file != null && component != null) { QualifiedName metaName = determineMetaName(component); QualifiedName elementQName = new QualifiedName(component.getTargetNamespace(), component.getName()); IPath fullPath = file.getFullPath(); ProjectSearchScope scope = new ProjectSearchScope(fullPath); String scopeDescription = "Project"; XSDSearchQuery searchQuery = new XSDSearchQuery(pattern, file, elementQName, metaName, XSDSearchQuery.LIMIT_TO_REFERENCES, scope, scopeDescription); NewSearchUI.activateSearchResultView(); NewSearchUI.runQueryInBackground(searchQuery); } } }