public class Asn1BigDecimal extends Asn1Real
Modifier and Type | Field and Description |
---|---|
java.math.BigDecimal |
value
This public member variable is where the double value is
stored.
|
ANY_BASE, ANY_BINARY, BASE_2_ONLY, TAG
BIT_STRING, BMPString, BOOLEAN, DATE, DATE_TIME, DURATION, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, mNonParameterizedTypeName, NULL, NumericString, OBJECT_IDENTIFIER, ObjectDescriptor, OCTET_STRING, OID_IRI, OpenType, PrintableString, REAL, RELATIVE_OID_IRI, RelativeOID, SEQUENCE, SET, T61String, TeletexString, TIME, TIME_OF_DAY, UniversalString, UTCTime, UTF8String, VideotexString, VisibleString
Constructor and Description |
---|
Asn1BigDecimal()
The default constructor sets the double value to zero.
|
Asn1BigDecimal(java.math.BigDecimal value_)
This constructor creates an REAL object from a double value.
|
Asn1BigDecimal(double value_)
This constructor creates an REAL object from a double value.
|
Modifier and Type | Method and Description |
---|---|
void |
decodeXML(java.lang.String buffer,
java.lang.String attrs)
This method decodes an ASN.1 real value using the XML
schema encoding rules.
|
void |
encode(Asn1XmlEncoder buffer,
java.lang.String elemName,
java.lang.String nsPrefix)
This method encodes an xsd:BigDecimal value using the XML
Encoding as specified in the W3C XML schema standard.
|
void |
encodeAttribute(Asn1XmlEncoder buffer,
java.lang.String attrName)
This method encodes an ASN.1 real value using the XML
Encoding as specified in the W3C XML schema standard(asn2xsd).
|
java.lang.String |
encodeBigDecimal() |
boolean |
equals(double dvalue)
This method compares this REAL value to the given value
for equality.
|
boolean |
equals(java.lang.Object o)
This method compares this REAL value to the given Object
for equality.
|
java.lang.String |
toString()
This method will return a string representation of the REAL value.
|
decode, decode, decode, decode, decode, decode, decodeDouble, decodeSingle, decodeV72, decodeXER, encode, encode, encode, encode, encode, encode, encode, encode, encodeDouble, encodeSingle, encodeV72, encodeValue, getAsn1TypeName, hashCode, normalizedRealValueToString, skip
_setKey, _setLicLocation, clone, decode, decode, decode, decode, decode, decode, decode, decode, decode, decode, encode, encode, encode, encode, encode, encodeAsOpenType, equals, getLength, getNonParameterizedTypeName, getTypeName, indent, indent, isOpenType, matchTag, matchTag, pdiag, print, print, print, setNonParameterizedTypeName, setOpenType
public transient java.math.BigDecimal value
public Asn1BigDecimal()
public Asn1BigDecimal(double value_)
value_
- double valuepublic Asn1BigDecimal(java.math.BigDecimal value_)
value_
- double valuepublic void encode(Asn1XmlEncoder buffer, java.lang.String elemName, java.lang.String nsPrefix) throws java.io.IOException, Asn1Exception
encode
in class Asn1Real
buffer
- Encode message buffer objectelemName
- Element namensPrefix
- Element namespace prefix valuejava.io.IOException
- Any exception thrown by the underlying stream.Asn1Exception
- Thrown, if operation is failed.public void encodeAttribute(Asn1XmlEncoder buffer, java.lang.String attrName) throws Asn1Exception, java.io.IOException
encodeAttribute
in class Asn1Real
buffer
- Encode message buffer objectattrName
- Attribute namejava.io.IOException
- for any I/O errorAsn1Exception
public java.lang.String encodeBigDecimal()
public void decodeXML(java.lang.String buffer, java.lang.String attrs) throws Asn1Exception
decodeXML
in interface Asn1TypeIF
decodeXML
in class Asn1Real
buffer
- String containing data to be decodedattrs
- Attributes string from element tagAsn1Exception
public boolean equals(double dvalue)
public boolean equals(java.lang.Object o)
Asn1Real