public class CustomOperatorUiTranslator extends Object
Constructor and Description |
---|
CustomOperatorUiTranslator() |
Modifier and Type | Method and Description |
---|---|
CustomOperator |
getCustomOperator(String customOperatorFormValue)
Gets the service instance given the specially formatted form value.
|
String |
getCustomOperatorName(String customOperatorFormValue)
Gets the custom operator function name which is used for display purposes
|
boolean |
isCustomOperatorFormValue(String formValue)
Checks if a form value represents a custom operator.
|
QName |
parseCustomOperatorServiceQName(String customOperatorFormValue)
Parses the
QName for the custom operator service from the form value string, which has the format
customOperator:<Namespace>:<serviceName> |
public CustomOperatorUiTranslator()
public QName parseCustomOperatorServiceQName(String customOperatorFormValue)
QName
for the custom operator service from the form value string, which has the format
customOperator:<Namespace>:<serviceName>
customOperatorFormValue
- public String getCustomOperatorName(String customOperatorFormValue)
customOperatorFormValue
- the form value representing the custom operatorpublic CustomOperator getCustomOperator(String customOperatorFormValue)
The form value contains the namespace and name of the service, which is used internally for retrieval.
customOperatorFormValue
- the custom operator form valueIllegalArgumentException
- if the customOperatorFormValue is null or is formatted incorrectlypublic boolean isCustomOperatorFormValue(String formValue)
The determination is made be checking for a special prefix value that is used by convention.
formValue
- the form value to checkCopyright © 2005–2015 The Kuali Foundation. All rights reserved.