Class MdeDerivedTextOnlyModel


public class MdeDerivedTextOnlyModel extends MdeComplexType
Class responsible for rendering a Text-only content model, which is a complexType that uses a simpleContent element. SimpleContent elements have base element that is "extended" by adding attributes.

An example text-only model definition:

  invalid input: '<'xsd:complexType>
    invalid input: '<'xsd:simpleContent>
      invalid input: '<'xsd:extension base="xsd:string">
        invalid input: '<'xsd:attribute name="URL" type="stringTextType" use="required"/>
      invalid input: '<'/xsd:extension> invalid input: '<'/xsd:simpleContent> invalid input: '<'/xsd:complexType> 
Author:
ostwald

  • Constructor Details

    • MdeDerivedTextOnlyModel

      public MdeDerivedTextOnlyModel(RendererImpl renderer)
      Constructor for the MdeDerivedTextOnlyModel object
      Parameters:
      renderer - NOT YET DOCUMENTED
  • Method Details

    • render

      public void render()
      The base element is rendered as the base type before rendering the children. NOTE: we can't assume the base element is a SimpleType!invalid input: '<'
      Overrides:
      render in class MdeComplexType
    • renderTextExtensionElement

      protected void renderTextExtensionElement()
      Render the extension element of a Derived Text-Only Model.

      This method implemented so it can be overridden in DleseEditorRenderer to suppress display under certain circumstances.

    • setDebug

      public static void setDebug(boolean bool)
      Sets the debug attribute of the MdeDerivedTextOnlyModel class
      Parameters:
      bool - The new debug value
    • prtln

      protected void prtln(String s)
      NOT YET DOCUMENTED
      Overrides:
      prtln in class MdeComplexType
      Parameters:
      s - NOT YET DOCUMENTED