Class DocumentAnalyzer

java.lang.Object
com.saperion.ngc.viewer.DocumentAnalyzer

public final class DocumentAnalyzer extends Object
Contains methods used to analyze a document or it's structure.
  • Method Details

    • externalGetStructureInfos

      public static DocumentAnalyzer.StructureInfos externalGetStructureInfos(List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> structure, int wantedElement, jakarta.servlet.http.HttpSession session)
      Gets information about a document's structure. Same as getStructureInfos, but can be used by servlets or JSPs. This method ignores the supported formats of the viewer.
      Parameters:
      structure - the elements of the structure
      wantedElement - A special element of the document structure.
      session - the current session
      Returns:
      the structure information
    • externalGetStructureInfos

      public static DocumentAnalyzer.StructureInfos externalGetStructureInfos(List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> structure, int wantedElement, Set<String> supportedFormats, jakarta.servlet.http.HttpSession session)
      Gets information about a document's structure. Same as getStructureInfos, but can be used by servlets or JSPs.
      Parameters:
      structure - the elements of the structure
      wantedElement - A special element of the document structure.
      supportedFormats - set of supported formats by filename extension (in upper-case)
      session - the current session
      Returns:
      the structure information
    • getStructureInfos

      public static DocumentAnalyzer.StructureInfos getStructureInfos(List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> structure, int wantedElement)
      Gets information about a document's structure. This method ignores the supported formats of the viewer.
      Parameters:
      structure - the elements of the structure
      wantedElement - A special element of the document structure.
      Returns:
      the structure information
    • getStructureInfos

      public static DocumentAnalyzer.StructureInfos getStructureInfos(List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> structure, int wantedElement, Set<String> supportedFormats)
      Gets information about a document's structure.
      Parameters:
      structure - the elements of the structure
      wantedElement - A special element of the document structure.
      supportedFormats - set of supported formats by filename extension (in upper-case)
      Returns:
      the structure information