XCMS Toolkit

schemajic.model
Class XEROpenType

java.lang.Object
  extended by schemajic.model.ASN1Value
      extended by schemajic.model.ASN1OpenType
          extended by schemajic.model.XEROpenType

public class XEROpenType
extends ASN1OpenType

Extends class ASN1OpenType to provide support for values of ASN.1 types encoded using the XML Encoding Rules (XER) of ASN.1.

Version:
1.00 - 2006/01/22
Author:
support@phillipgriffin.com

Constructor Summary
XEROpenType()
          Constructor for XEROpenType.
XEROpenType(ASN1Value decoded)
          Constructor for XEROpenType with ASN.1 value parameter.
XEROpenType(java.lang.String encoding)
          Sets the current XER encoding of an ASN.1 "open type"..
 
Method Summary
 boolean compareEncodingTo(ASN1ObjectIdentifier oid)
          Compare the encoding of this open type value to the encoding of the specified oid.
 byte[] getEncodedValue()
          Gets the XER encoded value of an "open type".
 java.lang.String getEncodingAsString()
          Gets the XER encoding of a value of an ASN.1 type as a string.
 byte[] getRawBinaryValue()
          Defines how a method would get the 'value' of a TLV encoding of an ASN.1 type as an unstructured (opaque) binary value.
 void setEncodedValue(byte[] encoding)
          Sets the XER encoded value of an "open type".
 
Methods inherited from class schemajic.model.ASN1OpenType
accept, getAsn1Type, getDecodedValue, isDecoded, setDecodedValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XEROpenType

public XEROpenType()
Constructor for XEROpenType.


XEROpenType

public XEROpenType(ASN1Value decoded)
Constructor for XEROpenType with ASN.1 value parameter.

Parameters:
decoded - a decoded value of an ASN.1 type

XEROpenType

public XEROpenType(java.lang.String encoding)
Sets the current XER encoding of an ASN.1 "open type"..

Method Detail

getEncodedValue

public byte[] getEncodedValue()
Gets the XER encoded value of an "open type".

Specified by:
getEncodedValue in class ASN1OpenType
Returns:
a encoded value of an ASN.1 type.

setEncodedValue

public void setEncodedValue(byte[] encoding)
Sets the XER encoded value of an "open type".

Specified by:
setEncodedValue in class ASN1OpenType
Parameters:
encoding - a byte array containing the encoding of a value of an ASN.1 type.

getEncodingAsString

public java.lang.String getEncodingAsString()
Gets the XER encoding of a value of an ASN.1 type as a string.

Specified by:
getEncodingAsString in class ASN1OpenType
Returns:
the current XER encoding

compareEncodingTo

public boolean compareEncodingTo(ASN1ObjectIdentifier oid)
                          throws java.io.IOException
Compare the encoding of this open type value to the encoding of the specified oid. If the encoded value in this open type is NOT an OBJECT IDENTIFIERs, throw an illegal argument exception.

Specified by:
compareEncodingTo in class ASN1OpenType
Parameters:
oid - an ASN.1 information object identifier value
Returns:
boolean true or false
Throws:
java.io.IOException

getRawBinaryValue

public byte[] getRawBinaryValue()
                         throws DecodingException,
                                java.io.IOException
Description copied from class: ASN1OpenType
Defines how a method would get the 'value' of a TLV encoding of an ASN.1 type as an unstructured (opaque) binary value.

Specified by:
getRawBinaryValue in class ASN1OpenType
Throws:
DecodingException
java.io.IOException

XCMS Toolkit


Copyright © 2005-2006 GRIFFIN Consulting. All Rights Reserved.