Package org.eclipse.wst.common.core.search.pattern

Examples of org.eclipse.wst.common.core.search.pattern.QualifiedName


      if(matcher.matches(pattern, searchElement)){
        hasMatch = true;
        if(pattern instanceof XMLComponentReferencePattern){
          ComponentReferenceEntry documentEntry = new ComponentReferenceEntry();
          documentEntry.setCategory(IXMLSearchConstants.COMPONENT_REF);
          QualifiedName name = new QualifiedName(uri, localName);
          documentEntry.setKey(name.toString());
          documentEntry.setName(name);
          document.putEntry(documentEntry);
        }
        else if(pattern instanceof XMLComponentDeclarationPattern){
          ComponentDeclarationEntry documentEntry = new ComponentDeclarationEntry();
          documentEntry.setCategory(IXMLSearchConstants.COMPONENT_DECL);
                    QualifiedName name = new QualifiedName(targetNamespace, attributes.getValue("name")); //$NON-NLS-1$
          QualifiedName metaName = new QualifiedName(uri, localName);                   
          documentEntry.setKey(name.toString());
                    documentEntry.setName(name);
          documentEntry.setMetaName(metaName);
          document.putEntry(documentEntry);
        }
View Full Code Here


    {
      SearchMatch match = super.createSearchMatch(file, attributeNode);
      // todo... remove this ugly hack!!
      if ("name".equals(attributeNode.getName())) //$NON-NLS-1$
      {
        QualifiedName qualifiedName = new QualifiedName("todo-compute-targetNamespace", attributeNode.getValue()); //$NON-NLS-1$
        match.map.put("name", qualifiedName); //$NON-NLS-1$
      }
      //Element element = attributeNode.getOwnerDocument().getDocumentElement();
      //if (element.getAttribute("targetNamespace"))
      //{       
View Full Code Here

    {
      SearchMatch match = super.createSearchMatch(file, attributeNode);
      // todo... remove this ugly hack!!
      if ("name".equals(attributeNode.getName())) //$NON-NLS-1$
      {
        QualifiedName qualifiedName = new QualifiedName("todo-compute-targetNamespace", attributeNode.getValue()); //$NON-NLS-1$
        match.map.put("name", qualifiedName); //$NON-NLS-1$
      }
      //Element element = attributeNode.getOwnerDocument().getDocumentElement();
      //if (element.getAttribute("targetNamespace"))
      //{       
View Full Code Here

TOP

Related Classes of org.eclipse.wst.common.core.search.pattern.QualifiedName

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.