Class XMLReferenceExpression
- java.lang.Object
-
- org.eclipse.lemminx.extensions.references.settings.XMLReferenceExpression
-
public class XMLReferenceExpression extends Object
XML reference expression{ "prefix": "#", "from": "@corresp", "to": "@xml:id" }- Author:
- azerr
-
-
Constructor Summary
Constructors Constructor Description XMLReferenceExpression()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFrom()BooleangetMultiple()StringgetPrefix()StringgetTo()booleanisFromSearchInAttribute()booleanisFromSearchInText()booleanisMultiple()booleanisToSearchInAttribute()booleanisToSearchInText()booleanmatchFrom(Node node)Returns true if the given DOM Node match the XPath expression of the 'from' XPath matcher and false otherwise.booleanmatchTo(Node node)Returns true if the given DOM Node match the XPath expression of the 'to' XPath matcher and false otherwise.voidsetFrom(String from)voidsetMultiple(Boolean multiple)voidsetPrefix(String prefix)voidsetTo(String to)
-
-
-
Method Detail
-
getFrom
public String getFrom()
-
setFrom
public void setFrom(String from)
-
getTo
public String getTo()
-
setTo
public void setTo(String to)
-
getPrefix
public String getPrefix()
-
setPrefix
public void setPrefix(String prefix)
-
setMultiple
public void setMultiple(Boolean multiple)
-
isMultiple
public boolean isMultiple()
-
getMultiple
public Boolean getMultiple()
-
matchFrom
public boolean matchFrom(Node node)
Returns true if the given DOM Node match the XPath expression of the 'from' XPath matcher and false otherwise.- Parameters:
node- the DOM Node to match.- Returns:
- true if the given DOM Node match the XPath expression of the 'from' XPath matcher and false otherwise.
-
matchTo
public boolean matchTo(Node node)
Returns true if the given DOM Node match the XPath expression of the 'to' XPath matcher and false otherwise.- Parameters:
node- the DOM Node to match.- Returns:
- true if the given DOM Node match the XPath expression of the 'to' XPath matcher and false otherwise.
-
isFromSearchInAttribute
public boolean isFromSearchInAttribute()
-
isFromSearchInText
public boolean isFromSearchInText()
-
isToSearchInAttribute
public boolean isToSearchInAttribute()
-
isToSearchInText
public boolean isToSearchInText()
-
-