| | |
| | | |
| | | |
| | | /** |
| | | * This enumeration defines the set of possible attribute usage values |
| | | * that may apply to an attribute type, as defined in RFC 2252. |
| | | * This enumeration defines the set of possible attribute usage values that may |
| | | * apply to an attribute type, as defined in RFC 2252. |
| | | */ |
| | | public enum AttributeUsage |
| | | { |
| | |
| | | DIRECTORY_OPERATION("directoryOperation", true), |
| | | |
| | | /** |
| | | * The attribute usage intended for non-standard operational |
| | | * attributes shared among multiple DSAs. |
| | | * The attribute usage intended for non-standard operational attributes shared |
| | | * among multiple DSAs. |
| | | */ |
| | | DISTRIBUTED_OPERATION("distributedOperation", true), |
| | | |
| | | /** |
| | | * The attribute usage intended for non-standard operational |
| | | * attributes used by a single DSA. |
| | | * The attribute usage intended for non-standard operational attributes used |
| | | * by a single DSA. |
| | | */ |
| | | DSA_OPERATION("dSAOperation", true); |
| | | |
| | |
| | | |
| | | |
| | | /** |
| | | * Creates a new attribute usage with the provided string |
| | | * representation. |
| | | * |
| | | * Creates a new attribute usage with the provided string representation. |
| | | * |
| | | * @param usageString |
| | | * The string representation of this attribute usage. |
| | | * @param isOperational |
| | | * <code>true</code> if attributes having this attribute |
| | | * usage are operational, or <code>false</code> otherwise. |
| | | * <code>true</code> if attributes having this attribute usage are |
| | | * operational, or <code>false</code> otherwise. |
| | | */ |
| | | private AttributeUsage(String usageString, boolean isOperational) |
| | | private AttributeUsage(final String usageString, final boolean isOperational) |
| | | { |
| | | this.usageString = usageString; |
| | | this.isOperational = isOperational; |
| | |
| | | /** |
| | | * Determine whether or not attributes having this attribute usage are |
| | | * operational. |
| | | * |
| | | * @return Returns <code>true</code> if attributes having this |
| | | * attribute usage are operational, or <code>false</code> |
| | | * otherwise. |
| | | * |
| | | * @return Returns <code>true</code> if attributes having this attribute usage |
| | | * are operational, or <code>false</code> otherwise. |
| | | */ |
| | | public boolean isOperational() |
| | | { |
| | |
| | | |
| | | /** |
| | | * Retrieves a string representation of this attribute usage. |
| | | * |
| | | * |
| | | * @return A string representation of this attribute usage. |
| | | */ |
| | | @Override |