Class SIFEditorRenderer


public class SIFEditorRenderer extends DleseEditorRenderer
Renders JSP for SIF (Schools Interoperability Framework) metadata frameworks, adding functionality for selecting from SIF objects, and other sif-specific input objects.
Author:
ostwald

  • Constructor Details

    • SIFEditorRenderer

      public SIFEditorRenderer()
  • Method Details

    • renderNode

      public void renderNode()
      Suppress rendering of SIF_ExtendedElements field, which includes "any" construct and does not (at this point) contain any fields we need to supply.
      Overrides:
      renderNode in class Renderer
    • getLabelText

      public String getLabelText(String xpath, String siblingPath, String indexId)
      Removes namespace prefix from label text
      Overrides:
      getLabelText in class RendererImpl
      Parameters:
      xpath - path to element to be rendered
      siblingPath - sibling path to support indexing
      indexId - indexId to support indexing
      Returns:
      The labelText value
    • getTextInput

      protected org.dom4j.Element getTextInput(String xpath, SchemaNode schemaNode, GlobalDef typeDef)
      Renders a textInput element using the sifRefId tag, which supports hooks to the SIF Object finder and creators to aid user in suppling a sifRefId (Reference ID to existing SIF object).
      Overrides:
      getTextInput in class DleseEditorRenderer
      Parameters:
      xpath - xpath of node to be rendered
      schemaNode - schemaNode of node to be rendered
      typeDef - typeDef
      Returns:
      The textInput value
    • setDebug

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