Class AbstractPath

java.lang.Object
eu.europa.esig.dss.xml.common.definition.AbstractPath
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
XMLDSigPath

public abstract class AbstractPath extends Object implements Serializable
Contains a list of common XML xpaths
See Also:
  • Constructor Details

    • AbstractPath

      protected AbstractPath()
      Default constructor
  • Method Details

    • all

      public static XPathQuery all(DSSElement element)
      Builds the xpath expression to return entries of the element
      Parameters:
      element - DSSElement
      Returns:
      XPathQuery xpath expression
    • fromCurrentPosition

      public static XPathQuery fromCurrentPosition(DSSElement element)
      Builds the xpath expression to return entries of the element from the current position
      Parameters:
      element - DSSElement
      Returns:
      XPathQuery xpath expression
    • allFromCurrentPosition

      public static XPathQuery allFromCurrentPosition(DSSElement element)
      Builds the xpath expression to return entries of the element from the current position
      Parameters:
      element - DSSElement
      Returns:
      XPathQuery xpath expression
    • all

      public static XPathQuery all(DSSElement... elements)
      Builds the xpath expression to return entries of the given elements array
      Parameters:
      elements - an array of DSSElements
      Returns:
      XPathQuery xpath expression
    • allNotParent

      public static XPathQuery allNotParent(DSSElement element, DSSElement notChildOf)
      Builds the xpath expression to return entries of the element which are not child of notChildOf element
      Parameters:
      element - DSSElement
      notChildOf - DSSElement
      Returns:
      XPathQuery xpath expression
    • fromCurrentPosition

      public static XPathQuery fromCurrentPosition(DSSElement... elements)
      Builds the xpath expression to return entries starting from the current position
      Parameters:
      elements - DSSElement
      Returns:
      XPathQuery xpath expression
    • fromCurrentPosition

      public static XPathQuery fromCurrentPosition(DSSElement element, DSSAttribute attribute)
      Builds the xpath expression to return entries starting from the current position with the given attribute
      Parameters:
      element - DSSElement
      attribute - DSSAttribute
      Returns:
      XPathQuery xpath expression