Package org.verapdf.gf.model.impl.cos
Class GFCosFileSpecification
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.cos.GFCosObject
-
- org.verapdf.gf.model.impl.cos.GFCosDict
-
- org.verapdf.gf.model.impl.cos.GFCosFileSpecification
-
- All Implemented Interfaces:
Object,CosDict,CosFileSpecification,CosObject
public class GFCosFileSpecification extends GFCosDict implements CosFileSpecification
- Author:
- Timur Kamalov
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOS_FILE_SPECIFICATION_TYPEType name for GFCosFileSpecificationstatic StringEF-
Fields inherited from class org.verapdf.gf.model.impl.cos.GFCosDict
COS_DICT_TYPE, KEYS, METADATA, VALUES
-
Fields inherited from class org.verapdf.gf.model.impl.cos.GFCosObject
baseObject, cosDocument, MAX_NUMBER_OF_ELEMENTS
-
Fields inherited from class org.verapdf.model.GenericModelObject
contextDependent
-
-
Constructor Summary
Constructors Constructor Description GFCosFileSpecification(COSDictionary dictionary)Default constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetAFRelationship()the relationship between the component of the PDF document that refers to this file specification and the associated file (/AFRelationship key)BooleangetcontainsEF()true if the file specification dictionary contains EF keyStringgetF()a file specification string (F key)BooleangetisAssociatedFile()true if the file specification dictionary is associated (=referenced by the /AF key) with at least one of the following objects: catalog, page, XObject, annotation or structure elementList<? extends Object>getLinkedObjects(String link)StringgetUF()a unicode file specification (UF key)-
Methods inherited from class org.verapdf.gf.model.impl.cos.GFCosDict
getkeysString, getsize
-
Methods inherited from class org.verapdf.gf.model.impl.cos.GFCosObject
getFromValue
-
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.coslayer.CosDict
getkeysString, getsize
-
Methods inherited from interface org.verapdf.model.baselayer.Object
getContext, getExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
-
-
-
Field Detail
-
COS_FILE_SPECIFICATION_TYPE
public static final String COS_FILE_SPECIFICATION_TYPE
Type name for GFCosFileSpecification- See Also:
- Constant Field Values
-
EF
public static final String EF
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFCosFileSpecification
public GFCosFileSpecification(COSDictionary dictionary)
Default constructor- Parameters:
dictionary- greenfield COSDictionary
-
-
Method Detail
-
getF
public String getF()
Description copied from interface:CosFileSpecificationa file specification string (F key)- Specified by:
getFin interfaceCosFileSpecification
-
getUF
public String getUF()
Description copied from interface:CosFileSpecificationa unicode file specification (UF key)- Specified by:
getUFin interfaceCosFileSpecification
-
getAFRelationship
public String getAFRelationship()
Description copied from interface:CosFileSpecificationthe relationship between the component of the PDF document that refers to this file specification and the associated file (/AFRelationship key)- Specified by:
getAFRelationshipin interfaceCosFileSpecification
-
getisAssociatedFile
public Boolean getisAssociatedFile()
Description copied from interface:CosFileSpecificationtrue if the file specification dictionary is associated (=referenced by the /AF key) with at least one of the following objects: catalog, page, XObject, annotation or structure element- Specified by:
getisAssociatedFilein interfaceCosFileSpecification
-
getcontainsEF
public Boolean getcontainsEF()
Description copied from interface:CosFileSpecificationtrue if the file specification dictionary contains EF key- Specified by:
getcontainsEFin interfaceCosFileSpecification
-
getLinkedObjects
public List<? extends Object> getLinkedObjects(String link)
- Specified by:
getLinkedObjectsin interfaceObject- Overrides:
getLinkedObjectsin classGFCosDict- Parameters:
link- - the name of a link- Returns:
- List of objects with the given link
-
-