public class DependentNSReference extends BasicAttributeValueReference
myElement, myRangeARRAY_FACTORY, EMPTY_ARRAY| Constructor and Description |
|---|
DependentNSReference(PsiElement element,
TextRange range,
URLReference ref) |
DependentNSReference(PsiElement element,
TextRange range,
URLReference ref,
boolean valid) |
| Modifier and Type | Method and Description |
|---|---|
URLReference |
getNamespaceReference() |
boolean |
isForceFetchResultValid() |
boolean |
isSoft()
Returns
false if the underlying element is guaranteed to be a reference, or true
if the underlying element is a possible reference which should not be reported as
an error if it fails to resolve. |
PsiElement |
resolve()
Returns the element which is the target of the reference.
|
bindToElement, getCanonicalText, getElement, getRangeInElement, handleElementRename, isReferenceToclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetVariants, resolveReference, resolvesTogetAbsoluteRangepublic DependentNSReference(PsiElement element, TextRange range, URLReference ref)
public DependentNSReference(PsiElement element, TextRange range, URLReference ref, boolean valid)
public PsiElement resolve()
PsiReferencenull if it was not possible to resolve the reference to a valid target.PsiPolyVariantReference.multiResolve(boolean)public boolean isSoft()
PsiReferencefalse if the underlying element is guaranteed to be a reference, or true
if the underlying element is a possible reference which should not be reported as
an error if it fails to resolve. For example, a text in an XML file which looks
like a full-qualified Java class name is a soft reference.true if the reference is soft, false otherwise.public boolean isForceFetchResultValid()
public URLReference getNamespaceReference()