* @since 3.1.3
*/
public final class LdapStructureAttributePersistor {
public static void write(LdapStructureAttribute attr, Persistor p) {
Persistor child = p.createChild(EntryPersistingConstants.ATTRIBUTE);
child.putString(EntryPersistingConstants.OID, attr.getOid().toString());
child.putString(EntryPersistingConstants.NAME, attr.getName());
child.putString(EntryPersistingConstants.DESCRIPTION, attr.getDescription());
child.putString(EntryPersistingConstants.USAGE_DESCRIPTION, attr.getUsageDescription());
child.putInteger(EntryPersistingConstants.USE, attr.getUse().ordinal());
child.putInteger(EntryPersistingConstants.CARDINALITY, attr.getCardinality().ordinal());
child.putBoolean(EntryPersistingConstants.READ_ONLY, attr.isReadOnly());
saveSyntaxInfo(attr, child);
}