Class AbstractPaths

java.lang.Object
eu.europa.esig.dss.definition.AbstractPaths
Direct Known Subclasses:
ASiCPaths, ManifestPaths, XAdES111Paths, XAdES122Paths, XAdES132Paths, XMLDSigPaths

public abstract class AbstractPaths
extends Object
Contains a list of common XML xpaths
  • Constructor Details

    • AbstractPaths

      public AbstractPaths()
  • Method Details

    • all

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

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

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

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

      protected static String allNotParent​(DSSElement element, DSSElement notParentOf)
      Builds the xpath expression to return entries of the element which are not parent of notParentOf
      Parameters:
      element - DSSElement
      notParentOf - DSSElement
      Returns:
      String xpath expression
    • fromCurrentPosition

      protected static final String fromCurrentPosition​(DSSElement... elements)
      Builds the xpath expression to return entries starting from the current position
      Parameters:
      elements - DSSElement
      Returns:
      String xpath expression
    • fromCurrentPosition

      protected static final String 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:
      String xpath expression