Class SchemaViewerForm

java.lang.Object
org.apache.struts.action.ActionForm
org.dlese.dpc.xml.schema.action.form.SchemaViewerForm
All Implemented Interfaces:
Serializable

public class SchemaViewerForm extends org.apache.struts.action.ActionForm
Controller for the SchemaViewer app.
Author:
ostwald
See Also:
  • Constructor Details

    • SchemaViewerForm

      public SchemaViewerForm()
      Constructor
  • Method Details

    • reset

      public void reset(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
      Overrides:
      reset in class org.apache.struts.action.ActionForm
    • getReportFunctions

      public String[] getReportFunctions()
    • getReportFunction

      public String getReportFunction()
    • setReportFunction

      public void setReportFunction(String fn)
    • getReport

      public Map getReport()
    • setReport

      public void setReport(Map rpt)
    • getFrameworks

      public List getFrameworks()
      Gets the frameworks attribute of the SchemaViewerForm object
      Returns:
      The frameworks value
    • setFrameworks

      public void setFrameworks(List list)
      Sets the frameworks attribute of the SchemaViewerForm object
      Parameters:
      list - The new frameworks value
    • getSelectedFrameworks

      public String[] getSelectedFrameworks()
    • setSelectedFrameworks

      public void setSelectedFrameworks(String[] sf)
    • getDisplayType

      public String getDisplayType()
      Gets the displayType attribute of the SchemaViewerForm object
      Returns:
      The displayType value
    • getDisplaySchemaNode

      public String getDisplaySchemaNode()
      Gets the displaySchemaNode attribute of the SchemaViewerForm object
      Returns:
      The displayItem value
    • getPath

      public String getPath()
      Gets the path attribute of the SchemaViewerForm object
      Returns:
      The path value
    • setPath

      public void setPath(String path)
      Sets the path attribute of the SchemaViewerForm object
      Parameters:
      path - The new path value
    • getTypeName

      public String getTypeName()
      Gets the typeName attribute of the SchemaViewerForm object
      Returns:
      The typeName value
    • setTypeName

      public void setTypeName(String s)
    • getSchemaNode

      public SchemaNode getSchemaNode()
      Gets the schemaNode attribute of the SchemaViewerForm object
      Returns:
      The schemaNode value
    • getSchemaNodeName

      public String getSchemaNodeName()
    • setSchemaNode

      public void setSchemaNode(SchemaNode schemaNode)
      Sets the schemaNode attribute of the SchemaViewerForm object
      Parameters:
      schemaNode - The new schemaNode valueead
    • getSchemaNodeIsRequired

      public boolean getSchemaNodeIsRequired()
    • getSchemaNodeIsAttribute

      public boolean getSchemaNodeIsAttribute()
    • getSchemaNodeIsElement

      public boolean getSchemaNodeIsElement()
    • getSubstitutionGroupMembers

      public List getSubstitutionGroupMembers()
    • getHeadElement

      public String getHeadElement()
    • getGlobalDef

      public GlobalDef getGlobalDef()
      Gets the globalDef attribute of the SchemaViewerForm object
      Returns:
      The globalDef value
    • setGlobalDef

      public void setGlobalDef(GlobalDef def)
      Sets the globalDef attribute of the SchemaViewerForm object
      Parameters:
      def - The new globalDef value
    • getIsSimpleType

      public boolean getIsSimpleType()
    • getIsComplexType

      public boolean getIsComplexType()
    • getDefIsEnumeration

      public boolean getDefIsEnumeration()
    • getDefIsUnion

      public boolean getDefIsUnion()
    • getDefIsBuiltin

      public boolean getDefIsBuiltin()
    • getFramework

      public MetaDataFramework getFramework()
      Gets the globalDef attribute of the SchemaViewerForm object
      Returns:
      The globalDef value
    • setFramework

      public void setFramework(MetaDataFramework mdf)
      Sets the framework attribute of the SchemaViewerForm object
      Parameters:
      mdf - The new framework value
    • getFrameworkName

      public String getFrameworkName()
      Gets the globalDef attribute of the SchemaViewerForm object
      Returns:
      The globalDef value
    • setFrameworkName

      public void setFrameworkName(String val)
      Sets the framework attribute of the SchemaViewerForm object
      Parameters:
      val - The new framework value
    • getTypeElement

      public String getTypeElement()
      Gets the typeElement attribute of the SchemaViewerForm object
      Returns:
      The typeElement value
    • getPrettyTypeElement

      public String getPrettyTypeElement()
      Gets the prettyTypeElement attribute of the SchemaViewerForm object
      Returns:
      The prettyTypeElement value
    • getMinimalTree

      public String getMinimalTree()
      Gets the minimalTree attribute of the SchemaViewerForm object
      Returns:
      The minimalTree value
    • getBreadCrumbs

      public String getBreadCrumbs()
      Gets the breadCrumbs attribute of the SchemaViewerForm object
      Returns:
      The breadCrumbs value
    • setSchemaHelper

      public void setSchemaHelper(SchemaHelper schemaHelper)
      Sets the schemaHelper attribute of the SchemaViewerForm object
      Parameters:
      schemaHelper - The new schemaHelper value
    • getSchemaHelper

      public SchemaHelper getSchemaHelper()
      Gets the schemaHelper attribute of the SchemaViewerForm object
      Returns:
      The schemaHelper value
    • setVocab

      public void setVocab(MetadataVocab vocab)
      Constructor for the setVocab object
      Parameters:
      vocab -
    • getVocab

      public MetadataVocab getVocab()
      Gets the vocab attribute of the SchemaViewerForm object
      Returns:
      The vocab value
    • getUnionMembers

      public String[] getUnionMembers()
    • getEnumerationOptions

      public List getEnumerationOptions()
    • getEnumerationOptions

      public org.apache.struts.util.LabelValueBean[] getEnumerationOptions(String xpath)
      Gets the enumerationOptions attribute of the SchemaViewerForm object
      Parameters:
      xpath - Description of the Parameter
      Returns:
      The enumerationOptions value
    • getSelectOptions

      public org.apache.struts.util.LabelValueBean[] getSelectOptions(String xpath)
      Gets the selectOptions attribute of the SchemaViewerForm object
      Parameters:
      xpath - Description of the Parameter
      Returns:
      The selectOptions value
    • prtln

      protected final void prtln(String s)
      Output a line of text to standard out, with datestamp, if debug is set to true.
      Parameters:
      s - The String that will be output.