Class WrapperElementDef

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, NodeDef

    public class WrapperElementDef
    extends ElementDef
    WrapperElementDef is an ElementDef which retains the underlying XML DOMWrapper. It is used when there is no specific class for this tag.
    Since:
    31 October, 2001
    Version:
    $Id: //open/util/resgen/src/org/eigenbase/xom/WrapperElementDef.java#3 $
    Author:
    jhyde
    See Also:
    Serialized Form
    • Field Detail

      • enclosure

        java.lang.Class enclosure
      • prefix

        java.lang.String prefix
    • Constructor Detail

      • WrapperElementDef

        public WrapperElementDef​(DOMWrapper def,
                                 java.lang.Class enclosure,
                                 java.lang.String prefix)
    • Method Detail

      • display

        public void display​(java.io.PrintWriter out,
                            int indent)
        Description copied from interface: NodeDef
        Outputs this node to any PrintWriter, in a formatted fashion with automatic indenting.
        Parameters:
        out - the PrintWriter to which to write this NodeDef.
        indent - the indentation level for the printout.
      • 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 ElementDef
        Parameters:
        out - the XMLOutput class to display the XML
      • getName

        public java.lang.String getName()
        Description copied from interface: NodeDef
        Returns the name of this node's tag.
        Specified by:
        getName in interface NodeDef
        Overrides:
        getName in class ElementDef