| | |
| | | |
| | | |
| | | |
| | | import static com.sun.opends.sdk.util.Messages.*; |
| | | |
| | | import java.util.LinkedList; |
| | | import java.util.List; |
| | | |
| | | import org.opends.messages.SchemaMessages; |
| | | import org.opends.sdk.Assertion; |
| | | import org.opends.sdk.ConditionResult; |
| | | import org.opends.sdk.DecodeException; |
| | |
| | | if (value.length() == 0) |
| | | { |
| | | throw DecodeException.error( |
| | | SchemaMessages.WARN_ATTR_SYNTAX_SUBSTRING_EMPTY.get()); |
| | | WARN_ATTR_SYNTAX_SUBSTRING_EMPTY.get()); |
| | | } |
| | | |
| | | ByteSequence initialString = null; |
| | |
| | | if (reader.remaining() == 0) |
| | | { |
| | | throw DecodeException.error( |
| | | SchemaMessages.WARN_ATTR_SYNTAX_SUBSTRING_NO_WILDCARDS |
| | | WARN_ATTR_SYNTAX_SUBSTRING_NO_WILDCARDS |
| | | .get(value.toString())); |
| | | } |
| | | while (true) |
| | |
| | | if (bytes.length() == 0) |
| | | { |
| | | throw DecodeException.error( |
| | | SchemaMessages.WARN_ATTR_SYNTAX_SUBSTRING_CONSECUTIVE_WILDCARDS |
| | | WARN_ATTR_SYNTAX_SUBSTRING_CONSECUTIVE_WILDCARDS |
| | | .get(value.toString(), reader.pos())); |
| | | } |
| | | if (anyStrings == null) |