Package org.verapdf.gf.model.impl.cos
Class GFCosDict
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.cos.GFCosObject
-
- org.verapdf.gf.model.impl.cos.GFCosDict
-
- Direct Known Subclasses:
GFCosFileSpecification,GFCosInfo,GFCosStream,GFCosTrailer
public class GFCosDict extends GFCosObject implements CosDict
- Author:
- Timur Kamalov
-
-
Field Summary
Fields Modifier and Type Field Description static StringCOS_DICT_TYPEstatic StringKEYSstatic StringMETADATAstatic StringVALUES-
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 Modifier Constructor Description GFCosDict(COSDictionary dictionary)Default constructorprotectedGFCosDict(COSDictionary dictionary, String type)Constructor used by child classes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetkeysString()ampersand separated list of all keys of the dictionaryList<? extends Object>getLinkedObjects(String link)Longgetsize()Get number of key/value pairs in the dictionary-
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.baselayer.Object
getContext, getExtraContext, getID, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
-
-
-
Field Detail
-
COS_DICT_TYPE
public static final String COS_DICT_TYPE
- See Also:
- Constant Field Values
-
KEYS
public static final String KEYS
- See Also:
- Constant Field Values
-
VALUES
public static final String VALUES
- See Also:
- Constant Field Values
-
METADATA
public static final String METADATA
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFCosDict
public GFCosDict(COSDictionary dictionary)
Default constructor- Parameters:
dictionary- greenfield COSDictionary
-
GFCosDict
protected GFCosDict(COSDictionary dictionary, String type)
Constructor used by child classes- Parameters:
dictionary- greenfield COSDictionarytype- type of child class
-
-
Method Detail
-
getsize
public Long getsize()
Get number of key/value pairs in the dictionary
-
getkeysString
public String getkeysString()
Description copied from interface:CosDictampersand separated list of all keys of the dictionary- Specified by:
getkeysStringin interfaceCosDict
-
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
-
-