Unnamed: 0 int64 0 305k | body stringlengths 7 52.9k | name stringlengths 1 185 |
|---|---|---|
299,600 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; XsdNamespaceBuilder builder = (XsdNamespaceBuilder)o; if (!Objects.equals(myNamespace, builder.myNamespace)) return false; if (!Objects.equals(myVersion, builder.myVersion)) return false; if (!Objects.equals(myTa... | equals |
299,601 | int () { int result = myNamespace != null ? myNamespace.hashCode() : 0; result = 31 * result + (myVersion != null ? myVersion.hashCode() : 0); result = 31 * result + (myTags != null ? myTags.hashCode() : 0); return result; } | hashCode |
299,602 | GlobalSearchScope (@NotNull Project project) { GlobalSearchScope projectScope = GlobalSearchScope.allScope(project); return new GlobalSearchScope(project) { @Override public int compare(@NotNull VirtualFile file1, @NotNull VirtualFile file2) { return projectScope.compare(file1, file2); } @Override public boolean isSear... | createFilter |
299,603 | int (@NotNull VirtualFile file1, @NotNull VirtualFile file2) { return projectScope.compare(file1, file2); } | compare |
299,604 | boolean (@NotNull Module aModule) { return true; } | isSearchInModuleContent |
299,605 | boolean (@NotNull VirtualFile file) { final VirtualFile parent = file.getParent(); return parent != null && (parent.getName().equals("standardSchemas") || projectScope.contains(file)); } | contains |
299,606 | boolean () { return true; } | isSearchInLibraries |
299,607 | KeyDescriptor<String> () { return EnumeratorStringDescriptor.INSTANCE; } | getKeyDescriptor |
299,608 | boolean (final @NotNull VirtualFile file) { if (!"xsd".equals(file.getExtension())) { return false; } if (file.isInLocalFileSystem()) { return true; } VirtualFile parent = file.getParent(); return parent != null && parent.getName().equals("standardSchemas"); } | acceptInput |
299,609 | boolean () { return true; } | dependsOnFileContent |
299,610 | int () { return 1; } | getVersion |
299,611 | boolean (final @NotNull VirtualFile file) { return "xsd".equals(file.getExtension()); } | acceptInput |
299,612 | DataExternalizer<XsdNamespaceBuilder> () { return new DataExternalizer<>() { @Override public void save(@NotNull DataOutput out, XsdNamespaceBuilder value) throws IOException { IOUtil.writeUTF(out, value.getNamespace() != null ? value.getNamespace() : NULL_STRING); IOUtil.writeUTF(out, value.getVersion() != null ? valu... | getValueExternalizer |
299,613 | int () { return 8; } | getVersion |
299,614 | int (IndexedRelevantResource<String, XsdNamespaceBuilder> o1, IndexedRelevantResource<String, XsdNamespaceBuilder> o2) { return weight(o1) - weight(o2); } | compare |
299,615 | ResourceRelevance (VirtualFile resource, @Nullable Module module, ProjectFileIndex fileIndex, @Nullable GlobalSearchScope additionalScope) { boolean inTest = fileIndex.isInTestSourceContent(resource); if (module != null) { GlobalSearchScope scope = module.getModuleRuntimeScope(inTest); Module resourceModule = fileIndex... | getRelevance |
299,616 | void (NameSpaceHelper nameSpaceHelper) { myNameSpaceHelper = nameSpaceHelper; } | setNameSpaceHelper |
299,617 | void (String value, final String typeName) { /*final int separatorIdx = value.indexOf(':'); final String ns = separatorIdx <= 0 ? "" : new String(value.substring(0, separatorIdx)); final String element = separatorIdx <= 0 ? value : new String(value.substring(separatorIdx + 1)); String nsUri = myNameSpaceHelper.getNames... | putTypeDataToMap |
299,618 | SchemaTypeInfo (final String value, final boolean isType) { final int separatorIdx = value.indexOf(':'); final String ns = separatorIdx <= 0 ? "" : value.substring(0, separatorIdx); final String element = separatorIdx <= 0 ? value : value.substring(separatorIdx + 1); String nsUri = myNameSpaceHelper.getNamespaces().get... | createSchemaTypeInfo |
299,619 | void (String key, String value, String systemId, int lineNr) { super.attributeAdded(key, value, systemId, lineNr); if (myInSchema) { if (key.startsWith(XMLNS)) { if (key.length() == XMLNS.length()) { myNamespaces.put("", value); } else if (key.startsWith(XMLNS_)) { final String prefix = key.substring(XMLNS_.length()); ... | attributeAdded |
299,620 | void (String name, String systemId, int lineNr) { super.elementStarted(name, systemId, lineNr); myInSchema = "schema".equals(name) || name.endsWith(":schema"); } | elementStarted |
299,621 | List<Set<SchemaTypeInfo>> (final Project project, final String ns, final String name) { GlobalSearchScope filter = createFilter(project); return FileBasedIndex.getInstance().getValues(NAME, NsPlusTag.INSTANCE.encode(Pair.create(ns, name)), filter); } | getDirectChildrenOfType |
299,622 | List<Set<SchemaTypeInfo>> (String ns, String name) { List<Set<SchemaTypeInfo>> type = getDirectChildrenOfType(myProject, ns, name); if (myShouldParseCurrent) { if (myMap == null) { try { myMap = XsdComplexTypeInfoBuilder.parse(CharArrayUtil.readerFromCharSequence(VfsUtilCore.loadText(myCurrentFile))); type.add(new Hash... | apply |
299,623 | int () { return 2; } | getVersion |
299,624 | DataExternalizer<Set<SchemaTypeInfo>> () { return new DataExternalizer<>() { @Override public void save(@NotNull DataOutput out, Set<SchemaTypeInfo> value) throws IOException { DataInputOutputUtil.writeINT(out, value.size()); for (SchemaTypeInfo key : value) { IOUtil.writeUTF(out, key.getNamespaceUri()); IOUtil.writeUT... | getValueExternalizer |
299,625 | String (Pair<String, String> pair) { return pair.getFirst() + ourSeparator + pair.getSecond(); } | encode |
299,626 | String () { return myTagName; } | getTagName |
299,627 | String () { return myNamespaceUri; } | getNamespaceUri |
299,628 | boolean () { return myIsTypeName; } | isIsTypeName |
299,629 | boolean (Object o) { if (this == o) return true; if (o == null || getClass() != o.getClass()) return false; SchemaTypeInfo info = (SchemaTypeInfo)o; if (myIsTypeName != info.myIsTypeName) return false; if (myNamespaceUri != null ? !myNamespaceUri.equals(info.myNamespaceUri) : info.myNamespaceUri != null) return false; ... | equals |
299,630 | int () { int result = myTagName.hashCode(); result = 31 * result + (myNamespaceUri != null ? myNamespaceUri.hashCode() : 0); result = 31 * result + (myIsTypeName ? 1 : 0); return result; } | hashCode |
299,631 | int (SchemaTypeInfo o) { return myTagName.compareTo(o.getTagName()); } | compareTo |
299,632 | Collection<VirtualFile> (@NotNull String tagName, @NotNull Project project) { return FileBasedIndex.getInstance().getContainingFiles(NAME, tagName, createFilter(project)); } | getFilesByTagName |
299,633 | Collection<String> (@NotNull Project project) { return FileBasedIndex.getInstance().getAllKeys(NAME, project); } | getAllTagNames |
299,634 | DataExternalizer<Void> () { return VoidDataExternalizer.INSTANCE; } | getValueExternalizer |
299,635 | void (@NotNull Reader reader, @NotNull Consumer<String> consumer) { try (reader) { NanoXmlUtil.parse(reader, new NanoXmlBuilder() { private boolean elementStarted; @Override public void startElement(@NonNls String name, @NonNls String nsPrefix, @NonNls String nsURI, String systemID, int lineNr) { elementStarted = nsPre... | computeTagNames |
299,636 | void (@NonNls String name, @NonNls String nsPrefix, @NonNls String nsURI, String systemID, int lineNr) { elementStarted = nsPrefix != null && nsURI.equals(XmlUtil.XML_SCHEMA_URI) && name.equals("element"); } | startElement |
299,637 | void (@NonNls String key, String nsPrefix, String nsURI, String value, String type) { if (elementStarted && key.equals("name")) { consumer.accept(value); elementStarted = false; } } | addAttribute |
299,638 | VirtualFile () { return myFile; } | getFile |
299,639 | V () { return myValue; } | getValue |
299,640 | ResourceRelevance () { return myRelevance; } | getRelevance |
299,641 | int (IndexedRelevantResource<K, V> o) { int i = myRelevance.compareTo(o.getRelevance()); return i == 0 ? myValue.compareTo(o.getValue()) : i; } | compareTo |
299,642 | K () { return myKey; } | getKey |
299,643 | String () { return "IndexedRelevantResource{" + "myRelevance=" + myRelevance + ", myKey=" + myKey + ", myValue=" + myValue + ", myFile=" + myFile + '}'; } | toString |
299,644 | String[] () { return StringUtil.filterEmptyStrings(getEnumeratedValues()); } | getValuesForCompletion |
299,645 | PsiElement (XmlElement attributeValue, String value) { String defaultValue = getDefaultValue(); if (Objects.equals(defaultValue, value)) { return getDefaultValueDeclaration(); } return isFixed() ? null : getEnumeratedValueDeclaration(attributeValue, value); } | getValueDeclaration |
299,646 | boolean () { return false; } | isList |
299,647 | PsiReference[] (T element, @NotNull String text) { return new XmlEnumeratedReferenceSet(element, this).getPsiReferences(); } | getValueReferences |
299,648 | NamedReferenceProviders () { return ApplicationManager.getApplication().getService(NamedReferenceProviders.class); } | getInstance |
299,649 | ByHostClass (@NotNull XmlNamedReferenceHost element) { return myByHostClass.computeIfAbsent(element.getClass(), NamedReferenceProviders::byHostClassInner); } | byHostClass |
299,650 | ByHostClass (@NotNull Class<?> hostClass) { List<XmlNamedReferenceProviderBean> result = new SmartList<>(); for (XmlNamedReferenceProviderBean bean : EP_NAME.getExtensionList()) { if (bean.getHostElementClass().isAssignableFrom(hostClass)) { result.add(bean); } } return new ByHostClass(result); } | byHostClassInner |
299,651 | Collection<PsiSymbolReferenceProvider> (@NotNull Class<?> targetClass) { List<PsiSymbolReferenceProvider> result = new SmartList<>(); for (XmlNamedReferenceProviderBean bean : EP_NAME.getExtensionList()) { if (targetClass.isAssignableFrom(bean.getResolveTargetClass())) { result.add(bean.getInstance()); } } return resul... | byTargetClassInner |
299,652 | String (PsiElement context) { return getName(); } | getName |
299,653 | boolean (XmlElement context) { return isEnumerated(); } | isEnumerated |
299,654 | String () { return getName(); } | toString |
299,655 | PsiElement (XmlElement xmlElement, String value) { String[] values = getEnumeratedValues(); if (values == null || values.length == 0) return getFirstItem(getDeclarations()); return ArrayUtilRt.find(values, value) != -1 ? getFirstItem(getDeclarations()) : null; } | getEnumeratedValueDeclaration |
299,656 | PsiElement () { return getFirstItem(getDeclarations()); } | getDefaultValueDeclaration |
299,657 | boolean (XmlFile file) { return file.getUserData(AUTO_GENERATED) != null; } | isAutoGeneratedSchema |
299,658 | boolean (final @NotNull XmlDocument document, XmlNSDescriptor defaultNSDescriptorInner) { if (defaultNSDescriptorInner == null) { return false; } XmlFile descriptorFile = defaultNSDescriptorInner.getDescriptorFile(); if (descriptorFile == null) { return false; } @NonNls String otherName = XmlUtil.getContainingFile(docu... | isGeneratedFromDtd |
299,659 | String (@Nullable PsiFile file) { if (file == null) { return "NULL"; } final VirtualFile vFile = file.getVirtualFile(); return vFile != null ? vFile.getPath() : "NULL_VFILE"; } | getFilePathForLogging |
299,660 | record (PsiElement element, @InspectionMessage String message, Validator.ValidationHost.ErrorType type) { } | ValidationInfo |
299,661 | void (final XmlElement element, Validator.ValidationHost host) { final PsiFile file = element.getContainingFile(); if (file == null || file.getVirtualFile() == null) return; if (myFile == file && myModificationStamp == file.getModificationStamp() && !ValidateXmlActionHandler.isValidationDependentFilesOutOfDate((XmlFile... | runJaxpValidation |
299,662 | void (final PsiElement context, final String message, final @NotNull ErrorType type) { final ValidationInfo o = new ValidationInfo(context, message, type); results.add(o); } | addMessage |
299,663 | boolean () { return true; } | isStopOnUndeclaredResource |
299,664 | void (final SAXParseException e, final ValidateXmlActionHandler.ProblemType warning) { try { ApplicationManager.getApplication().runReadAction(() -> { if (e.getPublicId() != null) { return; } final VirtualFile errorFile = myHandler.getProblemFile(e); if (!Comparing.equal(errorFile, file.getVirtualFile()) && errorFile !... | processError |
299,665 | PsiElement (final PsiElement currentElement) { PsiElement parentOfType = PsiTreeUtil.getNonStrictParentOfType( currentElement, XmlTag.class, XmlProcessingInstruction.class, XmlElementDecl.class, XmlMarkupDecl.class, XmlEntityRef.class, XmlDoctype.class ); if (parentOfType == null) { if (currentElement instanceof XmlTok... | getNodeForMessage |
299,666 | void (Validator.ValidationHost host, List<? extends ValidationInfo> highlightInfos) { for (ValidationInfo info : highlightInfos) { host.addMessage(info.element, info.message, info.type); } } | addAllInfos |
299,667 | void (PsiElement currentElement, final PsiElement originalElement, final @InspectionMessage String localizedMessage, final ValidateXmlActionHandler.ProblemType problemType) { currentElement = PsiTreeUtil.getParentOfType(currentElement,XmlTag.class,false); if (currentElement==null) { currentElement = PsiTreeUtil.getPare... | addProblemToTagName |
299,668 | void (PsiElement currentElement, PsiElement originalElement, String message) { if (currentElement==null) { XmlTag tag = PsiTreeUtil.getParentOfType(originalElement, XmlTag.class); LOG.error("The validator message:" + message + " is bound to null node,\n" + "initial element:" + originalElement.getText() + ",\n" + "paren... | assertValidElement |
299,669 | int () { return getMinOccursImpl(myRef) * getMinOccursImpl(myTag); } | getMinOccurs |
299,670 | int (XmlTag tag) { if (tag == null) return 1; String value = tag.getAttributeValue("minOccurs"); try { return value == null ? 1 : Integer.parseInt(value); } catch (NumberFormatException e) { return 1; } } | getMinOccursImpl |
299,671 | int () { return getMaxOccursImpl(myRef) * getMaxOccursImpl(myTag); } | getMaxOccurs |
299,672 | int (XmlTag tag) { if (tag == null) return 1; String value = tag.getAttributeValue("maxOccurs"); if (value == null) return 1; if ("unbounded".equals(value)) return Integer.MAX_VALUE; try { return Integer.parseInt(value); } catch (NumberFormatException e) { return 1; } } | getMaxOccursImpl |
299,673 | XmlElementsGroup () { return myParent; } | getParentGroup |
299,674 | PsiElement () { return null; } | getDeclaration |
299,675 | String (PsiElement context) { return null; } | getName |
299,676 | String () { return null; } | getName |
299,677 | void (PsiElement element) { throw new UnsupportedOperationException(); } | init |
299,678 | boolean (String[] tagNames, PsiElementProcessor<? super XmlTag> processor) { for (XmlNSDescriptorImpl descriptor : myDescriptors) { if (!descriptor.processTagsInNamespace(tagNames, processor)) return false; } return true; } | processTagsInNamespace |
299,679 | Type () { return Type.LEAF; } | getGroupType |
299,680 | List<XmlElementsGroup> () { return Collections.emptyList(); } | getSubGroups |
299,681 | XmlElementDescriptor () { return myDescriptor; } | getLeafDescriptor |
299,682 | XmlTag () { return myDescriptorTag; } | getDeclaration |
299,683 | String (PsiElement context) { String value = myDescriptorTag.getAttributeValue("name"); if(context instanceof XmlElement){ final String namespace = getNamespaceByContext(context); final XmlTag tag = PsiTreeUtil.getParentOfType(context, XmlTag.class, false); if(tag != null){ final String namespacePrefix = tag.getPrefixB... | getName |
299,684 | String () { return XmlUtil.findLocalNameByQualifiedName(getName(null)); } | getName |
299,685 | String (PsiElement context) { //while(context != null){ // if(context instanceof XmlTag){ // final XmlTag contextTag = ((XmlTag)context); // final XmlNSDescriptorImpl schemaDescriptor = XmlUtil.findXmlNSDescriptorByType(contextTag); // if (schemaDescriptor != null) { // return schemaDescriptor.getDefaultNamespace(); //... | getNamespaceByContext |
299,686 | String () { String name = getName(); if (name == null) return XmlUtil.EMPTY_URI; if (getNSDescriptor() == null || myDescriptorTag == null) return XmlUtil.EMPTY_URI; final String namespacePrefix = XmlUtil.findPrefixByQualifiedName(name); return namespacePrefix.isEmpty() ? getDefaultNamespace() : myDescriptorTag.getNames... | getNamespace |
299,687 | void (PsiElement element) { if (myDescriptorTag!=element && myDescriptorTag!=null) { NSDescriptor = null; } myDescriptorTag = (XmlTag) element; } | init |
299,688 | XmlNSDescriptor (XmlElement context) { XmlNSDescriptor nsDescriptor = getNSDescriptor(); if (context instanceof XmlTag tag && nsDescriptor instanceof XmlNSDescriptorImpl) { final String defaultNamespace = ((XmlNSDescriptorImpl)nsDescriptor).getDefaultNamespace(); if (XmlUtil.XML_SCHEMA_URI.equals(defaultNamespace)) ret... | getNSDescriptor |
299,689 | XmlNSDescriptor () { XmlNSDescriptor nsDescriptor = NSDescriptor; if (nsDescriptor == null || !NSDescriptor.getDeclaration().isValid()) { final XmlFile file = XmlUtil.getContainingFile(getDeclaration()); if(file == null) return null; final XmlDocument document = file.getDocument(); if(document == null) return null; NSD... | getNSDescriptor |
299,690 | XmlElementsGroup () { TypeDescriptor type = getType(); return type instanceof ComplexTypeDescriptor ? ((ComplexTypeDescriptor)type).getTopGroup() : null; } | getTopGroup |
299,691 | XmlElementDescriptor[] (XmlTag context) { if (context != null) { final XmlElementDescriptor parentDescriptorByType = XmlUtil.findXmlDescriptorByType(context); if (parentDescriptorByType != null && !parentDescriptorByType.equals(this)) { return parentDescriptorByType.getElementsDescriptors(context); } } XmlElementDescri... | getElementsDescriptors |
299,692 | XmlElementDescriptor[] (XmlElement context) { TypeDescriptor type = getType(context); if (type instanceof ComplexTypeDescriptor typeDescriptor) { XmlElementDescriptor[] elements = typeDescriptor.getElements(context); if (context instanceof XmlTag && elements.length > 0) { String[] namespaces = ((XmlTag)context).knownNa... | getElementsDescriptorsImpl |
299,693 | XmlAttributeDescriptor[] (final XmlTag context) { TypeDescriptor type = getType(context); if (type instanceof ComplexTypeDescriptor typeDescriptor) { XmlAttributeDescriptor[] attributeDescriptors = typeDescriptor.getAttributes(context); if (context != null) { final String contextNs = context.getNamespace(); boolean see... | getAttributesDescriptors |
299,694 | XmlAttributeDescriptor[] (final XmlTag context, final ComplexTypeDescriptor typeDescriptor, XmlAttributeDescriptor[] attributeDescriptors, final String ns) { if (typeDescriptor.canContainAttribute(ns, null) != ComplexTypeDescriptor.CanContainAttributeType.CanNotContain) { // anyAttribute found final XmlNSDescriptor des... | updateAttributeDescriptorsFromAny |
299,695 | XmlAttributeDescriptor (String attributeName, final XmlTag context) { return getAttributeDescriptorImpl(attributeName,context); } | getAttributeDescriptor |
299,696 | String () { XmlNSDescriptor nsDescriptor = getNSDescriptor(); return nsDescriptor instanceof XmlNSDescriptorImpl ? ((XmlNSDescriptorImpl)nsDescriptor).getDefaultNamespace() : ""; } | getDefaultNamespace |
299,697 | XmlAttributeDescriptor (XmlAttribute attribute) { return getAttributeDescriptorImpl(attribute.getName(),attribute.getParent()); } | getAttributeDescriptor |
299,698 | int () { TypeDescriptor type = getType(); if (type instanceof ComplexTypeDescriptor) { return ((ComplexTypeDescriptor)type).getContentType(); } return CONTENT_TYPE_MIXED; } | getContentType |
299,699 | XmlElementDescriptor (XmlTag element, XmlTag contextTag) { final XmlElement context = (XmlElement)element.getParent(); XmlElementDescriptor elementDescriptor = getElementDescriptor( element.getLocalName(), element.getNamespace(), context, element.getName() ); if(elementDescriptor == null || element.getAttributeValue("x... | getElementDescriptor |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.