Lines Matching defs:keyword

138      * keyword/OID map.
166 * @param keywordMap a Map where a keyword String maps to a corresponding
167 * OID String. Each AVA keyword will be mapped to the corresponding OID.
169 * keyword/OID mapping.
181 * First get the keyword indicating the attribute's type,
697 * OID/keyword map.
716 * OID/keyword map.
1042 private String toKeywordValueString(String keyword) {
1045 * production as practical. First the keyword (mandatory),
1050 retval.append(keyword);
1059 // with non-standard keyword attributes may be represented
1183 private String keyword;
1187 private AVAKeyword(String keyword, ObjectIdentifier oid,
1189 this.keyword = keyword;
1196 keywordMap.put(keyword, this);
1214 * Get an object identifier representing the specified keyword (or
1217 * @throws IOException If the keyword is not valid in the specified standard
1219 static ObjectIdentifier getOID(String keyword, int standard)
1222 (keyword, standard, Collections.<String, String>emptyMap());
1226 * Get an object identifier representing the specified keyword (or
1229 * @param keywordMap a Map where a keyword String maps to a corresponding
1230 * OID String. Each AVA keyword will be mapped to the corresponding OID.
1232 * keyword/OID mapping.
1233 * @throws IOException If the keyword is not valid in the specified standard
1234 * or the OID String to which a keyword maps to is improperly formatted.
1237 (String keyword, int standard, Map<String, String> extraKeywordMap)
1240 keyword = keyword.toUpperCase(Locale.ENGLISH);
1242 if (keyword.startsWith(" ") || keyword.endsWith(" ")) {
1244 "in keyword \"" + keyword + "\"");
1247 keyword = keyword.trim();
1250 // check user-specified keyword map first, then fallback to built-in
1252 String oidString = extraKeywordMap.get(keyword);
1254 AVAKeyword ak = keywordMap.get(keyword);
1262 // no keyword found or not standard compliant, check if OID string
1266 if (keyword.startsWith("OID.") == false) {
1267 throw new IOException("Invalid RFC1779 keyword: " + keyword);
1269 keyword = keyword.substring(4);
1271 if (keyword.startsWith("OID.")) {
1272 keyword = keyword.substring(4);
1276 if (keyword.length() != 0) {
1277 char ch = keyword.charAt(0);
1283 throw new IOException("Invalid keyword \"" + keyword + "\"");
1285 return new ObjectIdentifier(keyword);
1289 * Get a keyword for the given ObjectIdentifier according to standard.
1290 * If no keyword is available, the ObjectIdentifier is encoded as a
1299 * Get a keyword for the given ObjectIdentifier according to standard.
1300 * Checks the extraOidMap for a keyword first, then falls back to the
1301 * builtin/default set. If no keyword is available, the ObjectIdentifier
1313 return ak.keyword;
1317 throw new IllegalArgumentException("keyword cannot be empty");
1323 ("keyword does not start with letter");
1330 ("keyword character is not a letter, digit, or underscore");
1335 // no compliant keyword, use OID
1344 * Test if oid has an associated keyword in standard.