org.dlese.dpc.schemedit.autoform
Class SIFEditorRenderer
java.lang.Object
org.dlese.dpc.schemedit.autoform.Renderer
org.dlese.dpc.schemedit.autoform.RendererImpl
org.dlese.dpc.schemedit.autoform.EditorRenderer
org.dlese.dpc.schemedit.autoform.DleseEditorRenderer
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
Fields inherited from class org.dlese.dpc.schemedit.autoform.Renderer |
df, formBeanName, normalizedXPath, parent, repeatingComplexSingletonChildPath, rhelper, root, schemaNode, sh, typeDef, typeName, xpath |
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.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 |
SIFEditorRenderer
public SIFEditorRenderer()
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 renderedsiblingPath
- sibling path to support indexingindexId
- 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 renderedschemaNode
- schemaNode of node to be renderedtypeDef
- 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