DLESE Tools
v1.6.0

org.dlese.dpc.xml.schema.action.form
Class SchemaViewerForm

java.lang.Object
  extended by org.apache.struts.action.ActionForm
      extended by 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:
Serialized Form

Field Summary
 
Fields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet
 
Constructor Summary
SchemaViewerForm()
          Constructor
 
Method Summary
 String getBreadCrumbs()
          Gets the breadCrumbs attribute of the SchemaViewerForm object
 boolean getDefIsBuiltin()
           
 boolean getDefIsEnumeration()
           
 boolean getDefIsUnion()
           
 String getDisplaySchemaNode()
          Gets the displaySchemaNode attribute of the SchemaViewerForm object
 String getDisplayType()
          Gets the displayType attribute of the SchemaViewerForm object
 List getEnumerationOptions()
           
 org.apache.struts.util.LabelValueBean[] getEnumerationOptions(String xpath)
          Gets the enumerationOptions attribute of the SchemaViewerForm object
 MetaDataFramework getFramework()
          Gets the globalDef attribute of the SchemaViewerForm object
 String getFrameworkName()
          Gets the globalDef attribute of the SchemaViewerForm object
 List getFrameworks()
          Gets the frameworks attribute of the SchemaViewerForm object
 GlobalDef getGlobalDef()
          Gets the globalDef attribute of the SchemaViewerForm object
 String getHeadElement()
           
 boolean getIsComplexType()
           
 boolean getIsSimpleType()
           
 String getMinimalTree()
          Gets the minimalTree attribute of the SchemaViewerForm object
 String getPath()
          Gets the path attribute of the SchemaViewerForm object
 String getPrettyTypeElement()
          Gets the prettyTypeElement attribute of the SchemaViewerForm object
 Map getReport()
           
 String getReportFunction()
           
 String[] getReportFunctions()
           
 SchemaHelper getSchemaHelper()
          Gets the schemaHelper attribute of the SchemaViewerForm object
 SchemaNode getSchemaNode()
          Gets the schemaNode attribute of the SchemaViewerForm object
 boolean getSchemaNodeIsAttribute()
           
 boolean getSchemaNodeIsElement()
           
 boolean getSchemaNodeIsRequired()
           
 String getSchemaNodeName()
           
 String[] getSelectedFrameworks()
           
 org.apache.struts.util.LabelValueBean[] getSelectOptions(String xpath)
          Gets the selectOptions attribute of the SchemaViewerForm object
 List getSubstitutionGroupMembers()
           
 String getTypeElement()
          Gets the typeElement attribute of the SchemaViewerForm object
 String getTypeName()
          Gets the typeName attribute of the SchemaViewerForm object
 String[] getUnionMembers()
           
 MetadataVocab getVocab()
          Gets the vocab attribute of the SchemaViewerForm object
protected  void prtln(String s)
          Output a line of text to standard out, with datestamp, if debug is set to true.
 void reset(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
           
 void setFramework(MetaDataFramework mdf)
          Sets the framework attribute of the SchemaViewerForm object
 void setFrameworkName(String val)
          Sets the framework attribute of the SchemaViewerForm object
 void setFrameworks(List list)
          Sets the frameworks attribute of the SchemaViewerForm object
 void setGlobalDef(GlobalDef def)
          Sets the globalDef attribute of the SchemaViewerForm object
 void setPath(String path)
          Sets the path attribute of the SchemaViewerForm object
 void setReport(Map rpt)
           
 void setReportFunction(String fn)
           
 void setSchemaHelper(SchemaHelper schemaHelper)
          Sets the schemaHelper attribute of the SchemaViewerForm object
 void setSchemaNode(SchemaNode schemaNode)
          Sets the schemaNode attribute of the SchemaViewerForm object
 void setSelectedFrameworks(String[] sf)
           
 void setTypeName(String s)
           
 void setVocab(MetadataVocab vocab)
          Constructor for the setVocab object
 
Methods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate, validate
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaViewerForm

public SchemaViewerForm()
Constructor

Method Detail

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.

DLESE Tools
v1.6.0