com.objsys.asn1j.runtime
Class Asn1XmlAnyElem
java.lang.Object
com.objsys.asn1j.runtime.Asn1Type
com.objsys.asn1j.runtime.Asn1CharString
com.objsys.asn1j.runtime.Asn1UTF8String
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
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 |
Asn1XmlAnyElem()
The default constructor initializes the underlying UTF-8 string
object. |
Asn1XmlAnyElem(java.lang.String value)
This constructor sets the underlying XML string value. |
Methods inherited from class com.objsys.asn1j.runtime.Asn1CharString |
decode, decode, decode, decodeXER, decodeXML, encode, encode, encode, encode, equals, equals, getLength, toString |
Methods inherited from class com.objsys.asn1j.runtime.Asn1Type |
clone, decode, decode, decode, encode, encode, encode, encodeAttribute, getTypeName, indent, isOpenType, matchTag, matchTag, pdiag, print, setKey, setOpenType |
Methods inherited from class java.lang.Object |
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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.
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.
- Specified by:
encode
in interface Asn1TypeIF
- 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
- Thrown, if operation is failed.
java.io.IOException
- Any exception thrown by the underlying stream.
getSaxHandler
public Asn1XerSaxHandler getSaxHandler()