Class SetDefinitionsForm
java.lang.Object
org.apache.struts.action.ActionForm
org.apache.struts.validator.ValidatorForm
org.dlese.dpc.repository.action.form.SetDefinitionsForm
- All Implemented Interfaces:
Serializable
public final class SetDefinitionsForm
extends org.apache.struts.validator.ValidatorForm
implements Serializable
Bean for values used to add/edit OAI set definitions.
- Version:
- $Id: SetDefinitionsForm.java,v 1.17 2009/03/20 23:33:54 jweather Exp $
- Author:
- John Weatherley
- See Also:
-
Field Summary
Fields inherited from class org.apache.struts.validator.ValidatorForm
page, validatorResultsFields inherited from class org.apache.struts.action.ActionForm
multipartRequestHandler, servlet -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionString[]Gets the excludedDirs attribute of the SetDefinitionsForm objectGets the Excluded Dirs that are defined for the set but that do not exist in the repository.Gets the excludedQuery attribute of the SetDefinitionsForm objectGets the excludedTerms attribute of the SetDefinitionsForm objectString[]Gets the includedDirs attribute of the SetDefinitionsForm objectGets the includedDirs that are defined for the set but that do not exist in the repository.Gets the includedFormat attribute of the SetDefinitionsForm objectbooleanTrue if the repository does not have the included format configured.Gets the includedQuery attribute of the SetDefinitionsForm objectGets the includedTerms attribute of the SetDefinitionsForm objectbooleanTrue if the set definition has nothing set.Gets the setDescription attribute of the SetDefinitionsForm objectfinal ArrayListGets the setInfos sorted by name, or null if none available.Gets the setName attribute of the SetDefinitionsForm objectGets the setSpec attribute of the SetDefinitionsForm objectGets the setURL attribute of the SetDefinitionsForm objectvoidreset()Resets the data in the form to default values.voidsetExcludedDirs(String[] value) Sets the excludedDirs attribute of the SetDefinitionsForm objectvoidsetExcludedQuery(String value) Sets the excludedQuery attribute of the SetDefinitionsForm objectvoidsetExcludedTerms(String value) Sets the excludedTerms attribute of the SetDefinitionsForm objectvoidsetIncludedDirs(String[] value) Sets the includedDirs attribute of the SetDefinitionsForm objectvoidsetIncludedFormat(String value) Sets the includedFormat attribute of the SetDefinitionsForm objectvoidsetIncludedQuery(String value) Sets the includedQuery attribute of the SetDefinitionsForm objectvoidsetIncludedTerms(String value) Sets the includedTerms attribute of the SetDefinitionsForm objectvoidsetSetDescription(String value) Sets the setDescription attribute of the SetDefinitionsForm objectvoidsetSetName(String value) Sets the setName attribute of the SetDefinitionsForm objectvoidsetSetSpec(String value) Sets the setSpec attribute of the SetDefinitionsForm objectvoidSets the setURL attribute of the SetDefinitionsForm objectorg.apache.struts.action.ActionErrorsvalidate(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request) Validates the form data.Methods inherited from class org.apache.struts.validator.ValidatorForm
getPage, getResultValueMap, getValidationKey, getValidatorResults, reset, setPage, setValidatorResultsMethods inherited from class org.apache.struts.action.ActionForm
getMultipartRequestHandler, getServlet, getServletWrapper, reset, setMultipartRequestHandler, setServlet, validate
-
Constructor Details
-
SetDefinitionsForm
public SetDefinitionsForm()Constructor for the SetDefinitionsForm Bean object
-
-
Method Details
-
reset
public void reset()Resets the data in the form to default values. Needed by Struts if form is stored in session scope. -
validate
public org.apache.struts.action.ActionErrors validate(org.apache.struts.action.ActionMapping mapping, HttpServletRequest request) Validates the form data.- Overrides:
validatein classorg.apache.struts.validator.ValidatorForm- Parameters:
mapping- The ActionMappingrequest- The HttpServletRequest request- Returns:
- The ActionErrors
-
setSetName
Sets the setName attribute of the SetDefinitionsForm object- Parameters:
value- The new setName value
-
setSetSpec
Sets the setSpec attribute of the SetDefinitionsForm object- Parameters:
value- The new setSpec value
-
setSetDescription
Sets the setDescription attribute of the SetDefinitionsForm object- Parameters:
value- The new setDescription value
-
setSetURL
Sets the setURL attribute of the SetDefinitionsForm object- Parameters:
value- The new setURL value
-
getSetName
Gets the setName attribute of the SetDefinitionsForm object- Returns:
- The setName value
-
getSetSpec
Gets the setSpec attribute of the SetDefinitionsForm object- Returns:
- The setSpec value
-
getSetDescription
Gets the setDescription attribute of the SetDefinitionsForm object- Returns:
- The setDescription value
-
getSetURL
Gets the setURL attribute of the SetDefinitionsForm object- Returns:
- The setURL value
-
setIncludedDirs
Sets the includedDirs attribute of the SetDefinitionsForm object- Parameters:
value- The new includedDirs value
-
getIncludedDirs
Gets the includedDirs attribute of the SetDefinitionsForm object- Returns:
- The includedDirs value
-
getIncludedDirsNotInRepository
Gets the includedDirs that are defined for the set but that do not exist in the repository.- Returns:
- The includedDirsNotInRepository value
-
getSetInfos
Gets the setInfos sorted by name, or null if none available.- Returns:
- The setInfos value
-
getIncludedFormat
Gets the includedFormat attribute of the SetDefinitionsForm object- Returns:
- The includedFormat value
-
getIncludedFormatNotAvailable
public boolean getIncludedFormatNotAvailable()True if the repository does not have the included format configured.- Returns:
- True if the repository does not have the included format configured.
-
getIncludedTerms
Gets the includedTerms attribute of the SetDefinitionsForm object- Returns:
- The includedTerms value
-
getIncludedQuery
Gets the includedQuery attribute of the SetDefinitionsForm object- Returns:
- The includedQuery value
-
getExcludedDirs
Gets the excludedDirs attribute of the SetDefinitionsForm object- Returns:
- The excludedDirs value
-
getExcludedDirsNotInRepository
Gets the Excluded Dirs that are defined for the set but that do not exist in the repository.- Returns:
- The includedDirsNotInRepository value
-
getExcludedTerms
Gets the excludedTerms attribute of the SetDefinitionsForm object- Returns:
- The excludedTerms value
-
getExcludedQuery
Gets the excludedQuery attribute of the SetDefinitionsForm object- Returns:
- The excludedQuery value
-
setIncludedFormat
Sets the includedFormat attribute of the SetDefinitionsForm object- Parameters:
value- The new includedFormat value
-
setIncludedTerms
Sets the includedTerms attribute of the SetDefinitionsForm object- Parameters:
value- The new includedTerms value
-
setIncludedQuery
Sets the includedQuery attribute of the SetDefinitionsForm object- Parameters:
value- The new includedQuery value
-
setExcludedDirs
Sets the excludedDirs attribute of the SetDefinitionsForm object- Parameters:
value- The new excludedDirs value
-
setExcludedTerms
Sets the excludedTerms attribute of the SetDefinitionsForm object- Parameters:
value- The new excludedTerms value
-
setExcludedQuery
Sets the excludedQuery attribute of the SetDefinitionsForm object- Parameters:
value- The new excludedQuery value
-
getIsDefinitionEmpty
public boolean getIsDefinitionEmpty()True if the set definition has nothing set.- Returns:
- True if the definition is empty.
-