Package org.eigenbase.xom

## Class CdataDef

- java.lang.Object
- - org.eigenbase.xom.TextDef
  - - org.eigenbase.xom.CdataDef

All Implemented Interfaces:
  `NodeDef`

    public class CdataDef
    extends TextDef

A `CdataDef` represents a CDATA element. It allows an `<Any>` element to have mixed children.

Since:
  3 October, 2001
Version:
  $Id: //open/util/resgen/src/org/eigenbase/xom/CdataDef.java#3 $
Author:
  jhyde

### Field Summary

### Fields inherited from class org.eigenbase.xom.TextDef

`asIs, s`

### Constructor Summary

Constructors
`CdataDef()`
`CdataDef​(java.lang.String s)`
`CdataDef​(DOMWrapper _def)`

### Method Summary

All Methods Instance Methods Concrete Methods
`void` `displayXML​(XMLOutput out, int indent)` Outputs this element definition in XML to any XMLOutput.
`int` `getType()` Returns the type of this element.

### Methods inherited from class org.eigenbase.xom.TextDef

`display, getChildren, getLocation, getName, getText, getWrapper`

### Methods inherited from class java.lang.Object

`clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

### Constructor Detail

#### CdataDef

    public CdataDef()

#### CdataDef

    public CdataDef​(java.lang.String s)

#### CdataDef

    public CdataDef​(DOMWrapper _def)
             throws XOMException

Throws:
  `XOMException`

### Method Detail

#### getType

    public int getType()

Description copied from interface: `NodeDef`
Returns the type of this element. Values are as for `DOMWrapper.getType()`.

Specified by:
  `getType` in interface `NodeDef`
Overrides:
  `getType` in class `TextDef`

#### displayXML

    public void displayXML​(XMLOutput out,
                           int indent)

Description copied from interface: `NodeDef`
Outputs this element definition in XML to any XMLOutput.

Specified by:
  `displayXML` in interface `NodeDef`
Overrides:
  `displayXML` in class `TextDef`
Parameters:
  `out` - the XMLOutput class to display the XML