Package com.saperion.ngc.viewer
Class DocumentAnalyzer
java.lang.Object
com.saperion.ngc.viewer.DocumentAnalyzer
Contains methods used to analyze a document or it's structure.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe Class StructureInfos contains information about a document's structure.. -
Method Summary
Modifier and TypeMethodDescriptionexternalGetStructureInfos(List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> structure, int wantedElement, jakarta.servlet.http.HttpSession session) Gets information about a document's structure.externalGetStructureInfos(List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> structure, int wantedElement, Set<String> supportedFormats, jakarta.servlet.http.HttpSession session) Gets information about a document's structure.getStructureInfos(List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> structure, int wantedElement) Gets information about a document's structure.getStructureInfos(List<DocumentArchiveMetaInfo.ElementArchiveMetaInfo> structure, int wantedElement, Set<String> supportedFormats) Gets information about a document'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 structurewantedElement- 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 structurewantedElement- 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 structurewantedElement- 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 structurewantedElement- A special element of the document structure.supportedFormats- set of supported formats by filename extension (in upper-case)- Returns:
- the structure information
-