directory-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From fel...@apache.org
Subject svn commit: r919765 [1/3] - in /directory/shared/trunk: i18n/src/main/java/org/apache/directory/shared/i18n/ i18n/src/main/resources/org/apache/directory/shared/i18n/ ldap/src/main/java/org/apache/directory/shared/ldap/schema/ ldap/src/main/java/org/ap...
Date Sat, 06 Mar 2010 13:44:55 GMT
Author: felixk
Date: Sat Mar  6 13:44:54 2010
New Revision: 919765

URL: http://svn.apache.org/viewvc?rev=919765&view=rev
Log:
DIRSHARED-49 (i18n)

Third part

More to follow

Modified:
    directory/shared/trunk/i18n/src/main/java/org/apache/directory/shared/i18n/I18n.java
    directory/shared/trunk/i18n/src/main/resources/org/apache/directory/shared/i18n/errors.properties
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/MatchingRule.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ObjectClass.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ObjectClassTypeEnum.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultDITStructureRuleRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchema.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchemaObjectRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableAttributeTypeRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableComparatorRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableDITContentRuleRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableDITStructureRuleRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableLdapSyntaxRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableMatchingRuleRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableMatchingRuleUseRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableNameFormRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableNormalizerRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableObjectClassRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableSyntaxCheckerRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/OidRegistry.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/Registries.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/subtree/SubtreeSpecificationChecker.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/subtree/SubtreeSpecificationModifier.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/subtree/SubtreeSpecificationParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/TriggerSpecification.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/trigger/TriggerSpecificationParser.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/AbstractSimpleComponentsMonitor.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/ArrayUtils.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/AttributeUtils.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/Base64.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/BooleanUtils.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/ByteBuffer.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/EqualsBuilder.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/ExceptionUtils.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/GeneralizedTime.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/HashCodeBuilder.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/ImmutableAttributeWrapper.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/ImmutableAttributesWrapper.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/JoinIterator.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/LdapURL.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/MandatoryAndOptionalComponentsMonitor.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/NamespaceTools.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/NestableDelegate.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/NoDuplicateKeysMap.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/PreferencesDictionary.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/ReflectionToStringBuilder.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/SequencedHashMap.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/StringTools.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/SystemUtils.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/ToStringBuilder.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/UnixCrypt.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/tree/DnBranchNode.java
    directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/util/unicode/InvalidCharacterException.java

Modified: directory/shared/trunk/i18n/src/main/java/org/apache/directory/shared/i18n/I18n.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/i18n/src/main/java/org/apache/directory/shared/i18n/I18n.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/i18n/src/main/java/org/apache/directory/shared/i18n/I18n.java (original)
+++ directory/shared/trunk/i18n/src/main/java/org/apache/directory/shared/i18n/I18n.java Sat Mar  6 13:44:54 2010
@@ -442,6 +442,147 @@
 	public static final String ERR_04297 = "ERR_04297";
 	public static final String ERR_04298 = "ERR_04298";
 	public static final String ERR_04299 = "ERR_04299";
+	public static final String ERR_04300 = "ERR_04300";
+	public static final String ERR_04301 = "ERR_04301";
+	public static final String ERR_04302 = "ERR_04302";
+	public static final String ERR_04303 = "ERR_04303";
+	public static final String ERR_04304 = "ERR_04304";
+	public static final String ERR_04305 = "ERR_04305";
+	public static final String ERR_04306 = "ERR_04306";
+	public static final String ERR_04307 = "ERR_04307";
+	public static final String ERR_04308 = "ERR_04308";
+	public static final String ERR_04309 = "ERR_04309";
+	public static final String ERR_04310 = "ERR_04310";
+	public static final String ERR_04311 = "ERR_04311";
+	public static final String ERR_04312 = "ERR_04312";
+	public static final String ERR_04313 = "ERR_04313";
+	public static final String ERR_04314 = "ERR_04314";
+	public static final String ERR_04315 = "ERR_04315";
+	public static final String ERR_04316 = "ERR_04316";
+	public static final String ERR_04317 = "ERR_04317";
+	public static final String ERR_04318 = "ERR_04318";
+	public static final String ERR_04319 = "ERR_04319";
+	public static final String ERR_04320 = "ERR_04320";
+	public static final String ERR_04321 = "ERR_04321";
+	public static final String ERR_04322 = "ERR_04322";
+	public static final String ERR_04323 = "ERR_04323";
+	public static final String ERR_04324 = "ERR_04324";
+	public static final String ERR_04325 = "ERR_00025";
+	public static final String ERR_04326 = "ERR_04326";
+	public static final String ERR_04327 = "ERR_04327";
+	public static final String ERR_04328 = "ERR_04328";
+	public static final String ERR_04329 = "ERR_04329";
+	public static final String ERR_04330 = "ERR_04330";
+	public static final String ERR_04331 = "ERR_04331";
+	public static final String ERR_04332 = "ERR_04332";
+	public static final String ERR_04333 = "ERR_04333";
+	public static final String ERR_04334 = "ERR_04334";
+	public static final String ERR_04335 = "ERR_04335";
+	public static final String ERR_04336 = "ERR_04336";
+	public static final String ERR_04337 = "ERR_04337";
+	public static final String ERR_04338 = "ERR_04338";
+	public static final String ERR_04339 = "ERR_04339";
+	public static final String ERR_04340 = "ERR_04340";
+	public static final String ERR_04341 = "ERR_04341";
+	public static final String ERR_04342 = "ERR_04342";
+	public static final String ERR_04343 = "ERR_04343";
+	public static final String ERR_04344 = "ERR_04344";
+	public static final String ERR_04345 = "ERR_04345";
+	public static final String ERR_04346 = "ERR_04346";
+	public static final String ERR_04347 = "ERR_04347";
+	public static final String ERR_04348 = "ERR_04348";
+	public static final String ERR_04349 = "ERR_04349";
+	public static final String ERR_04350 = "ERR_04350";
+	public static final String ERR_04351 = "ERR_04351";
+	public static final String ERR_04352 = "ERR_04352";
+	public static final String ERR_04353 = "ERR_04353";
+	public static final String ERR_04354 = "ERR_04354";
+	public static final String ERR_04355 = "ERR_04355";
+	public static final String ERR_04356 = "ERR_04356";
+	public static final String ERR_04357 = "ERR_04357";
+	public static final String ERR_04358 = "ERR_04358";
+	public static final String ERR_04359 = "ERR_04359";
+	public static final String ERR_04360 = "ERR_04360";
+	public static final String ERR_04361 = "ERR_04361";
+	public static final String ERR_04362 = "ERR_04362";
+	public static final String ERR_04363 = "ERR_04363";
+	public static final String ERR_04364 = "ERR_04364";
+	public static final String ERR_04365 = "ERR_04365";
+	public static final String ERR_04366 = "ERR_04366";
+	public static final String ERR_04367 = "ERR_04367";
+	public static final String ERR_04368 = "ERR_04368";
+	public static final String ERR_04369 = "ERR_04369";
+	public static final String ERR_04370 = "ERR_04370";
+	public static final String ERR_04371 = "ERR_04371";
+	public static final String ERR_04372 = "ERR_04372";
+	public static final String ERR_04373 = "ERR_04373";
+	public static final String ERR_04374 = "ERR_04374";
+	public static final String ERR_04375 = "ERR_04375";
+	public static final String ERR_04376 = "ERR_04376";
+	public static final String ERR_04377 = "ERR_04377";
+	public static final String ERR_04378 = "ERR_04378";
+	public static final String ERR_04379 = "ERR_04379";
+	public static final String ERR_04380 = "ERR_04380";
+	public static final String ERR_04381 = "ERR_04381";
+	public static final String ERR_04382 = "ERR_04382";
+	public static final String ERR_04383 = "ERR_04383";
+	public static final String ERR_04384 = "ERR_04384";
+	public static final String ERR_04385 = "ERR_04385";
+	public static final String ERR_04386 = "ERR_04386";
+	public static final String ERR_04387 = "ERR_04387";
+	public static final String ERR_04388 = "ERR_04388";
+	public static final String ERR_04389 = "ERR_04389";
+	public static final String ERR_04390 = "ERR_04390";
+	public static final String ERR_04391 = "ERR_04391";
+	public static final String ERR_04392 = "ERR_04392";
+	public static final String ERR_04393 = "ERR_04393";
+	public static final String ERR_04394 = "ERR_04394";
+	public static final String ERR_04395 = "ERR_04395";
+	public static final String ERR_04396 = "ERR_04396";
+	public static final String ERR_04397 = "ERR_04397";
+	public static final String ERR_04398 = "ERR_04398";
+	public static final String ERR_04399 = "ERR_04399";
+	public static final String ERR_04400 = "ERR_04400";
+	public static final String ERR_04401 = "ERR_04401";
+	public static final String ERR_04402 = "ERR_04402";
+	public static final String ERR_04403 = "ERR_04403";
+	public static final String ERR_04404 = "ERR_04404";
+	public static final String ERR_04405 = "ERR_04405";
+	public static final String ERR_04406 = "ERR_04406";
+	public static final String ERR_04407 = "ERR_04407";
+	public static final String ERR_04408 = "ERR_04408";
+	public static final String ERR_04409 = "ERR_04409";
+	public static final String ERR_04410 = "ERR_04410";
+	public static final String ERR_04411 = "ERR_04411";
+	public static final String ERR_04412 = "ERR_04412";
+	public static final String ERR_04413 = "ERR_04413";
+	public static final String ERR_04414 = "ERR_04414";
+	public static final String ERR_04415 = "ERR_04415";
+	public static final String ERR_04416 = "ERR_04416";
+	public static final String ERR_04417 = "ERR_04417";
+	public static final String ERR_04418 = "ERR_04418";
+	public static final String ERR_04419 = "ERR_04419";
+	public static final String ERR_04420 = "ERR_04420";
+	public static final String ERR_04421 = "ERR_04421";
+	public static final String ERR_04422 = "ERR_04422";
+	public static final String ERR_04423 = "ERR_04423";
+	public static final String ERR_04424 = "ERR_04424";
+	public static final String ERR_04425 = "ERR_00025";
+	public static final String ERR_04426 = "ERR_04426";
+	public static final String ERR_04427 = "ERR_04427";
+	public static final String ERR_04428 = "ERR_04428";
+	public static final String ERR_04429 = "ERR_04429";
+	public static final String ERR_04430 = "ERR_04430";
+	public static final String ERR_04431 = "ERR_04431";
+	public static final String ERR_04432 = "ERR_04432";
+	public static final String ERR_04433 = "ERR_04433";
+	public static final String ERR_04434 = "ERR_04434";
+	public static final String ERR_04435 = "ERR_04435";
+	public static final String ERR_04436 = "ERR_04436";
+	public static final String ERR_04437 = "ERR_04437";
+	public static final String ERR_04438 = "ERR_04438";
+	public static final String ERR_04439 = "ERR_04439";
+	public static final String ERR_04440 = "ERR_04440";
 
 	// ldap-constants
 	public static final String ERR_05001 = "ERR_05001";

Modified: directory/shared/trunk/i18n/src/main/resources/org/apache/directory/shared/i18n/errors.properties
URL: http://svn.apache.org/viewvc/directory/shared/trunk/i18n/src/main/resources/org/apache/directory/shared/i18n/errors.properties?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/i18n/src/main/resources/org/apache/directory/shared/i18n/errors.properties (original)
+++ directory/shared/trunk/i18n/src/main/resources/org/apache/directory/shared/i18n/errors.properties Sat Mar  6 13:44:54 2010
@@ -329,119 +329,216 @@
 ERR_04225=Encountered name based id of {0} which was not found in the OID registry
 ERR_04226=I do not know how to handle NameAndOptionalUID normalization with objects of class: {0}
 ERR_04227=Cannot parse a null AttributeType
-ERR_04228=Parser failure on attribute type description:\n\{0}\nAntlr message: {1}\nAntlr column: {2}
-ERR_04229=Parser failure on attribute type description:\n\t{0}\nAntlr message: {1}
+ERR_04228=Parser failure on attribute type description\:\n{0}\nAntlr message\: {1}\nAntlr column\: {2}
+ERR_04229=Parser failure on attribute type description\:\n\t{0}\nAntlr message\: {1}
 ERR_04230=Cannot parse a null DITContentRule
-ERR_04231=Parser failure on DIT content rule description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
-ERR_04232=Parser failure on DIT content rule description:\n\t{0}\nAntlr message: {1}
+ERR_04231=Parser failure on DIT content rule description\:\n\t{0}\nAntlr message\: {1}\nAntlr column\: {2}
+ERR_04232=Parser failure on DIT content rule description\:\n\t{0}\nAntlr message\: {1}
 ERR_04233=Cannot parse a null DITStructureRule description
-ERR_04234=Parser failure on DIT structure rule description:\n\t{0}\nAntlr message: {1}nAntlr column: {2}
-ERR_04235=Parser failure on DIT structure rule description:\n\t{0}\nAntlr message: {1}
+ERR_04234=Parser failure on DIT structure rule description\:\n\t{0}\nAntlr message\: {1}nAntlr column\: {2}
+ERR_04235=Parser failure on DIT structure rule description\:\n\t{0}\nAntlr message\: {1}
 ERR_04236=Cannot parse a null LdapComparator description
-ERR_04237=Parser failure on comparator description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
-ERR_04238=Parser failure on comparator description:\n\t{0}\nAntlr message: {1}
+ERR_04237=Parser failure on comparator description\:\n\t{0}\nAntlr message\: {1}\nAntlr column\: {2}
+ERR_04238=Parser failure on comparator description\:\n\t{0}\nAntlr message\: {1}
 ERR_04239=Cannot parse a null LdapSyntax
-ERR_04240=Parser failure on LDAP syntay description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
-ERR_04241=Parser failure on LDAP syntay description:\n\t{0}\nAntlr message: {1}
+ERR_04240=Parser failure on LDAP syntay description\:\n\t{0}\nAntlr message\: {1}\nAntlr column\: {2}
+ERR_04241=Parser failure on LDAP syntay description\:\n\t{0}\nAntlr message\: {1}
 ERR_04242=Cannot parse a null MatchingRule
-ERR_04243=Parser failure on matching rule description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
-ERR_04244=Parser failure on matching rule description:\n\t{0}\nAntlr message: {1}
+ERR_04243=Parser failure on matching rule description\:\n\t{0}\nAntlr message\: {1}\nAntlr column\: {2}
+ERR_04244=Parser failure on matching rule description\:\n\t{0}\nAntlr message\: {1}
 ERR_04245=Cannot parse a null MatchingRuleUse
-ERR_04246=Parser failure on matching rule description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
-ERR_04247=Parser failure on matching rule description:\n\t{0}\nAntlr message: {1}
+ERR_04246=Parser failure on matching rule description\:\n\t{0}\nAntlr message\: {1}\nAntlr column\: {2}
+ERR_04247=Parser failure on matching rule description\:\n\t{0}\nAntlr message\: {1}
 ERR_04248=Cannot parse a null NameForm
-ERR_04249=Parser failure on name form description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2} 
-ERR_04250="Parser failure on name form description:\n\t{0}\nAntlr message: {1}
+ERR_04249=Parser failure on name form description\:\n\t{0}\nAntlr message\: {1}\nAntlr column\: {2} 
+ERR_04250="Parser failure on name form description\:\n\t{0}\nAntlr message\: {1}
 ERR_04251=Cannot parse a null Normalizer description
-ERR_04252=Parser failure on normalizer description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
-ERR_04253=Parser failure on normalizer description:\n\t{0}\nAntlr message: {1}
+ERR_04252=Parser failure on normalizer description\:\n\t{0}\nAntlr message\: {1}\nAntlr column\: {2}
+ERR_04253=Parser failure on normalizer description\:\n\t{0}\nAntlr message\: {1}
 ERR_04254=Cannot parse a null LdapComparator description
-ERR_04255=Parser failure on object class description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
-ERR_04256=Parser failure on object class description:\n\t{0}\nAntlr message: {1}
+ERR_04255=Parser failure on object class description\:\n\t{0}\nAntlr message\: {1}\nAntlr column\: {2}
+ERR_04256=Parser failure on object class description\:\n\t{0}\nAntlr message\: {1}
 ERR_04257=No object identifier macro with name {0}
 ERR_04258=The schemaObject is either null or is the empty String!
-ERR_04259="Parser failure on syntax checker description:\n\t{0}\nAntlr message: {1}\nAntlr column: {2}
-ERR_04260=Parser failure on syntax checker description:\n\t{0}\nAntlr message: {1}
-ERR_04261=
-ERR_04262=
-ERR_04263=
-ERR_04264=
-ERR_04265=
-ERR_04266=
-ERR_04267=
-ERR_04268=
-ERR_04269=
-ERR_04270=
-ERR_04271=
-ERR_04272=
-ERR_04273=
-ERR_04274=
-ERR_04275=
-ERR_04276=
-ERR_04277=
-ERR_04278=
-ERR_04279=
-ERR_04280=
-ERR_04281=
-ERR_04282=
-ERR_04283=
-ERR_04284=
-ERR_04285=
-ERR_04286=
-ERR_04287=
-ERR_04288=
-ERR_04289=
-ERR_04290=
-ERR_04291=
-ERR_04292=
-ERR_04293=
-ERR_04294=
-ERR_04295=
-ERR_04296=
-ERR_04297=
-ERR_04298=
-ERR_04299=
-        
-# ldap-constants
-ERR_05001=
-ERR_05002=
-ERR_05003=
-ERR_05004=
-ERR_05005=
-ERR_05006=
-ERR_05007=
-ERR_05008=
-ERR_05009=
-ERR_05010=
-ERR_05011=
-ERR_05012=
-ERR_05013=
-ERR_05014=
-ERR_05015=
-ERR_05016=
-ERR_05017=
-ERR_05018=
-ERR_05019=
-ERR_05020=
-ERR_05021=
-ERR_05022=
-ERR_05023=
-ERR_05024=
-ERR_05025=
-ERR_05026=
-ERR_05027=
-ERR_05028=
-ERR_05029=
-ERR_05030=
-ERR_05031=
-ERR_05032=
-ERR_05033=
-ERR_05034=
-ERR_05035=
-ERR_05036=
-ERR_05037=
-ERR_05038=
-ERR_05039=
-ERR_05040=
-
-
+ERR_04259="Parser failure on syntax checker description\:\n\t{0}\nAntlr message\: {1}\nAntlr column\: {2}
+ERR_04260=Parser failure on syntax checker description\:\n\t{0}\nAntlr message\: {1}
+ERR_04261=entry cannot be null
+ERR_04262=entry must have a valid cn attribute
+ERR_04263=RuleId {0} not found in ruleId to schema name map!
+ERR_04264=DITStructureRule with RuleId {0} already registered!
+ERR_04265=DITStructureRule for ruleId {0} does not exist!
+ERR_04266=name cannot be null
+ERR_04267=Looks like the arg is not a numeric OID
+ERR_04268=OID {0} not found in oid to schema name map!
+ERR_04269={0} for OID {1} does not exist!
+ERR_04270={0} with OID {1} already registered!
+ERR_04271={0} with name {1} already registered!
+ERR_04272=OID {0} is not a numeric OID
+ERR_04273={0} with OID {1} not registered!
+ERR_04274=Can't find an OID for the name {0}
+ERR_04275=Cannot modify the AttributeTypeRegistry copy
+ERR_04276=Cannot modify the ComparatorRegistry copy
+ERR_04277=Cannot modify the DITContentRuleRegistry copy
+ERR_04278=Cannot modify the DITStructureRuleRegistry copy
+ERR_04279=Cannot modify the LdapSyntaxRegistry copy
+ERR_04280=Cannot modify the MatchingRuleRegistry copy
+ERR_04281=Cannot modify the MatchingRuleUseRegistry copy
+ERR_04282=Cannot modify the NameFormRegistry copy
+ERR_04283=Cannot modify the NormalizerRegistry copy
+ERR_04284=Cannot modify the ObjectClassRegistry copy
+ERR_04285=Cannot modify the SyntaxCheckerRegistry copy
+ERR_04286=OID '{0}' was not found within the OID registry
+ERR_04287=There is no SchemaObject associated with OID '{0}'
+ERR_04288=OID '{0}' was not found within the OID registry
+ERR_04289=Cannot register a Null SchemaObject !
+ERR_04290=The given SchemaObject does not have a valid OID
+ERR_04291=There is already a SchemaObject for OID '{0}'
+ERR_04292=Cannot build the references for {0}, error : {1}
+ERR_04293=Cannot remove the references for {0}, error : {1}
+ERR_04294=The MatchingRule {0} does not have a syntax. This is invalid
+ERR_04295=The MatchingRule {0} does not have a normalizer. This is invalid
+ERR_04296=The MatchingRule {0} does not have a comparator. This is invalid
+ERR_04297=The AttributeType {0} can't have itself as a superior, or a cycle has been detected while processing the superior's tree
+ERR_04298=The AttributeType {0} does not have a superior nor a Syntax. This is invalid
+ERR_04299=The ObjectClass {0} has some AttribteType in MAY which is already declared in one of its superior MUST
+ERR_04300=The ObjectClass {0} can't have itself as a superior, or a cycle has been detected while processing the superior's tree, or this superior has already been added \: \n{1}
+ERR_04301=Registering of {0}:{1} failed, it's already present in the Registries
+ERR_04302=Unregistering of {0}:{1} failed, it's not present in the Registries
+ERR_04303=Cannot find the SUPERIOR object {0} while building cross-references for the {1} AttributeType.
+ERR_04304=A cycle has been detected in the superior hierarchyOid while building cross-references for the {0} AttributeType.
+ERR_04305=Cannot find the SUPERIOR object {0} while building cross-references for the {1} AttributeType.
+ERR_04306=Cannot find a Syntax object {0} while building cross-references for the {1} AttributeType.
+ERR_04307=The AttributeType {0} must have a syntax OID or a superior, it does not have any.
+ERR_04308=Cannot find an Equality MatchingRule object for {0} while building cross-references for the {1} AttributeType.
+ERR_04309=Cannot find an EQUALITY MatchingRule instance for {0} while building cross-references for the {1} AttributeType.
+ERR_04310=Cannot find a Ordering MatchingRule object for {0} while building cross-references for the {1} AttributeType.
+ERR_04311=Cannot find an ORDERING MatchingRule instance for {0} while building cross-references for the {1} AttributeType.
+ERR_04312=Cannot find a SUBSTR MatchingRule object for {0} while building cross-references for the {1} AttributeType.
+ERR_04313=Cannot find a SUBSTR MatchingRule instance for {0} while building cross-references for the {1} AttributeType.
+ERR_04314=The attributeType {0} must have the same USAGE than its superior
+ERR_04315=The attributeType {0} is a USER-APPLICATION attribute, it must be USER-MODIFIABLE
+ERR_04316=The attributeType {0} is a COLLECTIVE AttributeType, it must be a USER-APPLICATION attributeType too.
+ERR_04317=The created MatchingRule must refers to an existing SYNTAX element
+ERR_04318=Cannot register the SchemaOject {0}, an ABSTRACT ObjectClass cannot inherit from an {1} ObjectClass :/n {2}
+ERR_04319=Cannot register the SchemaOject {0}, an AUXILIARY ObjectClass cannot inherit from a STRUCTURAL ObjectClass :/n {1}
+ERR_04320=Cannot register the SchemaOject {0}, a STRUCTURAL ObjectClass cannot inherit from an AUXILIARY ObjectClass :/n {1}
+ERR_04321=Cannot register the SchemaOject {0}, the given SUPERIOR does not exist : {1}
+ERR_04322=Cannot register the SchemaOject {0}, there are some duplicate AT in the MAY : {1}
+ERR_04323=Cannot register the SchemaOject {0}, the AT we want to add to MAY does not exist : {1}
+ERR_04324=Cannot register the SchemaOject {0}, there are some duplicate AT in the MUST : {1}
+ERR_04325=Cannot register the SchemaOject {0}, there are some duplicate AT in MAY and MUST : {1}
+ERR_04326=Cannot register the SchemaOject {0}, the AT we want to add to MUST does not exist : {1}
+ERR_04327=Unknown objectClass type name '{0}': options are AUXILIARY, STRUCTURAL, ABSTRACT.
+ERR_04328=undefined modification type: {0}
+ERR_04329=Parser failure on subtree specification\:\n\t{0}\nAntlr exception trace\:\n{1}
+ERR_04330=A negative minimum base distance is undefined!
+ERR_04331=TriggerSpecification cannot be initialized with any NULL argument.
+ERR_04332=TriggerSpecification cannot be initialized with emtpy SPSPec list.
+ERR_04333=Parser failure on Trigger Specification\:\n\t{0}\nAntlr exception trace\:\n{1}
+ERR_04334=Overlapping partitions are not allowed
+ERR_04335=Invalid Character 0x{0}
+ERR_04336=Unregistered or previously used component: {0}
+ERR_04337=The Array must not be null
+ERR_04338=Index: {0}, Length: {1}
+ERR_04339=Cannot figure out attribute ID if both args are null
+ERR_04340=Cannot take difference of attributes with different IDs!
+ERR_04341=Cannot figure out attribute ID if both args are null
+ERR_04342=Cannot take union of attributes with different IDs!
+ERR_04343=An empty option is not allowed
+ERR_04344=Invalid OID, missing '.'
+ERR_04345=Invalid OID, missing a number after a '.'
+ERR_04346=Empty attributes
+ERR_04347=Bad char in attribute
+ERR_04348=Miscalculated data length (wrote {0} instead of {1})
+ERR_04349=The Integer did not match either specified value
+ERR_04350=The String did not match any specified value
+ERR_04351=The Array must not be null
+ERR_04352=Array is empty
+ERR_04353=The array must not contain any null elements
+ERR_04354=initialSize must be greater than zero
+ERR_04355=Unexpected IllegalAccessException
+ERR_04356=The PrintWriter must not be null
+ERR_04357=The List must not be null
+ERR_04358=Calendar must not be null.
+ERR_04359=generalizedTime is null
+ERR_04360=Generalized Time too short, doesn't contain field 'minute' or 'fraction of hour' or 'timezone'.
+ERR_04361=Generalized Time too short, doesn't contain field 'second' or 'fraction of minute' or 'timezone'.
+ERR_04362=Generalized Time too short, doesn't contain field 'fraction of second' or 'timezone'.
+ERR_04363=Invalid Time too short, expected field 'fraction of second' or 'timezone'.
+ERR_04364=Invalid Time too short, expected field 'second' or 'fraction of minute' or 'timezone'.
+ERR_04365=Invalid Generalized Time, expected field 'minute' or 'fraction of hour' or 'timezone'.
+ERR_04366=Invalid date/time values.
+ERR_04367=Generalized Time too short, doesn't contain field 'timezone'.
+ERR_04368=Invalid Generalized Time, expected 'timezone' as the last field.
+ERR_04369=Invalid Generalized Time, expected field 'timezone' must contain 2 or 4 digits.
+ERR_04370=Invalid Generalized Time, expected 'timezone' as the last field.
+ERR_04371=Generalized Time too short, doesn't contain number for 'fraction'.
+ERR_04372=Generalized Time too short, doesn't contain field 'second'.
+ERR_04373=Invalid Generalized Time, field 'second' is not numeric.
+ERR_04374=Generalized Time too short, doesn't contain field 'minute'.
+ERR_04375=Invalid Generalized Time, field 'minute' is not numeric.
+ERR_04376=Generalized Time too short, doesn't contain field 'hour'.
+ERR_04377=Invalid Generalized Time, field 'hour' is not numeric.
+ERR_04378=Generalized Time too short, doesn't contain field 'day'.
+ERR_04379=Invalid Generalized Time, field 'day' is not numeric.
+ERR_04380=Generalized Time too short, doesn't contain field 'month'.
+ERR_04381=Invalid Generalized Time, field 'month' is not numeric.
+ERR_04382=Generalized Time too short, doesn't contain field 'century/year'.
+ERR_04383=Invalid Generalized Time, field 'century/year' is not numeric.
+ERR_04384=HashCodeBuilder requires a non zero initial value
+ERR_04385=HashCodeBuilder requires an odd initial value
+ERR_04386=HashCodeBuilder requires a non zero multiplier
+ERR_04387=HashCodeBuilder requires an odd multiplier
+ERR_04388=The object to build a hash code for must not be null
+ERR_04389=Putting attributes not supported by immutable attributes
+ERR_04390=Removing attributes not supported by immutable attributes
+ERR_04391=Now why would you want to clone() an immutable object in the first place.
+ERR_04392=Value addition not supported for immutable attribute
+ERR_04393=Value removal not supported for immutable attribute
+ERR_04394=Clearing all values not supported for immutable attribute
+ERR_04395=Now why would you ever want to clone an immutable object?
+ERR_04396=Value alteration is not supported for immutable attribute
+ERR_04397=Iterator[] arg must not be null, empty or composed of less than two Iterators
+ERR_04398=A LdapUrl must start with "ldap\://" or "ldaps\://"
+ERR_04399=The hostport is invalid
+ERR_04400=Bad character, position {0}, '{1}', '/' expected"
+ERR_04401=The DN is invalid
+ERR_04402=Bad character, position {0}, '{1}', '?' expected
+ERR_04403=Attributes are invalid
+ERR_04404=Scope is invalid
+ERR_04405=Filter is invalid
+ERR_04406=Extensions are invalid
+ERR_04407=Invalid character at the end of the ldapUrl
+ERR_04408=The string is empty : this is not a valid LdapURL.
+ERR_04409=Bad Ldap URL : {0}
+ERR_04410=The byte array is empty : this is not a valid LdapURL.
+ERR_04411=Parameter may not be null
+ERR_04412=charset may not be null or empty
+ERR_04413=HttpClient requires ASCII support
+ERR_04414=Invalid URL encoding
+ERR_04415=Common element, "{0}" detected for Mandatory and Optional components.
+ERR_04416=Unregistered or previously used component: {0}
+ERR_04417={0} is not ancestually related to context: {1}
+ERR_04418=invalid name - a name cannot start with a '+': {0}
+ERR_04419=The Nestable implementation passed to the NestableDelegate(Nestable) constructor must extend java.lang.Throwable"
+ERR_04420=The start index was out of bounds: {0}
+ERR_04421=The start index was out of bounds: {0} >= {1}
+ERR_04422=Adding duplicate keys is not permitted.
+ERR_04423=can't get keys from prefs
+ERR_04424=Unexpected IllegalAccessException: {0}
+ERR_04425=bad iterator type: {0}
+ERR_04426=remove() must follow next()
+ERR_04427={0} < 0
+ERR_04428={0} >= {1}
+ERR_04429=Regex was null
+ERR_04430=Ldap regex must have wild cards!
+ERR_04431=Expected string to start with a '#' character. Invalid hex encoded string for empty or null string.
+ERR_04432=Expected string to start with a '#' character. Invalid hex encoded string: {0} 
+ERR_04433=Expected string to be non-null with valid index.
+ERR_04434=Expected string to be non-empty with valid index.
+ERR_04435=The DN must contain valid escaped characters.
+ERR_04436=The DN must not ends with a '\\'.
+ERR_04437=Caught a SecurityException reading the system property '{0}'; the SystemUtils property value will default to null.
+ERR_04438=The style must not be null
+ERR_04439=Usage - java org.mortbay.util.UnixCrypt <key> <salt>
+ERR_04440=Crypt={0}

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/AttributeType.java Sat Mar  6 13:44:54 2010
@@ -26,6 +26,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.exception.LdapSchemaViolationException;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.schema.registries.AttributeTypeRegistry;
@@ -223,8 +224,7 @@
             catch ( Exception e )
             {
                 // Not allowed.
-                String msg = "Cannot find the SUPERIOR object " + superiorOid
-                    + " while building cross-references for the " + getName() + " AttributeType.";
+                String msg = I18n.err( I18n.ERR_04303, superiorOid, getName() );
 
                 Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                 errors.add( error );
@@ -270,8 +270,7 @@
                     {
                         // There is a cycle : bad bad bad !
                         // Not allowed.
-                        String msg = "A cycle has been detected in the superior hierarchyOid"
-                            + " while building cross-references for the " + getName() + " AttributeType.";
+                        String msg = I18n.err( I18n.ERR_04304, getName() );
 
                         Throwable error = new LdapSchemaViolationException( msg,
                             ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
@@ -295,8 +294,7 @@
             else
             {
                 // Not allowed.
-                String msg = "Cannot find the SUPERIOR object " + superiorOid
-                    + " while building cross-references for the " + getName() + " AttributeType.";
+                String msg = I18n.err( I18n.ERR_04305, superiorOid, getName() );
 
                 Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                 errors.add( error );
@@ -330,8 +328,7 @@
             catch ( NamingException ne )
             {
                 // Not allowed.
-                String msg = "Cannot find a Syntax object " + syntaxOid + " while building cross-references for the "
-                    + getName() + " AttributeType.";
+                String msg = I18n.err( I18n.ERR_04306, syntaxOid, getName() );
 
                 Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                 errors.add( error );
@@ -347,8 +344,7 @@
             else
             {
                 // Not allowed.
-                String msg = "Cannot find a Syntax object " + syntaxOid + " while building cross-references for the "
-                    + getName() + " AttributeType.";
+                String msg = I18n.err( I18n.ERR_04306, syntaxOid, getName() );
 
                 Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                 errors.add( error );
@@ -367,8 +363,7 @@
             else
             {
                 // Not allowed.
-                String msg = "The AttributeType " + getName() + " must have "
-                    + "a syntax OID or a superior, it does not have any.";
+                String msg = I18n.err( I18n.ERR_04307, getName() );
 
                 Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                 errors.add( error );
@@ -396,8 +391,7 @@
             catch ( NamingException ne )
             {
                 // Not allowed.
-                String msg = "Cannot find an Equality MatchingRule object for " + equalityOid
-                    + " while building cross-references for the " + getName() + " AttributeType.";
+                String msg = I18n.err( I18n.ERR_04308, equalityOid, getName() );
 
                 Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                 errors.add( error );
@@ -412,8 +406,7 @@
             else
             {
                 // Not allowed.
-                String msg = "Cannot find an EQUALITY MatchingRule instance for " + equalityOid
-                    + " while building cross-references for the " + getName() + " AttributeType.";
+                String msg = I18n.err( I18n.ERR_04309, equalityOid, getName() );
 
                 Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                 errors.add( error );
@@ -448,8 +441,7 @@
             catch ( NamingException ne )
             {
                 // Not allowed.
-                String msg = "Cannot find a Ordering MatchingRule object for " + orderingOid
-                    + " while building cross-references for the " + getName() + " AttributeType.";
+                String msg = I18n.err( I18n.ERR_04310, orderingOid, getName() );
 
                 Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                 errors.add( error );
@@ -464,8 +456,7 @@
             else
             {
                 // Not allowed.
-                String msg = "Cannot find an ORDERING MatchingRule instance for " + orderingOid
-                    + " while building cross-references for the " + getName() + " AttributeType.";
+                String msg = I18n.err( I18n.ERR_04311, orderingOid, getName() );
 
                 Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                 errors.add( error );
@@ -501,8 +492,7 @@
             catch ( NamingException ne )
             {
                 // Not allowed.
-                String msg = "Cannot find a SUBSTR MatchingRule object for " + substringOid
-                    + " while building cross-references for the " + getName() + " AttributeType.";
+                String msg = I18n.err( I18n.ERR_04312, substringOid, getName() );
 
                 Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                 errors.add( error );
@@ -517,8 +507,7 @@
             else
             {
                 // Not allowed.
-                String msg = "Cannot find a SUBSTR MatchingRule instance for " + substringOid
-                    + " while building cross-references for the " + getName() + " AttributeType.";
+                String msg = I18n.err( I18n.ERR_04313, substringOid, getName() );
 
                 Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                 errors.add( error );
@@ -547,7 +536,7 @@
         if ( ( superior != null ) && ( usage != superior.getUsage() ) )
         {
             // This is an error
-            String msg = "The attributeType " + getName() + " must have the same USAGE than its superior";
+            String msg = I18n.err( I18n.ERR_04314, getName() );
 
             Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
             errors.add( error );
@@ -559,8 +548,7 @@
         if ( !isUserModifiable() && ( usage == UsageEnum.USER_APPLICATIONS ) )
         {
             // Cannot have a not user modifiable AT which is not an operational AT
-            String msg = "The attributeType " + getName() + " is a USER-APPLICATION attribute, "
-                + "it must be USER-MODIFIABLE";
+            String msg = I18n.err( I18n.ERR_04315, getName() );
 
             Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
             errors.add( error );
@@ -586,8 +574,7 @@
         if ( isCollective() && ( usage != UsageEnum.USER_APPLICATIONS ) )
         {
             // An AttributeType which is collective must be a USER attributeType
-            String msg = "The attributeType " + getName() + " is a COLLECTIVE AttributeType, "
-                + ", it must be a USER-APPLICATION attributeType too.";
+            String msg = I18n.err( I18n.ERR_04316, getName() );
 
             Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
             errors.add( error );

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/MatchingRule.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/MatchingRule.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/MatchingRule.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/MatchingRule.java Sat Mar  6 13:44:54 2010
@@ -24,6 +24,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.exception.LdapSchemaViolationException;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.schema.comparators.ComparableComparator;
@@ -153,8 +154,7 @@
             catch ( NamingException ne )
             {
                 // The Syntax is a mandatory element, it must exist.
-                throw new LdapSchemaViolationException(
-                    "The created MatchingRule must refers to an existing SYNTAX element",
+                throw new LdapSchemaViolationException( I18n.err( I18n.ERR_04317 ),
                     ResultCodeEnum.UNWILLING_TO_PERFORM );
             }
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ObjectClass.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ObjectClass.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ObjectClass.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ObjectClass.java Sat Mar  6 13:44:54 2010
@@ -25,6 +25,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.exception.LdapSchemaViolationException;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.schema.registries.AttributeTypeRegistry;
@@ -143,9 +144,7 @@
                             if ( superior.objectClassType != ObjectClassTypeEnum.ABSTRACT )
                             {
                                 // An ABSTRACT OC can only inherit from ABSTRACT OCs
-                                String msg = "Cannot register the SchemaOject " + oid + ", an ABSTRACT ObjectClass "
-                                    + "cannot inherit from an " + superior.getObjectType() + " ObjectClass :/n "
-                                    + superior;
+                                String msg = I18n.err( I18n.ERR_04318, oid , superior.getObjectType() , superior );
 
                                 Throwable error = new LdapSchemaViolationException( msg,
                                     ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
@@ -159,8 +158,7 @@
                             if ( superior.objectClassType == ObjectClassTypeEnum.STRUCTURAL )
                             {
                                 // An AUXILIARY OC can only inherit from STRUCTURAL OCs
-                                String msg = "Cannot register the SchemaOject " + oid + ", an AUXILIARY ObjectClass "
-                                    + "cannot inherit from a STRUCTURAL ObjectClass :/n " + superior;
+                                String msg = I18n.err( I18n.ERR_04319, oid, superior );
 
                                 Throwable error = new LdapSchemaViolationException( msg,
                                     ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
@@ -174,8 +172,7 @@
                             if ( superior.objectClassType == ObjectClassTypeEnum.AUXILIARY )
                             {
                                 // A STRUCTURAL OC can only inherit from AUXILIARY OCs
-                                String msg = "Cannot register the SchemaOject " + oid + ", a STRUCTURAL ObjectClass "
-                                    + "cannot inherit from an AUXILIARY ObjectClass :/n " + superior;
+                                String msg = I18n.err( I18n.ERR_04320, oid, superior );
 
                                 Throwable error = new LdapSchemaViolationException( msg,
                                     ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
@@ -191,8 +188,7 @@
                 catch ( NamingException ne )
                 {
                     // Cannot find the OC
-                    String msg = "Cannot register the SchemaOject " + oid + ", the given SUPERIOR does not exist : "
-                        + superiorName;
+                    String msg = I18n.err( I18n.ERR_04321, oid, superiorName );
 
                     Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                     errors.add( error );
@@ -220,9 +216,7 @@
                     if ( mayAttributeTypes.contains( attributeType ) )
                     {
                         // Already registered : this is an error
-                        String msg = "Cannot register the SchemaOject " + oid
-                            + ", there are some duplicate AT in the MAY : " + mayAttributeTypeName;
-
+                        String msg = I18n.err( I18n.ERR_04322, oid, mayAttributeTypeName );
                         Throwable error = new LdapSchemaViolationException( msg,
                             ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                         errors.add( error );
@@ -234,8 +228,7 @@
                 catch ( NamingException ne )
                 {
                     // Cannot find the AT
-                    String msg = "Cannot register the SchemaOject " + oid
-                        + ", the AT we want to add to MAY does not exist : " + mayAttributeTypeName;
+                    String msg = I18n.err( I18n.ERR_04323, oid, mayAttributeTypeName );
 
                     Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                     errors.add( error );
@@ -263,8 +256,7 @@
                     if ( mustAttributeTypes.contains( attributeType ) )
                     {
                         // Already registered : this is an error
-                        String msg = "Cannot register the SchemaOject " + oid
-                            + ", there are some duplicate AT in the MUST : " + mustAttributeTypeName;
+                        String msg = I18n.err( I18n.ERR_04324, oid, mustAttributeTypeName );
 
                         Throwable error = new LdapSchemaViolationException( msg,
                             ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
@@ -276,8 +268,7 @@
                     if ( mayAttributeTypes.contains( attributeType ) )
                     {
                         // Already registered : this is an error
-                        String msg = "Cannot register the SchemaOject " + oid
-                            + ", there are some duplicate AT in MAY and MUST : " + mustAttributeTypeName;
+                        String msg = I18n.err( I18n.ERR_04325, oid, mustAttributeTypeName );
 
                         Throwable error = new LdapSchemaViolationException( msg,
                             ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
@@ -290,8 +281,7 @@
                 catch ( NamingException ne )
                 {
                     // Cannot find the AT
-                    String msg = "Cannot register the SchemaOject " + oid
-                        + ", the AT we want to add to MUST does not exist : " + mustAttributeTypeName;
+                    String msg = I18n.err( I18n.ERR_04326, oid, mustAttributeTypeName );
 
                     Throwable error = new LdapSchemaViolationException( msg, ResultCodeEnum.INVALID_ATTRIBUTE_SYNTAX );
                     errors.add( error );

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ObjectClassTypeEnum.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ObjectClassTypeEnum.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ObjectClassTypeEnum.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/ObjectClassTypeEnum.java Sat Mar  6 13:44:54 2010
@@ -19,6 +19,8 @@
  */
 package org.apache.directory.shared.ldap.schema;
 
+import org.apache.directory.shared.i18n.I18n;
+
 
 /**
  * Type safe enumerations for an objectClass' type. An ObjectClass type can be
@@ -102,7 +104,6 @@
             return ABSTRACT;
         }
 
-        throw new IllegalArgumentException( "Unknown objectClass type name '" + name
-            + "': options are AUXILIARY, STRUCTURAL, ABSTRACT." );
+        throw new IllegalArgumentException( I18n.err( I18n.ERR_04327, name) );
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/SchemaUtils.java Sat Mar  6 13:44:54 2010
@@ -28,6 +28,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.constants.MetaSchemaConstants;
 import org.apache.directory.shared.ldap.entry.Entry;
 import org.apache.directory.shared.ldap.entry.EntryAttribute;
@@ -112,7 +113,7 @@
                     break;
 
                 default:
-                    throw new IllegalStateException( "undefined modification type: " + mod.getOperation() );
+                    throw new IllegalStateException( I18n.err( I18n.ERR_04328, mod.getOperation() ) );
             }
         }
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/AbstractSchemaLoader.java Sat Mar  6 13:44:54 2010
@@ -28,6 +28,7 @@
 import java.util.Map;
 import java.util.Set;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.constants.MetaSchemaConstants;
 import org.apache.directory.shared.ldap.constants.SchemaConstants;
 import org.apache.directory.shared.ldap.entry.Entry;
@@ -164,12 +165,12 @@
 
         if ( entry == null )
         {
-            throw new NullPointerException( "entry cannot be null" );
+            throw new NullPointerException( I18n.err( I18n.ERR_04261 ) );
         }
 
         if ( entry.get( SchemaConstants.CN_AT ) == null )
         {
-            throw new NullPointerException( "entry must have a valid cn attribute" );
+            throw new NullPointerException( I18n.err( I18n.ERR_04262 ) );
         }
 
         name = entry.get( SchemaConstants.CN_AT ).getString();

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultDITStructureRuleRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultDITStructureRuleRegistry.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultDITStructureRuleRegistry.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultDITStructureRuleRegistry.java Sat Mar  6 13:44:54 2010
@@ -26,6 +26,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.schema.DITStructureRule;
 import org.apache.directory.shared.ldap.schema.SchemaObject;
 import org.apache.directory.shared.ldap.schema.SchemaObjectType;
@@ -100,7 +101,7 @@
             return ditStructureRule.getSchemaName();
         }
         
-        String msg = "RuleId " + ruleId + " not found in ruleId to schema name map!";
+        String msg = I18n.err( I18n.ERR_04263, ruleId );
         LOG.warn( msg );
         throw new NamingException( msg );
     }
@@ -115,7 +116,7 @@
         
         if ( byRuleId.containsKey( ruleId ) )
         {
-            String msg = "DITStructureRule with RuleId " + ruleId + " already registered!";
+            String msg = I18n.err( I18n.ERR_04264, ruleId );
             LOG.warn( msg );
             throw new NamingException( msg );
         }
@@ -138,7 +139,7 @@
 
         if ( ditStructureRule == null )
         {
-            String msg = "DITStructureRule for ruleId " + ruleId + " does not exist!";
+            String msg = I18n.err( I18n.ERR_04265, ruleId );
             LOG.debug( msg );
             throw new NamingException( msg );
         }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchema.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchema.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchema.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchema.java Sat Mar  6 13:44:54 2010
@@ -24,6 +24,7 @@
 import java.util.HashSet;
 import java.util.Set;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.schema.SchemaObjectWrapper;
 import org.apache.directory.shared.ldap.util.StringTools;
 
@@ -104,7 +105,7 @@
     {
         if ( name == null )
         {
-            throw new NullPointerException( "name cannot be null" );
+            throw new NullPointerException( I18n.err( I18n.ERR_04266 ) );
         }
         
         this.name = name;

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchemaObjectRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchemaObjectRegistry.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchemaObjectRegistry.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/DefaultSchemaObjectRegistry.java Sat Mar  6 13:44:54 2010
@@ -27,6 +27,7 @@
 import javax.naming.NamingException;
 
 import org.apache.directory.shared.asn1.primitives.OID;
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.exception.LdapSchemaViolationException;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.schema.LoadableSchemaObject;
@@ -94,7 +95,7 @@
     {
         if ( !OID.isOID( oid ) )
         {
-            String msg = "Looks like the arg is not a numeric OID";
+            String msg = I18n.err( I18n.ERR_04267 );
             LOG.warn( msg );
             throw new NamingException( msg );
         }
@@ -106,7 +107,7 @@
             return schemaObject.getSchemaName();
         }
 
-        String msg = "OID " + oid + " not found in oid to schema name map!";
+        String msg = I18n.err( I18n.ERR_04268, oid );
         LOG.warn( msg );
         throw new NamingException( msg );
     }
@@ -172,7 +173,7 @@
 
         if ( schemaObject == null )
         {
-            String msg = schemaObjectType.name() + " for OID " + oid + " does not exist!";
+            String msg = I18n.err( I18n.ERR_04269, schemaObjectType.name(), oid );
             LOG.debug( msg );
             throw new NamingException( msg );
         }
@@ -195,7 +196,7 @@
 
         if ( byName.containsKey( oid ) )
         {
-            String msg = schemaObjectType.name() + " with OID " + oid + " already registered!";
+            String msg = I18n.err( I18n.ERR_04270, schemaObjectType.name(), oid );
             LOG.warn( msg );
             throw new LdapSchemaViolationException( msg, ResultCodeEnum.ATTRIBUTE_OR_VALUE_EXISTS );
         }
@@ -212,7 +213,7 @@
 
             if ( byName.containsKey( lowerName ) )
             {
-                String msg = schemaObjectType.name() + " with name " + name + " already registered!";
+                String msg = I18n.err( I18n.ERR_04271, schemaObjectType.name(), name );
                 LOG.warn( msg );
                 throw new LdapSchemaViolationException( msg, ResultCodeEnum.ATTRIBUTE_OR_VALUE_EXISTS );
             }
@@ -239,7 +240,7 @@
     {
         if ( !OID.isOID( numericOid ) )
         {
-            String msg = "OID " + numericOid + " is not a numeric OID";
+            String msg = I18n.err( I18n.ERR_04272, numericOid );
             LOG.error( msg );
             throw new NamingException( msg );
         }
@@ -272,7 +273,7 @@
 
         if ( !byName.containsKey( oid ) )
         {
-            String msg = schemaObjectType.name() + " with OID " + oid + " not registered!";
+            String msg = I18n.err( I18n.ERR_04273, schemaObjectType.name(), oid );
             LOG.warn( msg );
             throw new NamingException( msg );
         }
@@ -341,7 +342,7 @@
             // ok this name is not for a schema object in the registry
             if ( schemaObject == null )
             {
-                throw new NamingException( "Can't find an OID for the name " + name );
+                throw new NamingException( I18n.err( I18n.ERR_04274, name ) );
             }
         }
 

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableAttributeTypeRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableAttributeTypeRegistry.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableAttributeTypeRegistry.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableAttributeTypeRegistry.java Sat Mar  6 13:44:54 2010
@@ -25,6 +25,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.exception.LdapOperationNotSupportedException;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.schema.AttributeType;
@@ -88,8 +89,7 @@
      */
     public void register( AttributeType attributeType ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the AttributeTypeRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04275 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -98,8 +98,7 @@
      */
     public void registerDescendants( AttributeType attributeType, AttributeType ancestor ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the AttributeTypeRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04275 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -108,8 +107,7 @@
      */
     public void unregisterDescendants( AttributeType attributeType, AttributeType ancestor ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the AttributeTypeRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04275 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -128,8 +126,7 @@
      */
     public void addMappingFor( AttributeType attributeType ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the AttributeTypeRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04275 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -138,8 +135,7 @@
      */
     public void removeMappingFor( AttributeType attributeType ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the AttributeTypeRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04275 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -247,8 +243,7 @@
      */
     public void unregisterSchemaElements( String schemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the AttributeTypeRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04275 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -266,8 +261,7 @@
      */
     public void clear() throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the AttributeTypeRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04275 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -276,7 +270,6 @@
      */
     public AttributeType unregister( AttributeType schemaObject ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the AttributeTypeRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04275 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableComparatorRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableComparatorRegistry.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableComparatorRegistry.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableComparatorRegistry.java Sat Mar  6 13:44:54 2010
@@ -24,6 +24,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.exception.LdapOperationNotSupportedException;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.schema.LdapComparator;
@@ -59,8 +60,7 @@
      */
     public void register( LdapComparator<?> comparator ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the ComparatorRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04276 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -69,8 +69,7 @@
      */
     public LdapComparator<?> unregister( String numericOid ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the ComparatorRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04276 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -79,8 +78,7 @@
      */
     public void unregisterSchemaElements( String schemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the ComparatorRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04276 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -170,8 +168,7 @@
      */
     public void renameSchema( String originalSchemaName, String newSchemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the ComparatorRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04276 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -189,8 +186,7 @@
      */
     public void clear() throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the ComparatorRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04276 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -199,7 +195,6 @@
      */
     public LdapComparator<?> unregister( LdapComparator<?> schemaObject ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the  omparatorRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04276 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableDITContentRuleRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableDITContentRuleRegistry.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableDITContentRuleRegistry.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableDITContentRuleRegistry.java Sat Mar  6 13:44:54 2010
@@ -24,6 +24,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.exception.LdapOperationNotSupportedException;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.schema.DITContentRule;
@@ -140,8 +141,7 @@
      */
     public void register( DITContentRule schemaObject ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the DITContentRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04277 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -150,8 +150,7 @@
      */
     public void renameSchema( String originalSchemaName, String newSchemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the DITContentRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04277 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -160,8 +159,7 @@
      */
     public DITContentRule unregister( String numericOid ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the DITContentRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04277 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -170,8 +168,7 @@
      */
     public void unregisterSchemaElements( String schemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the DITContentRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04277 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -189,8 +186,7 @@
      */
     public void clear() throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the DITContentRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04277 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -199,7 +195,6 @@
      */
     public DITContentRule unregister( DITContentRule schemaObject ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the DITContentRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04277 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableDITStructureRuleRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableDITStructureRuleRegistry.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableDITStructureRuleRegistry.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableDITStructureRuleRegistry.java Sat Mar  6 13:44:54 2010
@@ -24,6 +24,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.exception.LdapOperationNotSupportedException;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.schema.DITStructureRule;
@@ -112,8 +113,7 @@
      */
     public void unregister( int ruleId ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the DITStructureRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04278 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -122,8 +122,7 @@
      */
     public void unregisterSchemaElements( String schemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the DITStructureRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04278 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -132,8 +131,7 @@
      */
     public void renameSchema( String originalSchemaName, String newSchemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the DITStructureRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04278 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -214,8 +212,7 @@
      */
     public DITStructureRule unregister( String numericOid ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the DITStructureRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04278 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -233,8 +230,7 @@
      */
     public void clear() throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the DITStructureRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04278 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -243,7 +239,6 @@
      */
     public DITStructureRule unregister( DITStructureRule schemaObject ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the DITStructureRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04278 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableLdapSyntaxRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableLdapSyntaxRegistry.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableLdapSyntaxRegistry.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableLdapSyntaxRegistry.java Sat Mar  6 13:44:54 2010
@@ -24,6 +24,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.exception.LdapOperationNotSupportedException;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.schema.LdapSyntax;
@@ -140,8 +141,7 @@
      */
     public void register( LdapSyntax schemaObject ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the LdapSyntaxRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04279 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -150,8 +150,7 @@
      */
     public void renameSchema( String originalSchemaName, String newSchemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the LdapSyntaxRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04279 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -160,8 +159,7 @@
      */
     public LdapSyntax unregister( String numericOid ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the LdapSyntaxRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04279 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -170,8 +168,7 @@
      */
     public void unregisterSchemaElements( String schemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the LdapSyntaxRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04279 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -189,8 +186,7 @@
      */
     public void clear() throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the LdapSyntaxRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04279 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -199,7 +195,6 @@
      */
     public LdapSyntax unregister( LdapSyntax schemaObject ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the LdapSyntaxRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04279 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableMatchingRuleRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableMatchingRuleRegistry.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableMatchingRuleRegistry.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableMatchingRuleRegistry.java Sat Mar  6 13:44:54 2010
@@ -24,6 +24,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.exception.LdapOperationNotSupportedException;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.schema.MatchingRule;
@@ -140,8 +141,7 @@
      */
     public void register( MatchingRule schemaObject ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the MatchingRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04280 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -150,8 +150,7 @@
      */
     public void renameSchema( String originalSchemaName, String newSchemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the MatchingRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04280 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -160,8 +159,7 @@
      */
     public MatchingRule unregister( String numericOid ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the MatchingRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04280 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -170,8 +168,7 @@
      */
     public void unregisterSchemaElements( String schemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the MatchingRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04280 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -189,8 +186,7 @@
      */
     public void clear() throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the MatchingRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04280 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -199,7 +195,6 @@
      */
     public MatchingRule unregister( MatchingRule schemaObject ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the MatchingRuleRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04280 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableMatchingRuleUseRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableMatchingRuleUseRegistry.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableMatchingRuleUseRegistry.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableMatchingRuleUseRegistry.java Sat Mar  6 13:44:54 2010
@@ -24,6 +24,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.exception.LdapOperationNotSupportedException;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.schema.MatchingRuleUse;
@@ -140,8 +141,7 @@
      */
     public void register( MatchingRuleUse schemaObject ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the MatchingRuleUseRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04281 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -150,8 +150,7 @@
      */
     public void renameSchema( String originalSchemaName, String newSchemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the MatchingRuleUseRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04281 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -160,8 +159,7 @@
      */
     public MatchingRuleUse unregister( String numericOid ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the MatchingRuleUseRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04281 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -170,8 +168,7 @@
      */
     public void unregisterSchemaElements( String schemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the MatchingRuleUseRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04281 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -189,8 +186,7 @@
      */
     public void clear() throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the MatchingRuleUseRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04281 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -199,7 +195,6 @@
      */
     public MatchingRuleUse unregister( MatchingRuleUse schemaObject ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the MatchingRuleUseRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04281 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 }

Modified: directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableNameFormRegistry.java
URL: http://svn.apache.org/viewvc/directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableNameFormRegistry.java?rev=919765&r1=919764&r2=919765&view=diff
==============================================================================
--- directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableNameFormRegistry.java (original)
+++ directory/shared/trunk/ldap/src/main/java/org/apache/directory/shared/ldap/schema/registries/ImmutableNameFormRegistry.java Sat Mar  6 13:44:54 2010
@@ -24,6 +24,7 @@
 
 import javax.naming.NamingException;
 
+import org.apache.directory.shared.i18n.I18n;
 import org.apache.directory.shared.ldap.exception.LdapOperationNotSupportedException;
 import org.apache.directory.shared.ldap.message.ResultCodeEnum;
 import org.apache.directory.shared.ldap.schema.NameForm;
@@ -140,8 +141,7 @@
      */
     public void register( NameForm schemaObject ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the NameFormRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04282 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -150,8 +150,7 @@
      */
     public void renameSchema( String originalSchemaName, String newSchemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the NameFormRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04282 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -160,8 +159,7 @@
      */
     public NameForm unregister( String numericOid ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the NameFormRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04282 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -170,8 +168,7 @@
      */
     public void unregisterSchemaElements( String schemaName ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the NameFormRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04282 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -189,8 +186,7 @@
      */
     public void clear() throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the NameFormRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04282 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 
 
@@ -199,7 +195,6 @@
      */
     public NameForm unregister( NameForm schemaObject ) throws NamingException
     {
-        throw new LdapOperationNotSupportedException( "Cannot modify the NameFormRegistry copy",
-            ResultCodeEnum.NO_SUCH_OPERATION );
+        throw new LdapOperationNotSupportedException( I18n.err( I18n.ERR_04282 ), ResultCodeEnum.NO_SUCH_OPERATION );
     }
 }



Mime
View raw message