/** * Gets the attribute type whose OID is the given string. * * @param oid OID of attribute type to get. * * @return Attribute type whose OID matches given value or none if there is no standard attribute type matching the * given OID. */ public static StandardAttributeType fromOid(final String oid) { for (StandardAttributeType t : StandardAttributeType.values()) { if (t.getOid().equals(oid)) { return t; } } return null; }