private void addAttributeNodes(ObjectClassStructure struct, boolean disableReadOnlyAttrs) {
LdapStructureAttribute[] attrs = struct.getAttributes();
Arrays.sort(attrs, new NameSorter<LdapStructureAttribute>(true));
for (LdapStructureAttribute attr : attrs) {
AttributeNode node = AttributeNode.create(this, attr);
if (disableReadOnlyAttrs && attr.isReadOnly()) {
node.setEnabled(false);
}
}
}