|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.struts.action.ActionForm
org.dlese.dpc.schemedit.action.form.SchemEditForm
public class SchemEditForm
ActionForm bean for handling requests to support MetaDataEditor. Most
methods acesss the DocMap
attribute, which wraps the XML Document
that is being edited.
Field Summary | |
---|---|
static String |
FALSE
NOT YET DOCUMENTED |
static String |
TRUE
NOT YET DOCUMENTED |
static String |
UNSPECIFIED
Description of the Field |
Fields inherited from class org.apache.struts.action.ActionForm |
---|
multipartRequestHandler, servlet |
Constructor Summary | |
---|---|
SchemEditForm()
Constructor |
Method Summary | |
---|---|
void |
clear()
NOT YET DOCUMENTED |
void |
clearMultiValuesCache()
Clear cache of eneration values that are used to optimize property lookup during display of form. |
void |
clearRepeatingFieldsToPrune()
Clear the cache of repeating values that stores the repeating elements which may have empty values after form is submitted. |
void |
exposeNode(String xpath)
Make a node visible in the editor. |
String |
getAcceptsNewChoice(String encodedPath)
Gets the acceptsNewChoice attribute of the SchemEditForm object |
String |
getAcceptsNewSibling(String encodedPath)
Determines whether the parent of the element corresponding to encodedPath can accept a new sibling of encodedPath. |
String |
getAcceptsNewSubstitionGroupMember(String encodedPath)
Gets the acceptsNewSubstitionGroupMember attribute of the SchemEditForm object |
ADNItemDocReader |
getAdnDocReader()
Gets the adnDocReader attribute of the SchemEditForm object |
Object |
getAnyTypeValueOf(String key)
Gets the anyTypeValueOf attribute of the SchemEditForm object |
String |
getAsyncJason()
Gets the asyncJason attribute of the SchemEditForm object |
String |
getBaseExportDir()
Gets the baseExportDir attribute of the SchemEditForm object |
String |
getBranchIsRequired(String key)
return true iff schemaHelper.isRequiredBranch returns TRUE |
int |
getChildElementCountOf(String encodedPath)
Gets the childElementCountOf attribute of the SchemEditForm object |
org.apache.struts.util.LabelValueBean[] |
getChoiceOptions(String encodedPath)
Gets the choiceOptions for the element specified by "encodedPath", adding indexing if the element is a multiChoice. |
CollapseBean |
getCollapseBean()
Gets the collapseBean attribute of the SchemEditForm object |
String |
getCollection()
Gets the collection attribute of the SchemEditForm object |
String |
getCollectionName()
Gets the collectionName attribute of the SchemEditForm object |
org.apache.struts.util.LabelValueBean |
getComboOtherOption()
provide values to use as constants in comboUnionInput processing |
org.apache.struts.util.LabelValueBean[] |
getComboSelectOptions(String encodedPath)
Gets the options for a comboSelect input element, which presents a list of options to the user but also allows input of arbitrary values. |
String |
getContextURL()
Gets the contextURL attribute of the DCSBrowseForm object |
String |
getCurrentPage()
Gets the currentPage attribute of the SchemEditForm object |
String |
getCurrentPageEncoded()
Gets the currentPageEncoded attribute of the SchemEditForm object |
String |
getCurrentStdDocKey()
Gets the currentStdDocKey attribute of the SchemEditForm object |
DcsDataRecord |
getDcsDataRecord()
Gets the dcsDataRecord attribute of the SchemEditForm object |
List |
getDirs()
Gets the dirs attribute of the SchemEditForm object |
String |
getDiscussionURL()
Gets the discussionURL attribute of the SchemEditForm object |
DocMap |
getDocMap()
Gets the docMap attribute of the SchemEditForm object |
ResultDocList |
getDuplicateUrlRecs()
Gets the duplicateUrlRecs attribute of the SchemEditForm object |
List |
getDups()
Gets the dups attribute of the SchemEditForm object |
org.apache.struts.util.LabelValueBean[] |
getEnumerationOptions(String encodedPath)
Gets the possible values and labels (defined by the an EnumerationType representing a controlled vocab) that an element may assume. |
List |
getEnumerationPaths(String encodedPath)
Gets the enumerationPaths of a Document given an xpath to a member. |
String[] |
getEnumerationValuesOf(String encodedPath)
Gets the curently assigned values for the given xpath in the current Document. |
FieldInfoReader |
getFieldInfo(String encodedPath)
Returns a FieldInfoReader for the
specified path. |
FieldInfoMap |
getFieldInfoMap()
Gets the fieldInfoMap attribute of the SchemEditForm object |
FieldInfoReader |
getFieldInfoReader()
Gets the fieldInfoReader attribute of the SchemEditForm object |
boolean |
getForceValidation()
Gets the forceValidation attribute of the SchemEditForm object |
MetaDataFramework |
getFramework()
Gets the framework attribute of the SchemEditForm object |
String |
getFrameworkName()
Gets the frameworkName attribute of the SchemEditForm object |
String |
getGuardedExitPath()
Gets the pathArg attribute of the SchemEditForm object |
boolean |
getHasChildren(String encodedPath)
Gets the hasChildren attribute of the SchemEditForm object |
String |
getHash()
Gets the hash attribute of the SchemEditForm object |
InputManager |
getInputManager()
Gets the inputManager attribute of the SchemEditForm object |
List |
getLegalEnumerationValuesOf(String encodedPath)
Gets the legal values an enumeration (controlled vocab defined in schema) can assume. |
int |
getMemberCountOf(String encodedPath)
Returns number of elements in the Document matching a given xpath |
List |
getMembersOf(String encodedPath)
Gets the membersOf attribute of the SchemEditForm object |
String |
getMetadata()
Gets the metadata attribute of the SchemEditForm object |
boolean |
getMuiFormattable(String encodedPath)
Returns true if a MUI groups file exists for the provided path |
String |
getNodeExists(String key)
Gets the nodeExists attribute of the SchemEditForm object |
String |
getNodeExistsWithContent(String key)
return true if the node exists and it is not empty |
String |
getNodeExistsWithRequiredAttribute(String key)
Return true if the node specified by key exists in the instance document and it has a required attribute in the instance document. |
String |
getNodeHasValue(String key)
Return TRUE if this node has a value. |
String |
getNodeIsEmpty(String key)
Gets the nodeIsEmpty attribute of the SchemEditForm object |
String |
getNodeIsExpandable(String key)
Returns true of the node designated by key can be expanded. |
String |
getNodeIsMissingValue(String key)
Determines if a text node in the VIEW UI (as opposed to the editor) of a record is missing a value, so it can be highlighted accordingly. |
PageList |
getPageList()
Gets the pageList attribute of the SchemEditForm object |
String |
getPageTitle()
Gets the pageTitle attribute of the SchemEditForm object |
String |
getParentNodeExists(String key)
Gets the parentNodeExists attribute of the SchemEditForm object |
String |
getPathArg()
Gets the pathArg attribute of the SchemEditForm object |
String |
getPreviousPage()
Gets the previousPage attribute of the SchemEditForm object |
String |
getRecId()
Gets the recId attribute of the SchemEditForm object |
Record[] |
getRecords()
Gets the records attribute of the SchemEditForm object |
File |
getRecordsDir()
Gets the location of metadata records for a StandAlone Editor. |
ArrayList |
getRepeatingFieldsToPrune()
Cache of repeating values that stores repeating elements which may have empty values after the form is submitted. |
List |
getRepeatingMembersOf(String encodedPath)
Gets a list of all nodes for a given xpath, PLUS a bogus node that supports addition of a new member in the JSP form. |
ResultDoc |
getResultDoc()
Gets the resultDoc attribute of the SchemEditForm object |
Map |
getSavedContent()
Gets the savedContent attribute of the SchemEditForm object |
SchemaHelper |
getSchemaHelper()
Gets the schemaHelper attribute of the SchemEditForm object. |
org.apache.struts.util.LabelValueBean[] |
getSelectOptions(String encodedPath)
Gets the selectOptions for the given xpath from the Schema. |
ServletContext |
getServletContext()
Gets the servletContext attribute of the SchemEditForm object |
DcsSetInfo |
getSetInfo()
Gets the setInfo attribute of the SchemEditForm object |
ResultDocList |
getSimilarUrlRecs()
Gets the similarUrlRecs attribute of the SchemEditForm object |
List |
getSims()
Gets the sims attribute of the SchemEditForm object |
int |
getSubstitutionGroupMemberCountOf(String encodedPath)
Gets the substitutionGroupMemberCountOf attribute of the SchemEditForm object |
List |
getSubstitutionGroupMembersOf(String encodedPath)
Select all substitutionGroup elements by building up complex selection xpath ORing together the xpaths for the substitutionGroup members |
org.apache.struts.util.LabelValueBean[] |
getSubstitutionGroupOptions(String encodedPath)
Given the path to a schemaNode that isHeadElement(), return an array of LabelValueBean objects representing, the substitutionGroup, where both the label and the value are the group memebers qualifiedName |
CATServiceHelper |
getSuggestionServiceHelper()
Gets the suggestionServiceHelper attribute of the SchemEditForm object |
String |
getTmpArg()
Gets the tmpArg attribute of the SchemEditForm object |
String |
getValidatedUrl()
Gets the validatedUrl attribute of the SchemEditForm object |
Object |
getValueOf(String key)
Gets the valueOf attribute of the SchemEditForm object |
String |
getViewNode(String key)
Returns TRUE if node is Required OR has a value (i.e., satisfies the "nodeExistsWithContent" predicate). |
MetadataVocab |
getVocab()
Gets the vocab attribute of the SchemEditForm object |
VocabLayout |
getVocabLayout()
Get VocabLayout instance for the current vocabField. |
List |
getVocabLayoutNodes()
Get top-level vocabLayoutNodes for the current vocabField. |
ArrayList |
getVocabList()
Gets a list of VocabNodes under the current value of "vocabField". |
String |
getXmlFormat()
Gets the xmlFormat attribute of the SchemEditForm object |
protected static void |
prtln(String s)
Output a line of text to standard out, with datestamp, if debug is set to true. |
void |
setAdnDocReader(ADNItemDocReader adnDocReader)
Sets the adnDocReader attribute of the SchemEditForm object |
void |
setAsyncJason(String json)
Sets the asyncJason attribute of the SchemEditForm object |
void |
setCollection(String collection)
Sets the collection attribute of the SchemEditForm object |
void |
setContextURL(String contextURL)
Sets the contextURL attribute of the DCSBrowseForm object |
void |
setCurrentPage(String s)
Sets the currentPage attribute of the SchemEditForm object |
void |
setCurrentStdDocKey(String key)
Sets the currentStdDocKey attribute of the SchemEditForm object |
void |
setDcsDataRecord(DcsDataRecord dataRec)
Sets the dcsDataRecord attribute of the SchemEditForm object |
void |
setDiscussionURL(String url)
Sets the discussionURL attribute of the SchemEditForm object |
void |
setDocMap(Document document)
Sets the docMap attribute of the SchemEditForm object |
void |
setDuplicateUrlRecs(ResultDocList results)
Sets the duplicateUrlRecs attribute of the SchemEditForm object |
void |
setDups(List simDupList)
Sets the dups attribute of the SchemEditForm object |
void |
setFieldInfoReader(FieldInfoReader fieldInfoReader)
Sets the fieldInfoReader attribute of the SchemEditForm object |
void |
setForceValidation(boolean forceValidation)
Sets the forceValidation attribute of the SchemEditForm object |
void |
setFramework(MetaDataFramework framework)
Sets the framework attribute of the SchemEditForm object |
void |
setGuardedExitPath(String arg)
Sets the guardedExitPath attribute of the SchemEditForm object |
void |
setHash(String s)
Sets the hash attribute of the SchemEditForm object |
void |
setMetadata(String s)
Sets the metadata attribute of the SchemEditForm object |
void |
setPageList(PageList pageList)
Sets the pageList attribute of the SchemEditForm object |
void |
setPageTitle(String s)
Sets the pageTitle attribute of the SchemEditForm object |
void |
setPathArg(String arg)
Sets the pathArg attribute of the SchemEditForm object |
void |
setPreviousPage(String s)
Sets the previousPage attribute of the SchemEditForm object |
void |
setRecId(String id)
Sets the recId attribute of the SchemEditForm object |
void |
setRecordsDir(File dir)
Sets the recordsDir attribute of the SchemEditForm object |
void |
setRepeatingField(String xpath)
Stores repeating values that stores repeating elements which may have empty values after the form is submitted. |
void |
setResultDoc(ResultDoc resultDoc)
Sets the resultDoc attribute of the SchemEditForm object |
void |
setSavedContent(Map map)
Sets the savedContent attribute of the SchemEditForm object |
void |
setSetInfo(DcsSetInfo info)
Sets the setInfo attribute of the SchemEditForm object |
void |
setSimilarUrlRecs(ResultDocList results)
Sets the similarUrlRecs attribute of the SchemEditForm object |
void |
setSims(List simDupList)
Sets the sims attribute of the SchemEditForm object |
void |
setSuggestionServiceHelper(CATServiceHelper helper)
Sets the suggestionServiceHelper attribute of the SchemEditForm object |
void |
setTmpArg(String s)
Sets the tmpArg attribute of the SchemEditForm object |
void |
setValidatedUrl(String validatedUrl)
Sets the validatedUrl attribute of the SchemEditForm object |
void |
setValueOf(String key,
Object val)
Sets the valueOf attribute of the SchemEditForm object |
void |
setVocab(MetadataVocab vocab)
Constructor for the setVocab object |
void |
setVocabAudience(String vocabAudience)
Sets the vocabAudience attribute of the SchemEditForm object |
void |
setVocabField(String paramName)
Sets the vocabField attribute to an xpath extracted from the proviced paramName. |
void |
setVocabInterface(String vocabInterface)
Sets the vocabInterface attribute of the SchemEditForm object |
void |
setVocabLanguage(String vocabLanguage)
Sets the vocabLanguage attribute of the SchemEditForm object |
SchemEditActionErrors |
validate(org.apache.struts.action.ActionMapping mapping,
HttpServletRequest request)
Validate the request parameters before the Action sees them). |
Methods inherited from class org.apache.struts.action.ActionForm |
---|
getMultipartRequestHandler, getServlet, getServletWrapper, reset, reset, setMultipartRequestHandler, setServlet, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static String UNSPECIFIED
public static String TRUE
public static String FALSE
Constructor Detail |
---|
public SchemEditForm()
Method Detail |
---|
public void clear()
public String getCurrentStdDocKey()
public void setCurrentStdDocKey(String key)
key
- The new currentStdDocKey valuepublic ServletContext getServletContext()
public CATServiceHelper getSuggestionServiceHelper()
public void setSuggestionServiceHelper(CATServiceHelper helper)
helper
- The new suggestionServiceHelper valuepublic void setVocab(MetadataVocab vocab)
vocab
- public MetadataVocab getVocab()
public void setVocabField(String paramName)
paramName
- The new vocabField valuepublic void setVocabInterface(String vocabInterface)
vocabInterface
- The new vocabInterface valuepublic void setVocabAudience(String vocabAudience)
vocabAudience
- The new vocabAudience valuepublic void setVocabLanguage(String vocabLanguage)
vocabLanguage
- The new vocabLanguage valuepublic boolean getMuiFormattable(String encodedPath)
encodedPath
- a jsp-encoded xpath
public ArrayList getVocabList()
public VocabLayout getVocabLayout()
public List getVocabLayoutNodes()
public String getAsyncJason()
public void setAsyncJason(String json)
json
- The new asyncJason valuepublic InputManager getInputManager()
public MetaDataFramework getFramework()
public void setFramework(MetaDataFramework framework)
framework
- The new framework valuepublic String getBaseExportDir()
public ResultDoc getResultDoc()
public void setResultDoc(ResultDoc resultDoc)
resultDoc
- The new resultDoc valuepublic String getContextURL()
public void setContextURL(String contextURL)
contextURL
- The new contextURL valuepublic Map getSavedContent()
public void setSavedContent(Map map)
map
- The new savedContent valuepublic String getValidatedUrl()
public void setValidatedUrl(String validatedUrl)
validatedUrl
- The new validatedUrl valuepublic ResultDocList getSimilarUrlRecs()
public void setSimilarUrlRecs(ResultDocList results)
results
- The new similarUrlRecs valuepublic ResultDocList getDuplicateUrlRecs()
public void setDuplicateUrlRecs(ResultDocList results)
results
- The new duplicateUrlRecs valuepublic List getDups()
public void setDups(List simDupList)
simDupList
- The new dups valuepublic List getSims()
public void setSims(List simDupList)
simDupList
- The new sims valuepublic DcsDataRecord getDcsDataRecord()
public CollapseBean getCollapseBean()
public DcsSetInfo getSetInfo()
public void setSetInfo(DcsSetInfo info)
info
- The new setInfo valuepublic void exposeNode(String xpath)
xpath
- xpath to node to be exposedpublic void setDcsDataRecord(DcsDataRecord dataRec)
dataRec
- The new dcsDataRecord valuepublic void setMetadata(String s)
s
- The new metadata valuepublic String getMetadata()
public String getCollection()
public void setCollection(String collection)
collection
- The new collection valuepublic String getCollectionName()
public String getDiscussionURL()
public void setDiscussionURL(String url)
url
- The new discussionURL valuepublic String getFrameworkName()
public File getRecordsDir()
public void setRecordsDir(File dir)
dir
- The new recordsDir valuepublic Record[] getRecords()
public List getDirs()
public String getHash()
public void setHash(String s)
s
- The new hash valuepublic String getPageTitle()
public void setPageTitle(String s)
s
- The new pageTitle valuepublic String getXmlFormat()
public PageList getPageList()
public void setPageList(PageList pageList)
pageList
- The new pageList valuepublic boolean getForceValidation()
public void setForceValidation(boolean forceValidation)
forceValidation
- The new forceValidation valuepublic String getTmpArg()
public void setTmpArg(String s)
s
- The new tmpArg valuepublic String getRecId()
public void setRecId(String id)
id
- The new recId valuepublic void setPathArg(String arg)
arg
- The new pathArg valuepublic String getGuardedExitPath()
public void setGuardedExitPath(String arg)
arg
- The new guardedExitPath valuepublic String getPathArg()
public String getCurrentPage()
public void setCurrentPage(String s)
s
- The new currentPage valuepublic String getCurrentPageEncoded()
public String getPreviousPage()
public void setPreviousPage(String s)
s
- The new previousPage valuepublic FieldInfoMap getFieldInfoMap()
public FieldInfoReader getFieldInfoReader()
public void setFieldInfoReader(FieldInfoReader fieldInfoReader)
fieldInfoReader
- The new fieldInfoReader valuepublic FieldInfoReader getFieldInfo(String encodedPath)
FieldInfoReader
for the
specified path. FieldInfoReaders are stored in the fieldInfoMap attribute
of the SchemEditForm object (key is xpath).
encodedPath
- a jsp-encoded xpath
public SchemaHelper getSchemaHelper()
Note: schemaHelper is SET as a side-effect of setFramework().
public DocMap getDocMap()
public void setDocMap(Document document)
document
- The new docMap valuepublic void setAdnDocReader(ADNItemDocReader adnDocReader)
adnDocReader
- The new adnDocReader valuepublic ADNItemDocReader getAdnDocReader()
public Object getValueOf(String key)
key
- a jsp-encoded xpath
public void setValueOf(String key, Object val)
key
- a jsp-encoded xpathval
- the value to setpublic Object getAnyTypeValueOf(String key)
key
- a jsp-encoded xpath
public String getNodeExists(String key)
key
- a jsp-encoded xpath
public String getNodeHasValue(String key)
We don't want to flag simpleOrComplexContent nodes having type of "xsd:string" as missing, though.
key
- a jsp-encoded xpath
public String getNodeIsMissingValue(String key)
key
- encoded path
public String getNodeExistsWithContent(String key)
key
- a jsp-encoded xpath
public String getNodeExistsWithRequiredAttribute(String key)
key
- a jsp-encoded xpath
public String getBranchIsRequired(String key)
key
- a jsp-encoded xpath
public String getViewNode(String key)
Used with views for displaying (as opposed to editing) metadata fields.
key
- a jsp-encoded xpath
public String getNodeIsExpandable(String key)
A node can be expanded if: - it is a required branch - the node exists and it is NOT empty (it should also be complex??) -
key
- a jsp-encoded xpath
public String getParentNodeExists(String key)
key
- a jsp-encoded xpath
public String getNodeIsEmpty(String key)
key
- a jsp-encoded xpath
public List getEnumerationPaths(String encodedPath)
encodedPath
- a jsp-encoded xpath
public void clearMultiValuesCache()
public String[] getEnumerationValuesOf(String encodedPath)
encodedPath
- a jsp-encoded xpath
public List getMembersOf(String encodedPath)
encodedPath
- a jsp-encoded xpath
public int getMemberCountOf(String encodedPath)
encodedPath
- a jsp-encoded xpath
public int getChildElementCountOf(String encodedPath)
encodedPath
- a jsp-encoded xpath
public boolean getHasChildren(String encodedPath)
encodedPath
- a jsp-encoded xpath
public List getSubstitutionGroupMembersOf(String encodedPath)
encodedPath
- a jsp-encoded xpath
public int getSubstitutionGroupMemberCountOf(String encodedPath)
encodedPath
- a jsp-encoded xpath
public List getLegalEnumerationValuesOf(String encodedPath)
encodedPath
- encoded xpath of field
public org.apache.struts.util.LabelValueBean[] getEnumerationOptions(String encodedPath)
encodedPath
- a jsp-encoded xpath
public org.apache.struts.util.LabelValueBean[] getSubstitutionGroupOptions(String encodedPath)
encodedPath
- a jsp-encoded xpath
public org.apache.struts.util.LabelValueBean getComboOtherOption()
public org.apache.struts.util.LabelValueBean[] getComboSelectOptions(String encodedPath)
If the field being edited contains a value other than those specified in the schema, then add this value to the options returned.
encodedPath
- jsp-encoded xpath to the element
public org.apache.struts.util.LabelValueBean[] getSelectOptions(String encodedPath)
If the element at xpath is NOT an optionalSingleSelect, then getEnumerationOptions is returned.
encodedPath
- a jsp-encoded xpath
public String getAcceptsNewSibling(String encodedPath)
The indexing of the target element is important, since it is required by the compositor to determine whether a new sibling can be accepted.
encodedPath
- a jsp-encoded xpath
public String getAcceptsNewSubstitionGroupMember(String encodedPath)
encodedPath
- a jsp-encoded xpath
public String getAcceptsNewChoice(String encodedPath)
encodedPath
- a jsp-encoded xpath
public org.apache.struts.util.LabelValueBean[] getChoiceOptions(String encodedPath)
encodedPath
- a jsp-encoded xpath
public ArrayList getRepeatingFieldsToPrune()
public void clearRepeatingFieldsToPrune()
SchemEditValidator.pruneRepeatingFields()
public void setRepeatingField(String xpath)
xpath
- The new repeatingField valuepublic List getRepeatingMembersOf(String encodedPath)
encodedPath
- a jsp-encoded xpath
public SchemEditActionErrors validate(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request)
NOTE: is this necessary for the entities to get displayed correctly in the editing forms??
validate
in class org.apache.struts.action.ActionForm
mapping
- NOT YET DOCUMENTEDrequest
- NOT YET DOCUMENTED
protected static void prtln(String s)
s
- The String that will be output.
|
DLESE Tools v1.6.0 |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |