Package com.oss.metadata
Class RealInfo
java.lang.Object
com.oss.metadata.TypeInfo
com.oss.metadata.RealInfo
The RealInfo class represents the properties of an ASN.1 REAL type.
- Since:
- ASN.1/Java 6.0
-
Method Summary
Methods inherited from class com.oss.metadata.TypeInfo
createInstance, createInstance, forName, forName, getASN1ModuleName, getASN1TypeName, getClassName, getConstraints, getJavaClass, getJavaClass, getName, getTags, isExtensible, isNullable, isPrimitive, isSimpleType, isSorted, isUseableByBER, isUseableByCER, isUseableByDER, isUseableByEXER, isUseableByJSON, isUseableByOER, isUseableByPER, isUseableByXER, isUserClass, isUseThreadContextClassLoader, setUseThreadContextClassLoader
-
Method Details
-
getSize
public int getSize()Returns a byte-size of a real variable that is suitable to hold all the values of constrained REAL type. Possible sizes are 4 and 8. 0 is returned is type has no constraints or does not fit to single or double-precision floating point value.- Returns:
- real variable byte size.
-
getFormat
public int getFormat()Returns the format in which the REAL type is represented. Possible formats are: 6 - as JSON number (base 10 implied) 2 - as JSON number (base 2 implied) 0 - as JSON object with the "base10Value" property.- Returns:
- format of the real.
-