Package org.verapdf.gf.model.impl.cos
Class GFCosString
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.cos.GFCosObject
-
- org.verapdf.gf.model.impl.cos.GFCosString
-
- Direct Known Subclasses:
GFCosActualText
,GFCosTextString
public class GFCosString extends GFCosObject implements CosString
- Author:
- Timur Kamalov
-
-
Field Summary
Fields Modifier and Type Field Description static String
COS_STRING_TYPE
Type name for GFCosString-
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 GFCosString(COSString cosString)
Default constructorGFCosString(COSString cosString, String type)
Constructor for child classes
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Boolean
getcontainsOnlyHex()
true if all symbols below range 0-9,a-f,A-FLong
gethexCount()
contains original hexa string lengthBoolean
getisHex()
true if the string is stored in Hex formatString
getvalue()
Get string value stored in the PDF object-
Methods inherited from class org.verapdf.gf.model.impl.cos.GFCosObject
getFromValue
-
Methods inherited from class org.verapdf.model.GenericModelObject
getContext, getExtraContext, getID, getLinkedObjects, 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, getLinkedObjects, getLinks, getObjectType, getProperties, getSuperTypes, isContextDependent
-
-
-
-
Field Detail
-
COS_STRING_TYPE
public static final String COS_STRING_TYPE
Type name for GFCosString- See Also:
- Constant Field Values
-
-
Constructor Detail
-
GFCosString
public GFCosString(COSString cosString)
Default constructor- Parameters:
cosString
- greenfield COSString
-
-
Method Detail
-
getvalue
public String getvalue()
Get string value stored in the PDF object
-
getisHex
public Boolean getisHex()
true if the string is stored in Hex format
-
getcontainsOnlyHex
public Boolean getcontainsOnlyHex()
true if all symbols below range 0-9,a-f,A-F- Specified by:
getcontainsOnlyHex
in interfaceCosString
-
gethexCount
public Long gethexCount()
contains original hexa string length- Specified by:
gethexCount
in interfaceCosString
-
-