com.objsys.asn1j.runtime
Class Asn1XmlAnyElem

java.lang.Object
  extended by com.objsys.asn1j.runtime.Asn1Type
      extended by com.objsys.asn1j.runtime.Asn1CharString
          extended by com.objsys.asn1j.runtime.Asn1UTF8String
              extended by com.objsys.asn1j.runtime.Asn1XmlAnyElem
All Implemented Interfaces:
Asn1TypeIF, java.io.Serializable, java.lang.Cloneable

public class Asn1XmlAnyElem
extends Asn1UTF8String

This is a container class for holding the components of an XSD any element wildcard (xsd:any) type. The string contained within this object must be a well-formed XML fragment.

See Also:
Serialized Form

Nested Class Summary
 class Asn1XmlAnyElem.XsdAnySaxHandler
           
 
Field Summary
 
Fields inherited from class com.objsys.asn1j.runtime.Asn1UTF8String
TAG
 
Fields inherited from class com.objsys.asn1j.runtime.Asn1CharString
mStringBuffer, value
 
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, 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
Asn1XmlAnyElem()
          The default constructor initializes the underlying UTF-8 string object.
Asn1XmlAnyElem(java.lang.String value)
          This constructor sets the underlying XML string value.
 
Method Summary
 void encode(Asn1XmlEncoder buffer, java.lang.String elemName, java.lang.String nsPrefix)
          This method encodes the string in XML format.
 Asn1XerSaxHandler getSaxHandler()
           
 
Methods inherited from class com.objsys.asn1j.runtime.Asn1UTF8String
decode, decode, decode, decode, decodeUTF8, encode, encode, encode, encode, encode, encode, encode, encode, encode, setAnyAttribute
 
Methods inherited from class com.objsys.asn1j.runtime.Asn1CharString
decode, decode, decode, decode, decodeXER, decodeXML, encode, encode, encode, encode, encode, equals, equals, getLength, hashCode, toString, validate
 
Methods inherited from class com.objsys.asn1j.runtime.Asn1Type
clone, decode, decode, decode, decode, decode, encode, encode, equals, getTypeName, indent, isOpenType, matchTag, matchTag, pdiag, print, setKey, setOpenType
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Asn1XmlAnyElem

public Asn1XmlAnyElem()
The default constructor initializes the underlying UTF-8 string object.


Asn1XmlAnyElem

public Asn1XmlAnyElem(java.lang.String value)
This constructor sets the underlying XML string value. It must contain well-formed XML text unless encoding is to be done using an explicit element name.

Parameters:
value - String containing well-formed XML text.
Method Detail

encode

public void encode(Asn1XmlEncoder buffer,
                   java.lang.String elemName,
                   java.lang.String nsPrefix)
            throws Asn1Exception,
                   java.io.IOException
This method encodes the string in XML format. It does a basic well-formedness check on the content to make sure the string contains a valid XML fragment. It then copies the text to the output buffer or stream.

Overrides:
encode in class Asn1CharString
Parameters:
buffer - XML encode buffer or stream object.
elemName - Local name of the element (if any).
nsPrefix - Namespace prefix (if any).
Throws:
Asn1Exception
java.io.IOException

getSaxHandler

public Asn1XerSaxHandler getSaxHandler()