| | |
| | | * |
| | | * |
| | | * Copyright 2006-2009 Sun Microsystems, Inc. |
| | | * Portions Copyright 2011 ForgeRock AS |
| | | * Portions Copyright 2011-2012 ForgeRock AS |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | |
| | | StringBuilder woidBuffer = new StringBuilder(); |
| | | pos = readQuotedString(valueStr, woidBuffer, pos); |
| | | String syntaxOID = toLowerCase(woidBuffer.toString()); |
| | | AttributeSyntax subSyntax = schema.getSyntax(syntaxOID); |
| | | AttributeSyntax<?> subSyntax = schema.getSyntax(syntaxOID); |
| | | if (subSyntax == null) |
| | | { |
| | | Message message = ERR_ATTR_SYNTAX_LDAPSYNTAX_UNKNOWN_SYNTAX.get( |
| | |
| | | |
| | | |
| | | /** |
| | | * {@inheritDoc} |
| | | */ |
| | | public boolean isHumanReadable() |
| | | { |
| | | return true; |
| | | } |
| | | |
| | | |
| | | |
| | | /** |
| | | * This class provides a substitution mechanism where one unimplemented |
| | | * syntax can be substituted by another defined syntax. A substitution syntax |
| | | * is an LDAPSyntaxDescriptionSyntax with X-SUBST extension. |
| | |
| | | LDAPSyntaxDescriptionSyntax |
| | | { |
| | | // The syntax that will subsittute the unimplemented syntax. |
| | | private AttributeSyntax subSyntax; |
| | | private AttributeSyntax<?> subSyntax; |
| | | |
| | | // The description of this syntax. |
| | | private String description; |
| | |
| | | |
| | | |
| | | //Creates a new instance of this syntax. |
| | | private SubstitutionSyntax(AttributeSyntax subSyntax, |
| | | private SubstitutionSyntax(AttributeSyntax<?> subSyntax, |
| | | String definition, |
| | | String description, |
| | | String oid) |