XML Deployment Adapters

com.stylusstudio.xmlpipeline.runtime
Class ContentType

java.lang.Object
  extended bycom.stylusstudio.xmlpipeline.runtime.ContentType

public class ContentType
extends Object

The static fields of this class are used to identify what type of data is being processed by a Stylus Studio XML Pipeline. When a node in a pipeline generates output data, the data object will be associated with a ContentType value. That value is used as a hint for subsequent pipeline nodes to interpret the data properly. For example, if a data object has ContentType.CONTENT_TEXT, then subsequent nodes will avoid parsing the data as xml data. This is, however, only a hint. If, for example, an XQuery node is required to bind an input data object to an external variable which is declared to be a document-node(), then the XQuery node will attempt to parse the data object to create a DOM, not matter which ContentType the data object is associated with.
If an XML Pipeline is embedded in a java program using the interface PipelineOperation, the caller program can bind data objects to the pipeline. The caller passes one of the static fields of this class when binding the input data. The pipeline will then associate the data object with the specified content type.


Field Summary
static ContentType BINARY
          Indicates that the associated data object contains binary data.
static ContentType HTML
          Indicates that the associated data object contains html data.
static ContentType TEXT
          Indicates that the associated data object contains text (character string) data.
static ContentType UNKNOWN
          Indicates that the content type of the associated data item is unknown.
static ContentType XML
          Indicates that the associated data object contains well-formed xml data.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

UNKNOWN

public static final ContentType UNKNOWN
Indicates that the content type of the associated data item is unknown.


TEXT

public static final ContentType TEXT
Indicates that the associated data object contains text (character string) data.


HTML

public static final ContentType HTML
Indicates that the associated data object contains html data.


XML

public static final ContentType XML
Indicates that the associated data object contains well-formed xml data.


BINARY

public static final ContentType BINARY
Indicates that the associated data object contains binary data. An example of this would be .pdf output from an FO operation.



XML Deployment Adapters