Package org.apache.ofbiz.service
Class ModelParam
java.lang.Object
org.apache.ofbiz.service.ModelParam
- All Implemented Interfaces:
Serializable
Generic Service Model Parameter
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addValidator
(String className, String methodName, String failMessage) Add validator.void
addValidator
(String className, String methodName, String failResource, String failProperty) Add validator.void
copyDefaultValue
(ModelParam param) Copy default value.boolean
boolean
equals
(ModelParam model) Equals boolean.Gets allow html.Gets default value.getDefaultValue
(Map<String, Object> context) Gets default value.Gets entity name.getFailMessage
(Locale locale) Gets fail message.Gets field name.Gets form label.boolean
Gets internal.getMode()
Gets mode.getName()
Gets name.getPrimaryFailMessage
(Locale locale) Gets primary fail message.Gets request attribute name.Gets session attribute name.Gets short display description.Gets string list suffix.Gets string map prefix.getType()
Gets type.List<org.apache.ofbiz.service.ModelParam.ModelParamValidator>
Gets validators.javax.wsdl.Part
getWSDLPart
(javax.wsdl.Definition def) Gets wsdl part.int
hashCode()
boolean
Is form display boolean.boolean
isIn()
Is in boolean.boolean
Is internal boolean.boolean
Is optional boolean.boolean
isOut()
Is out boolean.boolean
Is override form display boolean.boolean
Is override optional boolean.protected String
Java 2 wsdl type string.void
setAllowHtml
(String allowHtml) Sets allow html.void
setDefaultValue
(String defaultValue) Sets default value.void
setDescription
(String description) Sets description.void
setEntityName
(String entityName) Sets entity name.void
setFieldName
(String fieldName) Sets field name.void
setFormDisplay
(boolean formDisplay) Sets form display.void
setFormLabel
(String formLabel) Sets form label.void
setInternal
(boolean internal) Sets internal.void
Sets mode.void
Sets name.void
setOptional
(boolean optional) Sets optional.void
setOverrideFormDisplay
(boolean overrideFormDisplay) Sets override form display.void
setOverrideOptional
(boolean overrideOptional) Sets override optional.void
setRequestAttributeName
(String requestAttributeName) Sets request attribute name.void
setSessionAttributeName
(String sessionAttributeName) Sets session attribute name.void
setStringListSuffix
(String stringListSuffix) Sets string list suffix.void
setStringMapPrefix
(String stringMapPrefix) Sets string map prefix.void
Sets type.void
setValidators
(List<org.apache.ofbiz.service.ModelParam.ModelParamValidator> validators) Sets validators.toString()
-
Constructor Details
-
ModelParam
public ModelParam() -
ModelParam
-
-
Method Details
-
addValidator
Add validator.- Parameters:
className
- the class namemethodName
- the method namefailMessage
- the fail message
-
addValidator
public void addValidator(String className, String methodName, String failResource, String failProperty) Add validator.- Parameters:
className
- the class namemethodName
- the method namefailResource
- the fail resourcefailProperty
- the fail property
-
getPrimaryFailMessage
Gets primary fail message.- Parameters:
locale
- the locale- Returns:
- the primary fail message
-
getFailMessage
Gets fail message.- Parameters:
locale
- the locale- Returns:
- the primary fail message
-
getShortDisplayDescription
Gets short display description.- Returns:
- the short display description
-
getName
Gets name.- Returns:
- the name
-
setMode
Sets mode.- Parameters:
mode
- the mode
-
getValidators
Gets validators.- Returns:
- the validators
-
setFormDisplay
public void setFormDisplay(boolean formDisplay) Sets form display.- Parameters:
formDisplay
- the form display
-
setDescription
Sets description.- Parameters:
description
- the description
-
setOverrideOptional
public void setOverrideOptional(boolean overrideOptional) Sets override optional.- Parameters:
overrideOptional
- the override optional
-
setOverrideFormDisplay
public void setOverrideFormDisplay(boolean overrideFormDisplay) Sets override form display.- Parameters:
overrideFormDisplay
- the override form display
-
setValidators
Sets validators.- Parameters:
validators
- the validators
-
setInternal
public void setInternal(boolean internal) Sets internal.- Parameters:
internal
- the internal
-
setRequestAttributeName
Sets request attribute name.- Parameters:
requestAttributeName
- the request attribute name
-
setSessionAttributeName
Sets session attribute name.- Parameters:
sessionAttributeName
- the session attribute name
-
setStringMapPrefix
Sets string map prefix.- Parameters:
stringMapPrefix
- the string map prefix
-
setStringListSuffix
Sets string list suffix.- Parameters:
stringListSuffix
- the string list suffix
-
setName
Sets name.- Parameters:
name
- the name
-
setAllowHtml
Sets allow html.- Parameters:
allowHtml
- the allow html
-
getAllowHtml
Gets allow html.- Returns:
- the allow html
-
getRequestAttributeName
Gets request attribute name.- Returns:
- the request attribute name
-
getSessionAttributeName
Gets session attribute name.- Returns:
- the session attribute name
-
isOverrideOptional
public boolean isOverrideOptional()Is override optional boolean.- Returns:
- the boolean
-
isFormDisplay
public boolean isFormDisplay()Is form display boolean.- Returns:
- the boolean
-
isOverrideFormDisplay
public boolean isOverrideFormDisplay()Is override form display boolean.- Returns:
- the boolean
-
setType
Sets type.- Parameters:
type
- the type
-
setFormLabel
Sets form label.- Parameters:
formLabel
- the form label
-
setEntityName
Sets entity name.- Parameters:
entityName
- the entity name
-
setFieldName
Sets field name.- Parameters:
fieldName
- the field name
-
isInternal
public boolean isInternal()Is internal boolean.- Returns:
- the boolean
-
setOptional
public void setOptional(boolean optional) Sets optional.- Parameters:
optional
- the optional
-
getStringMapPrefix
Gets string map prefix.- Returns:
- the string map prefix
-
getStringListSuffix
Gets string list suffix.- Returns:
- the string list suffix
-
getFormLabel
Gets form label.- Returns:
- the form label
-
getType
Gets type.- Returns:
- the type
-
getMode
Gets mode.- Returns:
- the mode
-
getEntityName
Gets entity name.- Returns:
- the entity name
-
getFieldName
Gets field name.- Returns:
- the field name
-
getInternal
public boolean getInternal()Gets internal.- Returns:
- the internal
-
isIn
public boolean isIn()Is in boolean.- Returns:
- the boolean
-
isOut
public boolean isOut()Is out boolean.- Returns:
- the boolean
-
isOptional
public boolean isOptional()Is optional boolean.- Returns:
- the boolean
-
getDefaultValue
Gets default value.- Returns:
- the default value
-
getDefaultValue
Gets default value.- Parameters:
context
- the context- Returns:
- the default value
-
setDefaultValue
Sets default value.- Parameters:
defaultValue
- the default value
-
getChildren
- Returns:
- the children of the attribute
-
copyDefaultValue
Copy default value.- Parameters:
param
- the param
-
equals
Equals boolean.- Parameters:
model
- the model- Returns:
- the boolean
-
hashCode
public int hashCode() -
equals
-
toString
-
getWSDLPart
public javax.wsdl.Part getWSDLPart(javax.wsdl.Definition def) Gets wsdl part.- Parameters:
def
- the def- Returns:
- the wsdl part
-
java2wsdlType
Java 2 wsdl type string.- Returns:
- the string
-