public class ReferencedGrammarInfo extends Object
In other words, it gives information about
Constructor and Description |
---|
ReferencedGrammarInfo(ResolvedURIInfo resolvedURIInfo,
GrammarCacheInfo grammarCacheInfo,
ContentModelProvider.Identifier identifier) |
Modifier and Type | Method and Description |
---|---|
String |
getBindingKind()
Returns the binding kind and null otherwise.
|
static String |
getBindingKindAndResolvedBy(ReferencedGrammarInfo info)
Returns the binding kind and resolved by label.
|
GrammarCacheInfo |
getGrammarCacheInfo()
Returns the grammar cache information and null otherwise.
|
ContentModelProvider.Identifier |
getIdentifier()
Returns the identifier (xml-model, xsi:schemaLocation,
xsi:noNamespaceSchemaLocation, DOCTYPE) and null otherwise.
|
String |
getIdentifierURI()
Returns the system or public identifier URI and null otherwise.
|
String |
getResolvedBy()
Returns the resolver which is used to resolve the identifier URI and null
otherwise.
|
ResolvedURIInfo |
getResolvedURIInfo()
Returns the resolved URI information (the result of the resolve and the
resolution strategy (ex : catalog, file association, etc)).
|
boolean |
isInCache()
Returns true if the grammar is in the .lemminx cache and false otherwise.
|
public ReferencedGrammarInfo(ResolvedURIInfo resolvedURIInfo, GrammarCacheInfo grammarCacheInfo, ContentModelProvider.Identifier identifier)
public ResolvedURIInfo getResolvedURIInfo()
public GrammarCacheInfo getGrammarCacheInfo()
public ContentModelProvider.Identifier getIdentifier()
public boolean isInCache()
public String getIdentifierURI()
public String getBindingKind()
public String getResolvedBy()
public static String getBindingKindAndResolvedBy(ReferencedGrammarInfo info)
info
- the referenced grammar information.Copyright © 2022. All rights reserved.