Methods Summary |
---|
public static void | addComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.add(c);
|
public int | addGroupName(java.lang.String value)
return this.addValue(GROUP_NAME, value);
|
public int | addPrincipalName(java.lang.String value)
return this.addValue(PRINCIPAL_NAME, value);
|
public void | dump(java.lang.StringBuffer str, java.lang.String indent)
String s;
Object o;
org.netbeans.modules.schema2beans.BaseBean n;
str.append(indent);
str.append("RoleName"); // NOI18N
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getRoleName();
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(ROLE_NAME, 0, str, indent);
str.append(indent);
str.append("PrincipalName["+this.sizePrincipalName()+"]"); // NOI18N
for(int i=0; i<this.sizePrincipalName(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getPrincipalName(i);
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(PRINCIPAL_NAME, i, str, indent);
}
str.append(indent);
str.append("GroupName["+this.sizeGroupName()+"]"); // NOI18N
for(int i=0; i<this.sizeGroupName(); i++)
{
str.append(indent+"\t");
str.append("#"+i+":");
str.append(indent+"\t"); // NOI18N
str.append("<"); // NOI18N
s = this.getGroupName(i);
str.append((s==null?"null":s.trim())); // NOI18N
str.append(">\n"); // NOI18N
this.dumpAttributes(GROUP_NAME, i, str, indent);
}
|
public java.lang.String | dumpBeanNode()
StringBuffer str = new StringBuffer();
str.append("SecurityRoleMapping\n"); // NOI18N
this.dump(str, "\n "); // NOI18N
return str.toString();
|
public java.lang.String | getGroupName(int index)
return (String)this.getValue(GROUP_NAME, index);
|
public java.lang.String[] | getGroupName()
return (String[])this.getValues(GROUP_NAME);
|
public java.lang.String | getPrincipalName(int index)
return (String)this.getValue(PRINCIPAL_NAME, index);
|
public java.lang.String[] | getPrincipalName()
return (String[])this.getValues(PRINCIPAL_NAME);
|
public java.lang.String | getRoleName()
return (String)this.getValue(ROLE_NAME);
|
void | initialize(int options)
|
public static void | removeComparator(org.netbeans.modules.schema2beans.BeanComparator c)
comparators.remove(c);
|
public int | removeGroupName(java.lang.String value)
return this.removeValue(GROUP_NAME, value);
|
public int | removePrincipalName(java.lang.String value)
return this.removeValue(PRINCIPAL_NAME, value);
|
public void | setGroupName(int index, java.lang.String value)
this.setValue(GROUP_NAME, index, value);
|
public void | setGroupName(java.lang.String[] value)
this.setValue(GROUP_NAME, value);
|
public void | setPrincipalName(int index, java.lang.String value)
this.setValue(PRINCIPAL_NAME, index, value);
|
public void | setPrincipalName(java.lang.String[] value)
this.setValue(PRINCIPAL_NAME, value);
|
public void | setRoleName(java.lang.String value)
this.setValue(ROLE_NAME, value);
|
public int | sizeGroupName()
return this.size(GROUP_NAME);
|
public int | sizePrincipalName()
return this.size(PRINCIPAL_NAME);
|
public void | validate()
boolean restrictionFailure = false;
// Validating property roleName
if (getRoleName() == null) {
throw new org.netbeans.modules.schema2beans.ValidateException("getRoleName() == null", "roleName", this); // NOI18N
}
// Validating property principalName
for (int _index = 0; _index < sizePrincipalName(); ++_index) {
String element = getPrincipalName(_index);
if (element != null) {
}
}
int orCount = 0;
if (sizePrincipalName() > 0) {
++orCount;
}
// Validating property groupName
for (int _index = 0; _index < sizeGroupName(); ++_index) {
String element = getGroupName(_index);
if (element != null) {
}
}
if (sizeGroupName() > 0) {
++orCount;
}
if (orCount != 1) {
throw new org.netbeans.modules.schema2beans.ValidateException("orCount ("+orCount+") != 1", "mutually exclusive properties", this); // NOI18N
}
|