|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.stylusstudio.xmlpipeline.runtime.ContentType
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 |
public static final ContentType UNKNOWN
public static final ContentType TEXT
public static final ContentType HTML
public static final ContentType XML
public static final ContentType BINARY
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |