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 Details

    • XMLReferenceExpression

      public XMLReferenceExpression()
  • Method Details

    • 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()