DLESE Tools
v1.6.0

org.dlese.dpc.schemedit.autoform
Class SIFEditorRenderer

java.lang.Object
  extended by org.dlese.dpc.schemedit.autoform.Renderer
      extended by org.dlese.dpc.schemedit.autoform.RendererImpl
          extended by org.dlese.dpc.schemedit.autoform.EditorRenderer
              extended by org.dlese.dpc.schemedit.autoform.DleseEditorRenderer
                  extended by org.dlese.dpc.schemedit.autoform.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


Field Summary
 
Fields inherited from class org.dlese.dpc.schemedit.autoform.RendererImpl
DISPLAY_MODE, EDIT_MODE
 
Fields inherited from class org.dlese.dpc.schemedit.autoform.Renderer
df, formBeanName, normalizedXPath, parent, repeatingComplexSingletonChildPath, rhelper, root, schemaNode, sh, typeDef, typeName, xpath
 
Constructor Summary
SIFEditorRenderer()
           
 
Method Summary
 String getLabelText(String xpath, String siblingPath, String indexId)
          Removes namespace prefix from label text
protected  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).
 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.
static void setDebug(boolean bool)
          Sets the debug attribute of the SIFEditorRenderer class
 
Methods inherited from class org.dlese.dpc.schemedit.autoform.DleseEditorRenderer
getMultiBoxInput, getSelectInput, renderRepeatingElement
 
Methods inherited from class org.dlese.dpc.schemedit.autoform.EditorRenderer
getCollapseWidget, getComplexTypeLabel, getMultiBoxLabel, getSimpleTypeLabel
 
Methods inherited from class org.dlese.dpc.schemedit.autoform.RendererImpl
bestPracticesLink, doInit, getBooleanInput, getComboUnionInput, getComplexTypeLabel, getDeleteController, getInputElement, getInputHelperElement, getLanguageInput, getMultiSelectInput, getOptionalItemControl, getReadOnlyElement, getRenderedField, getRenderedField, getRenderMode, getShowNSPrefixInLabels, getSimpleTypeLabel, getTextAreaInput, getTextAreaInput, getToolHelp, getXpath, isDisplayMode, isEditMode, renderAttribute, renderChoice, renderComplexTypeConcrete, renderDerivedContentModel, renderDerivedTextOnlyModel, renderInputElement, renderModelGroup, renderRepeatingSubstitutionGroup, renderSequence, renderSimpleTypeConcrete, renderSubElements, renderSubElements, renderSubElements, report, setRenderMode, setShowNSPrefixInLabels, showXsdStringElement
 
Methods inherited from class org.dlese.dpc.schemedit.autoform.Renderer
doInit, getDiv, getDiv, getLevel, getSchemaNamespace, getSchemaNSPrefix, getXmlFormat, init, jspQuotedString, renderComplexType, renderSimpleType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SIFEditorRenderer

public SIFEditorRenderer()
Method Detail

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 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

DLESE Tools
v1.6.0