| | |
| | | import java.util.List; |
| | | import java.util.Map; |
| | | |
| | | import org.opends.sdk.AttributeDescription; |
| | | import org.opends.sdk.LocalizableMessage; |
| | | |
| | | import com.sun.opends.sdk.util.StaticUtils; |
| | |
| | | // The syntax for this attribute type. |
| | | private Syntax syntax; |
| | | |
| | | // The attribute description representing this attribute type with no |
| | | // options. |
| | | private final AttributeDescription attributeDescription; |
| | | |
| | | |
| | | |
| | | AttributeType(String oid, List<String> names, String description, |
| | |
| | | |
| | | this.isObjectClassType = oid.equals("2.5.4.0"); |
| | | this.normalizedName = StaticUtils.toLowerCase(getNameOrOID()); |
| | | this.attributeDescription = AttributeDescription.create(this); |
| | | } |
| | | |
| | | |
| | |
| | | |
| | | this.isObjectClassType = oid.equals("2.5.4.0"); |
| | | this.normalizedName = StaticUtils.toLowerCase(getNameOrOID()); |
| | | this.attributeDescription = AttributeDescription.create(this); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * Returns an attribute description comprising of this attribute type |
| | | * and no options. |
| | | * |
| | | * @return An attribute description comprising of this attribute type |
| | | * and no options. |
| | | */ |
| | | public AttributeDescription asAttributeDescription() |
| | | { |
| | | return attributeDescription; |
| | | } |
| | | |
| | | |