本文整理了Java中org.apache.axis2.description.Parameter.setEditable()
方法的一些代码示例,展示了Parameter.setEditable()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Parameter.setEditable()
方法的具体详情如下:
包路径:org.apache.axis2.description.Parameter
类名称:Parameter
方法名:setEditable
暂无
代码示例来源:origin: org.apache.axis2/axis2-kernel
/**
* If the parameter is found in the current description then the Parameter will be writable else
* it will be read only
*
* @param name name of Parameter to retrieve
* @return the Parameter, if found anywhere in the stack, or null if not
*/
public Parameter getParameter(String name) {
Parameter parameter = parameterInclude.getParameter(name);
if (parameter != null) {
parameter.setEditable(true);
return parameter;
}
if (parent != null) {
parameter = parent.getParameter(name);
if (parameter != null) {
parameter.setEditable(false);
}
return parameter;
}
return null;
}
代码示例来源:origin: apache/axis2-java
/**
* If the parameter is found in the current description then the Parameter will be writable else
* it will be read only
*
* @param name name of Parameter to retrieve
* @return the Parameter, if found anywhere in the stack, or null if not
*/
public Parameter getParameter(String name) {
Parameter parameter = parameterInclude.getParameter(name);
if (parameter != null) {
parameter.setEditable(true);
return parameter;
}
if (parent != null) {
parameter = parent.getParameter(name);
if (parameter != null) {
parameter.setEditable(false);
}
return parameter;
}
return null;
}
代码示例来源:origin: org.apache.sandesha2/sandesha2-core
public static void setPolicyBean (ServiceClient serviceClient, SandeshaPolicyBean policyBean) throws SandeshaException {
try {
AxisService axisService = serviceClient.getAxisService();
if (axisService!=null) {
Parameter parameter = axisService.getParameter(Sandesha2Constants.SANDESHA_PROPERTY_BEAN);
SandeshaPolicyBean parent = null;
if (parameter==null) {
parameter = new Parameter ();
parameter.setName(Sandesha2Constants.SANDESHA_PROPERTY_BEAN);
} else {
parameter.setEditable(true); //if we don't do it here, Axis2 will not allow us to override the parameter value.
parent = (SandeshaPolicyBean) parameter.getValue();
policyBean.setParent(parent);
}
parameter.setValue(policyBean);
axisService.addParameter(parameter);
} else {
String message = SandeshaMessageHelper.getMessage(SandeshaMessageKeys.cannotSetPolicyBeanServiceNull);
throw new SandeshaException (message);
}
} catch (AxisFault e) {
throw new SandeshaException (e);
}
}
内容来源于网络,如有侵权,请联系作者删除!