From 22094368c2865dcfb6daf8366425212b721a4657 Mon Sep 17 00:00:00 2001
From: matthew_swift <matthew_swift@localhost>
Date: Thu, 05 Feb 2009 17:42:14 +0000
Subject: [PATCH] Merge ASN1 branch to trunk
---
opends/src/server/org/opends/server/schema/DITContentRuleSyntax.java | 19 +++++--------------
1 files changed, 5 insertions(+), 14 deletions(-)
diff --git a/opends/src/server/org/opends/server/schema/DITContentRuleSyntax.java b/opends/src/server/org/opends/server/schema/DITContentRuleSyntax.java
index f286458..ef74be8 100644
--- a/opends/src/server/org/opends/server/schema/DITContentRuleSyntax.java
+++ b/opends/src/server/org/opends/server/schema/DITContentRuleSyntax.java
@@ -42,19 +42,10 @@
import org.opends.server.api.SubstringMatchingRule;
import org.opends.server.config.ConfigException;
import org.opends.server.core.DirectoryServer;
-import org.opends.server.types.AttributeType;
-import org.opends.server.types.ByteString;
-import org.opends.server.types.DirectoryException;
-import org.opends.server.types.DITContentRule;
-import org.opends.server.types.InitializationException;
-import org.opends.server.types.ObjectClass;
-import org.opends.server.types.ObjectClassType;
-import org.opends.server.types.ResultCode;
-import org.opends.server.types.Schema;
import static org.opends.server.loggers.debug.DebugLogger.*;
import org.opends.server.loggers.debug.DebugTracer;
-import org.opends.server.types.DebugLogLevel;
+import org.opends.server.types.*;
import static org.opends.messages.SchemaMessages.*;
import org.opends.messages.MessageBuilder;
import static org.opends.server.schema.SchemaConstants.*;
@@ -212,7 +203,7 @@
/**
* {@inheritDoc}
*/
- public boolean valueIsAcceptable(ByteString value,
+ public boolean valueIsAcceptable(ByteSequence value,
MessageBuilder invalidReason)
{
// We'll use the decodeDITContentRule method to determine if the value is
@@ -259,13 +250,13 @@
* @throws DirectoryException If the provided value cannot be decoded as an
* DIT content rule definition.
*/
- public static DITContentRule decodeDITContentRule(ByteString value,
+ public static DITContentRule decodeDITContentRule(ByteSequence value,
Schema schema, boolean allowUnknownElements)
throws DirectoryException
{
// Get string representations of the provided value using the provided form
// and with all lowercase characters.
- String valueStr = value.stringValue();
+ String valueStr = value.toString();
String lowerStr = toLowerCase(valueStr);
@@ -943,7 +934,7 @@
}
- return new DITContentRule(value.stringValue(), structuralClass, names,
+ return new DITContentRule(value.toString(), structuralClass, names,
description, auxiliaryClasses, requiredAttributes,
optionalAttributes, prohibitedAttributes,
isObsolete, extraProperties);
--
Gitblit v1.10.0