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

Examples of org.eclipse.wst.common.core.search.document.ComponentReferenceEntry


    if(matcher != null){
      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);
        }
      }
    }
    currentPath.push(localName); //$NON-NLS-1$   
View Full Code Here

TOP

Related Classes of org.eclipse.wst.common.core.search.document.ComponentReferenceEntry

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.