Class PluginMethod
- java.lang.Object
-
- com.priint.pubserver.plugin.PluginMethod
-
- All Implemented Interfaces:
java.io.Serializable
public class PluginMethod extends java.lang.Object implements java.io.SerializableTODO documentation missing- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPluginMethod.LogLevelstatic classPluginMethod.LogSettingsstatic classPluginMethod.MethodTypestatic classPluginMethod.Parameterstatic classPluginMethod.ParamType
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.annotation.Annotation[]annotationsprotected java.lang.Stringdescriptionprotected java.lang.Stringlabelprotected PluginMethod.LogSettingslogprotected java.lang.StringmethodNameprotected java.util.List<PluginMethod.Parameter>parametersprotected java.lang.StringpluginMappedNamestatic java.lang.StringPLUGINMETHOD_CALL_LOGLEVEL_SYSPROPERTYstatic java.lang.StringPLUGINMETHOD_CONSTANTS_LOGLEVEL_SYSPROPERTYstatic java.lang.StringPLUGINMETHOD_EXCEPTIONS_LOGLEVEL_SYSPROPERTYstatic java.lang.StringPLUGINMETHOD_PARAMETERS_LOGLEVEL_SYSPROPERTYstatic java.lang.StringPLUGINMETHOD_RESULT_LOGLEVEL_SYSPROPERTYprotected java.lang.StringreturnTypeprotected java.util.List<java.lang.String>returnTypeArgumentsstatic java.lang.StringSHORT_UC_STRprotected PluginMethod.MethodTypetype
-
Constructor Summary
Constructors Constructor Description PluginMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddParameter(PluginMethod.Parameter parameter)static java.lang.StringbooleanValue(PluginMethod.Parameter parameter)PluginMethodcreateCopy()booleanequals(java.lang.Object obj)<T extends java.lang.annotation.Annotation>
TgetAnnotation(java.lang.Class<T> clazz)java.lang.annotation.Annotation[]getAnnotations()java.lang.StringgetCallString()java.lang.StringgetComment()static PluginMethod.LogSettingsgetDefaultLogSettings()java.lang.StringgetDescription()java.lang.ObjectgetFirstParameterValue()java.lang.StringgetKey()java.lang.StringgetLabel()java.lang.ObjectgetLastParameterValue()PluginMethod.LogSettingsgetLog()java.lang.StringgetMethodName()java.lang.ObjectgetNamedParameterValue(java.lang.String parameterName)java.lang.ObjectgetNthParameterValue(int index)PluginMethod.ParametergetParameterByName(java.lang.String parameterName)java.util.List<PluginMethod.Parameter>getParameters()java.lang.StringgetPluginMappedName()java.lang.StringgetReturnType()java.util.List<java.lang.String>getReturnTypeArguments()java.lang.StringgetSignature()PluginMethod.MethodTypegetType()inthashCode()booleanhasSameMethodName(PluginMethod other)booleanhasSameParametersSize(PluginMethod other)booleanhasSameParametersTypes(PluginMethod other)booleanhasSameSignature(PluginMethod other)static java.lang.StringintegerValue(PluginMethod.Parameter parameter)static booleanisTag(PluginMethod.Parameter parameter)Determines, whether a given parameters defaultValue matches the pattern "^<[a-zA-Z0-9_.]+>$"static booleanisTag(java.lang.String value)Determines, whether a given value matches the pattern "^<[a-zA-Z0-9_.]+>$"static booleanmatchesTagNamingConvention(java.lang.String value)static PluginMethod.ParamTypeparamType(PluginMethod.Parameter parameter)static PluginMethod.ParamTypeparamType(java.lang.String type)static java.lang.StringparamValue(PluginMethod.Parameter parameter)static java.lang.Stringquote(PluginMethod.Parameter parameter)static java.lang.Stringquote(java.lang.String value)static java.lang.StringrealValue(PluginMethod.Parameter parameter)voidsetAnnotations(java.lang.annotation.Annotation[] annotations)voidsetComment(java.lang.String comment)voidsetDescription(java.lang.String description)voidsetFirstParameterValue(java.lang.Object value)voidsetLabel(java.lang.String label)voidsetLastParameterValue(java.lang.Object value)voidsetLog(PluginMethod.LogSettings log)voidsetMethodName(java.lang.String methodName)voidsetNamedParameterValue(java.lang.Object value, java.lang.String parameterName)voidsetNthParameterValue(java.lang.Object value, int index)voidsetParameters(java.util.List<PluginMethod.Parameter> parameters)voidsetPluginMappedName(java.lang.String pluginMappedName)voidsetReturnType(java.lang.String returnType)voidsetReturnTypeArguments(java.util.List<java.lang.String> returnTypeArguments)voidsetType(PluginMethod.MethodType type)voidshow()PluginMethodthreadSafeCopy()java.lang.StringtoString()
-
-
-
Field Detail
-
pluginMappedName
protected java.lang.String pluginMappedName
-
methodName
protected java.lang.String methodName
-
label
protected java.lang.String label
-
returnType
protected java.lang.String returnType
-
returnTypeArguments
protected java.util.List<java.lang.String> returnTypeArguments
-
description
protected java.lang.String description
-
type
protected PluginMethod.MethodType type
-
parameters
protected java.util.List<PluginMethod.Parameter> parameters
-
log
protected PluginMethod.LogSettings log
-
annotations
protected java.lang.annotation.Annotation[] annotations
-
PLUGINMETHOD_CALL_LOGLEVEL_SYSPROPERTY
public static final java.lang.String PLUGINMETHOD_CALL_LOGLEVEL_SYSPROPERTY
- See Also:
- Constant Field Values
-
PLUGINMETHOD_PARAMETERS_LOGLEVEL_SYSPROPERTY
public static final java.lang.String PLUGINMETHOD_PARAMETERS_LOGLEVEL_SYSPROPERTY
- See Also:
- Constant Field Values
-
PLUGINMETHOD_CONSTANTS_LOGLEVEL_SYSPROPERTY
public static final java.lang.String PLUGINMETHOD_CONSTANTS_LOGLEVEL_SYSPROPERTY
- See Also:
- Constant Field Values
-
PLUGINMETHOD_RESULT_LOGLEVEL_SYSPROPERTY
public static final java.lang.String PLUGINMETHOD_RESULT_LOGLEVEL_SYSPROPERTY
- See Also:
- Constant Field Values
-
PLUGINMETHOD_EXCEPTIONS_LOGLEVEL_SYSPROPERTY
public static final java.lang.String PLUGINMETHOD_EXCEPTIONS_LOGLEVEL_SYSPROPERTY
- See Also:
- Constant Field Values
-
SHORT_UC_STR
public static final java.lang.String SHORT_UC_STR
- See Also:
- Constant Field Values
-
-
Method Detail
-
getPluginMappedName
public java.lang.String getPluginMappedName()
-
setPluginMappedName
public void setPluginMappedName(java.lang.String pluginMappedName)
-
getMethodName
public java.lang.String getMethodName()
-
setMethodName
public void setMethodName(java.lang.String methodName)
-
getReturnType
public java.lang.String getReturnType()
-
setReturnType
public void setReturnType(java.lang.String returnType)
-
getReturnTypeArguments
public java.util.List<java.lang.String> getReturnTypeArguments()
-
setReturnTypeArguments
public void setReturnTypeArguments(java.util.List<java.lang.String> returnTypeArguments)
-
getDescription
public java.lang.String getDescription()
-
setDescription
public void setDescription(java.lang.String description)
-
getType
public PluginMethod.MethodType getType()
-
setType
public void setType(PluginMethod.MethodType type)
-
getKey
public java.lang.String getKey()
-
getSignature
public java.lang.String getSignature()
-
getParameters
public java.util.List<PluginMethod.Parameter> getParameters()
-
setParameters
public void setParameters(java.util.List<PluginMethod.Parameter> parameters)
-
addParameter
public void addParameter(PluginMethod.Parameter parameter)
-
createCopy
public PluginMethod createCopy()
-
threadSafeCopy
public PluginMethod threadSafeCopy()
-
hasSameSignature
public boolean hasSameSignature(PluginMethod other)
-
hasSameMethodName
public boolean hasSameMethodName(PluginMethod other)
-
hasSameParametersSize
public boolean hasSameParametersSize(PluginMethod other)
-
hasSameParametersTypes
public boolean hasSameParametersTypes(PluginMethod other)
-
getLog
public PluginMethod.LogSettings getLog()
-
setLog
public void setLog(PluginMethod.LogSettings log)
-
getLabel
public java.lang.String getLabel()
-
setLabel
public void setLabel(java.lang.String label)
-
getAnnotations
public java.lang.annotation.Annotation[] getAnnotations()
-
setAnnotations
public void setAnnotations(java.lang.annotation.Annotation[] annotations)
-
getAnnotation
public <T extends java.lang.annotation.Annotation> T getAnnotation(java.lang.Class<T> clazz)
-
getDefaultLogSettings
public static PluginMethod.LogSettings getDefaultLogSettings()
-
setNthParameterValue
public void setNthParameterValue(java.lang.Object value, int index)
-
setFirstParameterValue
public void setFirstParameterValue(java.lang.Object value)
-
setLastParameterValue
public void setLastParameterValue(java.lang.Object value)
-
setNamedParameterValue
public void setNamedParameterValue(java.lang.Object value, java.lang.String parameterName)
-
getNthParameterValue
public java.lang.Object getNthParameterValue(int index)
-
getFirstParameterValue
public java.lang.Object getFirstParameterValue()
-
getLastParameterValue
public java.lang.Object getLastParameterValue()
-
getNamedParameterValue
public java.lang.Object getNamedParameterValue(java.lang.String parameterName)
-
getParameterByName
public PluginMethod.Parameter getParameterByName(java.lang.String parameterName)
-
getCallString
public java.lang.String getCallString()
-
show
public void show()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
quote
public static java.lang.String quote(PluginMethod.Parameter parameter)
-
quote
public static java.lang.String quote(java.lang.String value)
-
paramType
public static PluginMethod.ParamType paramType(PluginMethod.Parameter parameter)
-
paramType
public static PluginMethod.ParamType paramType(java.lang.String type)
-
isTag
public static boolean isTag(PluginMethod.Parameter parameter)
Determines, whether a given parameters defaultValue matches the pattern "^<[a-zA-Z0-9_.]+>$"
Use this method to check, whether a value should be considered as Tag.
Tag values are expected to be set either in the Constant Map provided to the ParameterInterpreter or in the dynamic parameter map passed to DataProviderManager calls.
This method accepts a wide range of values as tags (e.g. <1>, <a.b.c> ...), though the naming recommendation for tags is^<[A-Z]+[a-zA-Z0-9]*(\.?[A-Z]+[a-zA-Z0-9]*>|>)$- Parameters:
parameter- parameter to check- Returns:
- true, if the parameter default value is a tag, false otherwise or if parameter is null
-
isTag
public static boolean isTag(java.lang.String value)
Determines, whether a given value matches the pattern "^<[a-zA-Z0-9_.]+>$"
Use this method to check, whether a value should be considered as Tag.
Tag values are expected to be set either in the Constant Map provided to the ParameterInterpreter or in the dynamic parameter map passed to DataProviderManager calls.
This method accepts a wide range of values as tags (e.g. <1>, <a.b.c> ...), though the naming recommendation for tags is
^<[A-Z]+[a-zA-Z0-9]*(\.?[A-Z]+[a-zA-Z0-9]*>|>)$- Parameters:
value- value to check- Returns:
- true, if value is a tag, false otherwise
-
matchesTagNamingConvention
public static boolean matchesTagNamingConvention(java.lang.String value)
-
booleanValue
public static java.lang.String booleanValue(PluginMethod.Parameter parameter)
-
integerValue
public static java.lang.String integerValue(PluginMethod.Parameter parameter)
-
realValue
public static java.lang.String realValue(PluginMethod.Parameter parameter)
-
paramValue
public static java.lang.String paramValue(PluginMethod.Parameter parameter)
-
getComment
public java.lang.String getComment()
-
setComment
public void setComment(java.lang.String comment)
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-