|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.objsys.asn1j.runtime.Asn1Type com.objsys.asn1j.runtime.Asn1Real com.objsys.asn1j.runtime.Asn1BigDecimal
public class Asn1BigDecimal
This class represents the Xml Schema BigDecimal built-in type.
Field Summary | |
---|---|
java.math.BigDecimal |
value
This public member variable is where the double value is stored. |
Fields inherited from class com.objsys.asn1j.runtime.Asn1Real |
---|
TAG |
Fields inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
BIT_STRING, BMPString, BOOLEAN, DATE, DATE_TIME, DURATION, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, mAsn1TypeName, 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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class com.objsys.asn1j.runtime.Asn1Real |
---|
decode, decode, decode, decodeXER, encode, encode, encode, encode, encode, encode, encode, encodeValue, getAsn1TypeName, hashCode, normalizedRealValueToString |
Methods inherited from class com.objsys.asn1j.runtime.Asn1Type |
---|
clone, decode, decode, decode, decode, decode, encode, encode, equals, getLength, getTypeName, indent, isOpenType, matchTag, matchTag, pdiag, print, setKey, setOpenType |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public transient java.math.BigDecimal value
Constructor Detail |
---|
public Asn1BigDecimal()
public Asn1BigDecimal(double value_)
value_
- double valuepublic Asn1BigDecimal(java.math.BigDecimal value_)
value_
- double valueMethod Detail |
---|
public 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 name
java.io.IOException
Asn1Exception
public void encodeAttribute(Asn1XmlEncoder buffer, java.lang.String attrName) throws Asn1Exception, java.io.IOException
encodeAttribute
in class Asn1Real
buffer
- Encode message buffer objectattrName
- Attribute name
Asn1Exception
java.io.IOException
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 tag
Asn1Exception
public boolean equals(double dvalue)
equals
in class Asn1Real
dvalue
- REAL test valuepublic boolean equals(java.lang.Object o)
Asn1Real
equals
in class Asn1Real
public java.lang.String toString()
toString
in class Asn1Real
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |