| | |
| | | reader.skipWhitespaces(); |
| | | |
| | | // The next set of characters must be the OID. |
| | | final String oid = SchemaUtils.readOID(reader); |
| | | final String oid = SchemaUtils.readOID(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | |
| | | List<String> names = Collections.emptyList(); |
| | | String description = "".intern(); |
| | |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("name")) |
| | | { |
| | | names = SchemaUtils.readNameDescriptors(reader); |
| | | names = SchemaUtils.readNameDescriptors(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("desc")) |
| | | { |
| | |
| | | // This specifies the name or OID of the superior attribute |
| | | // type from which this attribute type should inherit its |
| | | // properties. |
| | | superiorType = SchemaUtils.readOID(reader); |
| | | superiorType = SchemaUtils.readOID(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("equality")) |
| | | { |
| | | // This specifies the name or OID of the equality matching |
| | | // rule to use for this attribute type. |
| | | equalityMatchingRule = SchemaUtils.readOID(reader); |
| | | equalityMatchingRule = SchemaUtils.readOID(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("ordering")) |
| | | { |
| | | // This specifies the name or OID of the ordering matching |
| | | // rule to use for this attribute type. |
| | | orderingMatchingRule = SchemaUtils.readOID(reader); |
| | | orderingMatchingRule = SchemaUtils.readOID(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("substr")) |
| | | { |
| | | // This specifies the name or OID of the substring matching |
| | | // rule to use for this attribute type. |
| | | substringMatchingRule = SchemaUtils.readOID(reader); |
| | | substringMatchingRule = SchemaUtils.readOID(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("syntax")) |
| | | { |
| | |
| | | // implementation will ignore any such length because it does |
| | | // not impose any practical limit on the length of attribute |
| | | // values. |
| | | syntax = SchemaUtils.readOIDLen(reader); |
| | | syntax = SchemaUtils.readOIDLen(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("single-definition")) |
| | | { |
| | |
| | | reader.skipWhitespaces(); |
| | | |
| | | // The next set of characters must be the OID. |
| | | final String structuralClass = SchemaUtils.readOID(reader); |
| | | final String structuralClass = SchemaUtils.readOID(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | |
| | | List<String> names = Collections.emptyList(); |
| | | String description = "".intern(); |
| | |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("name")) |
| | | { |
| | | names = SchemaUtils.readNameDescriptors(reader); |
| | | names = SchemaUtils.readNameDescriptors(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("desc")) |
| | | { |
| | |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("aux")) |
| | | { |
| | | auxiliaryClasses = SchemaUtils.readOIDs(reader); |
| | | auxiliaryClasses = SchemaUtils.readOIDs(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("must")) |
| | | { |
| | | requiredAttributes = SchemaUtils.readOIDs(reader); |
| | | requiredAttributes = SchemaUtils.readOIDs(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("may")) |
| | | { |
| | | optionalAttributes = SchemaUtils.readOIDs(reader); |
| | | optionalAttributes = SchemaUtils.readOIDs(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("not")) |
| | | { |
| | | prohibitedAttributes = SchemaUtils.readOIDs(reader); |
| | | prohibitedAttributes = SchemaUtils.readOIDs(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.matches("^X-[A-Za-z_-]+$")) |
| | | { |
| | |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("name")) |
| | | { |
| | | names = SchemaUtils.readNameDescriptors(reader); |
| | | names = SchemaUtils.readNameDescriptors(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("desc")) |
| | | { |
| | |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("form")) |
| | | { |
| | | nameForm = SchemaUtils.readOID(reader); |
| | | nameForm = SchemaUtils.readOID(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("sup")) |
| | | { |
| | |
| | | reader.skipWhitespaces(); |
| | | |
| | | // The next set of characters must be the OID. |
| | | final String oid = SchemaUtils.readOID(reader); |
| | | final String oid = SchemaUtils.readOID(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | |
| | | List<String> names = Collections.emptyList(); |
| | | String description = "".intern(); |
| | |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("name")) |
| | | { |
| | | names = SchemaUtils.readNameDescriptors(reader); |
| | | names = SchemaUtils.readNameDescriptors(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("desc")) |
| | | { |
| | |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("syntax")) |
| | | { |
| | | syntax = SchemaUtils.readOID(reader); |
| | | syntax = SchemaUtils.readOID(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.matches("^X-[A-Za-z_-]+$")) |
| | | { |
| | |
| | | reader.skipWhitespaces(); |
| | | |
| | | // The next set of characters must be the OID. |
| | | final String oid = SchemaUtils.readOID(reader); |
| | | final String oid = SchemaUtils.readOID(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | |
| | | List<String> names = Collections.emptyList(); |
| | | String description = "".intern(); |
| | |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("name")) |
| | | { |
| | | names = SchemaUtils.readNameDescriptors(reader); |
| | | names = SchemaUtils.readNameDescriptors(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("desc")) |
| | | { |
| | |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("applies")) |
| | | { |
| | | attributes = SchemaUtils.readOIDs(reader); |
| | | attributes = SchemaUtils.readOIDs(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.matches("^X-[A-Za-z_-]+$")) |
| | | { |
| | |
| | | reader.skipWhitespaces(); |
| | | |
| | | // The next set of characters must be the OID. |
| | | final String oid = SchemaUtils.readOID(reader); |
| | | final String oid = SchemaUtils.readOID(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | |
| | | List<String> names = Collections.emptyList(); |
| | | String description = "".intern(); |
| | |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("name")) |
| | | { |
| | | names = SchemaUtils.readNameDescriptors(reader); |
| | | names = SchemaUtils.readNameDescriptors(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("desc")) |
| | | { |
| | |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("oc")) |
| | | { |
| | | structuralClass = SchemaUtils.readOID(reader); |
| | | structuralClass = SchemaUtils.readOID(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("must")) |
| | | { |
| | | requiredAttributes = SchemaUtils.readOIDs(reader); |
| | | requiredAttributes = SchemaUtils.readOIDs(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("may")) |
| | | { |
| | | optionalAttributes = SchemaUtils.readOIDs(reader); |
| | | optionalAttributes = SchemaUtils.readOIDs(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.matches("^X-[A-Za-z_-]+$")) |
| | | { |
| | |
| | | reader.skipWhitespaces(); |
| | | |
| | | // The next set of characters must be the OID. |
| | | final String oid = SchemaUtils.readOID(reader); |
| | | final String oid = SchemaUtils.readOID(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | |
| | | List<String> names = Collections.emptyList(); |
| | | String description = "".intern(); |
| | |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("name")) |
| | | { |
| | | names = SchemaUtils.readNameDescriptors(reader); |
| | | names = SchemaUtils.readNameDescriptors(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("desc")) |
| | | { |
| | |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("sup")) |
| | | { |
| | | superiorClasses = SchemaUtils.readOIDs(reader); |
| | | superiorClasses = SchemaUtils.readOIDs(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("abstract")) |
| | | { |
| | |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("must")) |
| | | { |
| | | requiredAttributes = SchemaUtils.readOIDs(reader); |
| | | requiredAttributes = SchemaUtils.readOIDs(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.equalsIgnoreCase("may")) |
| | | { |
| | | optionalAttributes = SchemaUtils.readOIDs(reader); |
| | | optionalAttributes = SchemaUtils.readOIDs(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | } |
| | | else if (tokenName.matches("^X-[A-Za-z_-]+$")) |
| | | { |
| | |
| | | reader.skipWhitespaces(); |
| | | |
| | | // The next set of characters must be the OID. |
| | | final String oid = SchemaUtils.readOID(reader); |
| | | final String oid = SchemaUtils.readOID(reader, |
| | | options.allowMalformedNamesAndOptions()); |
| | | |
| | | String description = "".intern(); |
| | | Map<String, List<String>> extraProperties = Collections.emptyMap(); |