Methods Summary |
---|
public boolean | equals(java.lang.Object other)
boolean ret = false;
if(other instanceof MethodPermission) {
MethodPermission o = (MethodPermission) other;
if (isRoleBased()) {
ret = role.equals(o.getRole());
} else {
ret = (isExcluded == o.isExcluded()) && (isUnchecked == o.isUnchecked());
}
}
return ret;
|
public static com.sun.enterprise.deployment.MethodPermission | getExcludedMethodPermission()
if (excluded==null) {
excluded = new MethodPermission();
excluded.isExcluded=true;
}
return excluded;
|
public com.sun.enterprise.deployment.Role | getRole()
return role;
|
public static com.sun.enterprise.deployment.MethodPermission | getUncheckedMethodPermission()
if (unchecked==null) {
unchecked = new MethodPermission();
unchecked.isUnchecked=true;
}
return unchecked;
|
public int | hashCode()
if (role!=null)
return role.hashCode();
else
return super.hashCode();
|
public boolean | isExcluded()
return isExcluded;
|
public boolean | isRoleBased()
return role!=null;
|
public boolean | isUnchecked()
return isUnchecked;
|
public void | print(java.lang.StringBuffer toStringBuffer)
if (isRoleBased()) {
toStringBuffer.append(role.toString());
} else {
if (isExcluded)
toStringBuffer.append("excluded");
else
toStringBuffer.append("unchecked");
}
|