@ValidationMethod(message="deploymentGroups cannot be null and names can only contain letters, numbers, underscores, dashes or periods")
@JsonIgnore
public boolean isValidDeploymentGroups() {
if ( deploymentGroups == null )
{
return false;
}
java.util.regex.Pattern pattern = java.util.regex.Pattern.compile("^[a-zA-Z0-9_\\-.]+$");
for ( String group : deploymentGroups )
{
if ( !pattern.matcher(group).matches() )
{
return false;
}
}
return true;
}
SoaConfiguration.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:soabase
作者:
评论列表
文章目录