Package org.verapdf.gf.model.impl.sa
Class GFSAPDFDocument
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.sa.GFSAPDFDocument
-
- All Implemented Interfaces:
Object,SAPDFDocument,IDocument
public class GFSAPDFDocument extends GenericModelObject implements SAPDFDocument, IDocument
- Author:
- Maxim Plushchov
-
-
Field Summary
Fields Modifier and Type Field Description protected PDDocumentdocumentstatic StringDOCUMENT_TYPEstatic intMAX_NUMBER_OF_ELEMENTSstatic StringPAGESstatic StringSTRUCTURE_TREE_ROOT-
Fields inherited from class org.verapdf.model.GenericModelObject
contextDependent
-
-
Constructor Summary
Constructors Constructor Description GFSAPDFDocument(PDDocument document)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description List<IChunk>getArtifacts()List<IChunk>getArtifacts(Integer pageNumber)List<? extends Object>getLinkedObjects(String link)IPagegetPage(Integer pageNumber)List<IPage>getPages()List<SAStructTreeRoot>getStructureTreeRoot()ITreegetTree()-
Methods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.verapdf.model.baselayer.Object
getContext, getExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
-
-
-
Field Detail
-
DOCUMENT_TYPE
public static final String DOCUMENT_TYPE
- See Also:
- Constant Field Values
-
document
protected PDDocument document
-
MAX_NUMBER_OF_ELEMENTS
public static final int MAX_NUMBER_OF_ELEMENTS
- See Also:
- Constant Field Values
-
STRUCTURE_TREE_ROOT
public static final String STRUCTURE_TREE_ROOT
- See Also:
- Constant Field Values
-
PAGES
public static final String PAGES
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFSAPDFDocument
public GFSAPDFDocument(PDDocument document)
-
-
Method Detail
-
getLinkedObjects
public List<? extends Object> getLinkedObjects(String link)
- Specified by:
getLinkedObjectsin interfaceObject- Overrides:
getLinkedObjectsin classGenericModelObject- Parameters:
link- - the name of a link- Returns:
- List of objects with the given link
-
getStructureTreeRoot
public List<SAStructTreeRoot> getStructureTreeRoot()
-
getArtifacts
public List<IChunk> getArtifacts(Integer pageNumber)
- Specified by:
getArtifactsin interfaceIDocument
-
getArtifacts
public List<IChunk> getArtifacts()
- Specified by:
getArtifactsin interfaceIDocument
-
-