Package org.verapdf.gf.model.impl.cos
Class GFCosNumber
- java.lang.Object
-
- org.verapdf.model.GenericModelObject
-
- org.verapdf.gf.model.impl.cos.GFCosObject
-
- org.verapdf.gf.model.impl.cos.GFCosNumber
-
- Direct Known Subclasses:
GFCosInteger,GFCosReal
public class GFCosNumber extends GFCosObject implements CosNumber
- Author:
- Timur Kamalov
-
-
Field Summary
-
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 protectedGFCosNumber(COSNumber number, String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static GFCosNumberfromPDFParserNumber(COSBase number)LonggetintValue()Get truncated integer valueDoublegetrealValue()Get original decimal valueStringgetstringValue()Get the string representing this 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
-
-
-
-
Method Detail
-
fromPDFParserNumber
public static GFCosNumber fromPDFParserNumber(COSBase number)
-
getstringValue
public String getstringValue()
Get the string representing this object- Specified by:
getstringValuein interfaceCosNumber
-
getintValue
public Long getintValue()
Get truncated integer value- Specified by:
getintValuein interfaceCosNumber
-
getrealValue
public Double getrealValue()
Get original decimal value- Specified by:
getrealValuein interfaceCosNumber
-
-