com.objsys.asn1j.runtime
Class Asn1XmlExternal_encoding

java.lang.Object
  extended bycom.objsys.asn1j.runtime.Asn1Type
      extended bycom.objsys.asn1j.runtime.Asn1Choice
          extended bycom.objsys.asn1j.runtime.Asn1XmlExternal_encoding
All Implemented Interfaces:
Asn1TypeIF, java.lang.Cloneable, java.io.Serializable

public class Asn1XmlExternal_encoding
extends Asn1Choice

See Also:
Serialized Form

Nested Class Summary
 class Asn1XmlExternal_encoding.SaxHandler
           
 
Field Summary
static byte _ARBITRARY
           
 java.lang.String _mTypeName
           
static byte _OCTET_ALIGNED
           
static byte _SINGLE_ASN1_TYPE
           
 
Fields inherited from class com.objsys.asn1j.runtime.Asn1Choice
choiceID, element
 
Fields inherited from class com.objsys.asn1j.runtime.Asn1Type
BIT_STRING, BMPString, BOOLEAN, ENUMERATED, EOC, EXTERNAL, GeneralString, GeneralTime, GraphicString, IA5String, INTEGER, NULL, NumericString, OBJECT_IDENTIFIER, ObjectDescriptor, OCTET_STRING, OpenType, PrintableString, REAL, RelativeOID, SEQUENCE, SET, T61String, TeletexString, UniversalString, UTCTime, UTF8String, VideotexString, VisibleString
 
Constructor Summary
Asn1XmlExternal_encoding()
           
Asn1XmlExternal_encoding(byte choiceId_, Asn1Type element_)
           
 
Method Summary
 void decode(Asn1BerDecodeBuffer buffer, boolean explicit, int implicitLength)
          This method is used to decode a message that is encoded in BER or DER format.
 void decode(Asn1PerDecodeBuffer buffer)
          This method is the base implementation of the standard Packed Encoding Rules (PER) decode method.
 void decode(java.lang.Object reader_, java.io.InputStream inputStream)
          This method declaration is the signature of the standard XML Encoding Rules (XER) decode method.
 void decode(java.lang.Object reader_, java.lang.String xmlURI)
          This method declaration is the signature of the standard XML Encoding Rules (XER) decode method.
 int encode(Asn1BerEncodeBuffer buffer, boolean explicit)
          This method is used to encode this data type in BER or DER format.
 void encode(Asn1BerOutputStream out, boolean explicit)
          This method writes to the stream an encoded ASN.1 type value including the UNIVERSAL tag value and length if explicit tagging is specified.
 void encode(Asn1PerEncodeBuffer buffer)
          This method is the base implementation of the standard Packed Encoding Rules (PER) encode method.
 void encode(Asn1XmlEncoder buffer, java.lang.String elemName, java.lang.String nsPrefix)
          This method is the base implementation of the standard XML Encoding as specified in the XML schema standard(asn2xsd).
 java.lang.String getElemName()
          This abstract method return the name of the selected element.
 Asn1XerSaxHandler getSaxHandler()
           
 boolean matchTypeName(java.lang.String typeName)
           
 void print(java.io.PrintStream _out, java.lang.String _varName, int _level)
          This method will format and output a primitive value to the given print stream.
 void set_arbitrary(Asn1BitString value)
           
 void set_octet_aligned(Asn1OctetString value)
           
 void set_single_ASN1_type(Asn1XerOpenType value)
           
 
Methods inherited from class com.objsys.asn1j.runtime.Asn1Choice
equals, getChoiceID, getElement, setElement
 
Methods inherited from class com.objsys.asn1j.runtime.Asn1Type
clone, decode, decodeXML, encode, encode, encode, encode, encode, encodeAttribute, getLength, getTypeName, indent, isOpenType, matchTag, matchTag, pdiag, setKey, setOpenType
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

_SINGLE_ASN1_TYPE

public static final byte _SINGLE_ASN1_TYPE
See Also:
Constant Field Values

_OCTET_ALIGNED

public static final byte _OCTET_ALIGNED
See Also:
Constant Field Values

_ARBITRARY

public static final byte _ARBITRARY
See Also:
Constant Field Values

_mTypeName

public java.lang.String _mTypeName
Constructor Detail

Asn1XmlExternal_encoding

public Asn1XmlExternal_encoding()

Asn1XmlExternal_encoding

public Asn1XmlExternal_encoding(byte choiceId_,
                                Asn1Type element_)
Method Detail

getElemName

public java.lang.String getElemName()
Description copied from class: Asn1Choice
This abstract method return the name of the selected element. A concrete version is generated by the compiler.

Specified by:
getElemName in class Asn1Choice

set_single_ASN1_type

public void set_single_ASN1_type(Asn1XerOpenType value)

set_octet_aligned

public void set_octet_aligned(Asn1OctetString value)

set_arbitrary

public void set_arbitrary(Asn1BitString value)

decode

public void decode(Asn1BerDecodeBuffer buffer,
                   boolean explicit,
                   int implicitLength)
            throws Asn1Exception,
                   java.io.IOException
Description copied from class: Asn1Type
This method is used to decode a message that is encoded in BER or DER format.

Specified by:
decode in interface Asn1TypeIF
Overrides:
decode in class Asn1Type
Parameters:
buffer - Decode message buffer object
explicit - Flag indicating explicit tag should be parsed from the encoded type.
implicitLength - Length of the contents field (only required if explicit is false).
Returns:
Decoded integer value
Throws:
Asn1Exception
java.io.IOException

encode

public int encode(Asn1BerEncodeBuffer buffer,
                  boolean explicit)
           throws Asn1Exception
Description copied from class: Asn1Type
This method is used to encode this data type in BER or DER format.

Specified by:
encode in interface Asn1TypeIF
Overrides:
encode in class Asn1Type
Parameters:
buffer - Encode message buffer object
explicit - Flag indicating explicit tag should be added to the encoded type.
Returns:
Decoded integer value
Throws:
Asn1Exception

encode

public void encode(Asn1BerOutputStream out,
                   boolean explicit)
            throws Asn1Exception,
                   java.io.IOException
Description copied from class: Asn1Type
This method writes to the stream an encoded ASN.1 type value including the UNIVERSAL tag value and length if explicit tagging is specified. This overloaded version uses the Basic Encoding Rules (BER).

Specified by:
encode in interface Asn1TypeIF
Overrides:
encode in class Asn1Type
Parameters:
out - BER Output Stream object
explicit - Flag indicating explicit tagging should be done
Throws:
Asn1Exception - Thrown, if operation is failed.
java.io.IOException - Any exception thrown by the underlying OutputStream.

decode

public void decode(Asn1PerDecodeBuffer buffer)
            throws Asn1Exception,
                   java.io.IOException
Description copied from class: Asn1Type
This method is the base implementation of the standard Packed Encoding Rules (PER) decode method. It throws an exception because it should never be invoked by compiler generated code.

Specified by:
decode in interface Asn1TypeIF
Overrides:
decode in class Asn1Type
Parameters:
buffer - PER Encode message buffer object
Throws:
Asn1Exception
java.io.IOException

encode

public void encode(Asn1PerEncodeBuffer buffer)
            throws Asn1Exception,
                   java.io.IOException
Description copied from class: Asn1Type
This method is the base implementation of the standard Packed Encoding Rules (PER) encode method. It throws an exception because it should never be invoked by compiler generated code.

Specified by:
encode in interface Asn1TypeIF
Overrides:
encode in class Asn1Type
Parameters:
buffer - PER Encode message buffer object
Throws:
Asn1Exception
java.io.IOException

decode

public void decode(java.lang.Object reader_,
                   java.lang.String xmlURI)
            throws Asn1Exception,
                   java.io.IOException
Description copied from class: Asn1Type
This method declaration is the signature of the standard XML Encoding Rules (XER) decode method.

Specified by:
decode in interface Asn1TypeIF
Overrides:
decode in class Asn1Type
Parameters:
reader_ - XML reader object
xmlURI - URI of a source
Throws:
Asn1Exception - Thrown, if operation is failed.
java.io.IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

decode

public void decode(java.lang.Object reader_,
                   java.io.InputStream inputStream)
            throws Asn1Exception,
                   java.io.IOException
Description copied from class: Asn1Type
This method declaration is the signature of the standard XML Encoding Rules (XER) decode method.

Specified by:
decode in interface Asn1TypeIF
Overrides:
decode in class Asn1Type
Parameters:
reader_ - XML reader object
inputStream - Input byte stream object
Throws:
Asn1Exception - Thrown, if operation is failed.
java.io.IOException - An IO exception from the parser, possibly from a byte stream or character stream supplied by the application.

matchTypeName

public boolean matchTypeName(java.lang.String typeName)

getSaxHandler

public Asn1XerSaxHandler getSaxHandler()

encode

public void encode(Asn1XmlEncoder buffer,
                   java.lang.String elemName,
                   java.lang.String nsPrefix)
            throws Asn1Exception,
                   java.io.IOException
Description copied from class: Asn1Type
This method is the base implementation of the standard XML Encoding as specified in the XML schema standard(asn2xsd). It throws an exception because it should never be invoked by compiler generated code.

Specified by:
encode in interface Asn1TypeIF
Overrides:
encode in class Asn1Type
Parameters:
buffer - XML Encode message buffer object
elemName - XML element name of item
nsPrefix - Element namespace prefix value
Throws:
Asn1Exception - Thrown, if operation is failed.
java.io.IOException - Any exception thrown by the underlying stream.

print

public void print(java.io.PrintStream _out,
                  java.lang.String _varName,
                  int _level)
Description copied from class: Asn1Type
This method will format and output a primitive value to the given print stream.

Specified by:
print in interface Asn1TypeIF
Overrides:
print in class Asn1Type
Parameters:
_out - Print output stream
_varName - Name of variable
_level - Indentation level