| | |
| | | * |
| | | * |
| | | * Copyright 2009 Sun Microsystems, Inc. |
| | | * Portions copyright 2011 ForgeRock AS |
| | | */ |
| | | |
| | | package org.forgerock.opendj.ldap.schema; |
| | |
| | | |
| | | try |
| | | { |
| | | SchemaUtils.readOID(new SubstringReader(ocName.substring(ocLength))); |
| | | SchemaUtils.readOID(new SubstringReader(ocName.substring(ocLength)), |
| | | schema.allowMalformedNamesAndOptions()); |
| | | } |
| | | catch (final DecodeException de) |
| | | { |
| | |
| | | return false; |
| | | } |
| | | |
| | | return GuideSyntaxImpl.criteriaIsValid(criteria, valueStr, invalidReason); |
| | | return GuideSyntaxImpl.criteriaIsValid(schema, criteria, |
| | | valueStr, invalidReason); |
| | | } |
| | | } |