| | |
| | | */ |
| | | package org.opends.server.schema; |
| | | |
| | | import org.opends.server.types.DebugLogLevel; |
| | | import static org.opends.server.loggers.ErrorLogger.logError; |
| | | import static org.opends.server.loggers.debug.DebugLogger.*; |
| | | import org.opends.server.loggers.debug.DebugTracer; |
| | |
| | | import org.opends.server.config.ConfigException; |
| | | import org.opends.server.core.AbsoluteSubtreeSpecification; |
| | | import org.opends.server.core.DirectoryServer; |
| | | import org.opends.server.types.AttributeValue; |
| | | import org.opends.server.types.ByteString; |
| | | import org.opends.server.types.DirectoryException; |
| | | |
| | | import org.opends.server.types.*; |
| | | |
| | | |
| | | /** |
| | |
| | | */ |
| | | public AbsoluteSubtreeSpecification decode(AttributeValue value) |
| | | throws DirectoryException { |
| | | return AbsoluteSubtreeSpecification.valueOf(value.getStringValue()); |
| | | return AbsoluteSubtreeSpecification.valueOf(value.getValue().toString()); |
| | | } |
| | | }; |
| | | |
| | |
| | | * @return <CODE>true</CODE> if the provided value is acceptable for |
| | | * use with this syntax, or <CODE>false</CODE> if not. |
| | | */ |
| | | public boolean valueIsAcceptable(ByteString value, |
| | | public boolean valueIsAcceptable(ByteSequence value, |
| | | MessageBuilder invalidReason) |
| | | { |
| | | // Use the subtree specification code to make this determination. |
| | | try { |
| | | AbsoluteSubtreeSpecification.valueOf(value.stringValue()); |
| | | AbsoluteSubtreeSpecification.valueOf(value.toString()); |
| | | |
| | | return true; |
| | | } catch (DirectoryException e) { |