001    /*
002     * JBoss DNA (http://www.jboss.org/dna)
003     * See the COPYRIGHT.txt file distributed with this work for information
004     * regarding copyright ownership.  Some portions may be licensed
005     * to Red Hat, Inc. under one or more contributor license agreements.
006    * See the AUTHORS.txt file in the distribution for a full listing of 
007    * individual contributors.
008     *
009     * JBoss DNA is free software. Unless otherwise indicated, all code in JBoss DNA
010     * is licensed to you under the terms of the GNU Lesser General Public License as
011     * published by the Free Software Foundation; either version 2.1 of
012     * the License, or (at your option) any later version.
013     *
014     * JBoss DNA is distributed in the hope that it will be useful,
015     * but WITHOUT ANY WARRANTY; without even the implied warranty of
016     * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
017     * Lesser General Public License for more details.
018     *
019     * You should have received a copy of the GNU Lesser General Public
020     * License along with this software; if not, write to the Free
021     * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
022     * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
023     */
024    package org.jboss.dna.jcr;
025    
026    import org.jboss.dna.common.i18n.I18n;
027    
028    /**
029     * @author John Verhaeg
030     * @author Randall Hauch
031     */
032    public final class JcrI18n {
033    
034        public static I18n cannotConvertValue;
035        public static I18n credentialsMustProvideJaasMethod;
036        public static I18n credentialsMustReturnAccessControlContext;
037        public static I18n credentialsMustReturnLoginContext;
038        public static I18n defaultWorkspaceName;
039        public static I18n inputStreamConsumed;
040        public static I18n nonInputStreamConsumed;
041        public static I18n pathNotFound;
042        public static I18n pathNotFoundRelativeTo;
043        public static I18n permissionDenied;
044        public static I18n repositoryMustBeConfigured;
045        public static I18n sourceInUse;
046        public static I18n repositoryDoesNotExist;
047    
048        public static I18n noNamespaceWithPrefix;
049        public static I18n noNamespaceWithUri;
050        public static I18n unableToChangeTheDefaultNamespace;
051        public static I18n unableToRegisterReservedNamespacePrefix;
052        public static I18n unableToRegisterReservedNamespaceUri;
053        public static I18n unableToRegisterNamespaceUsingXmlPrefix;
054        public static I18n unableToRegisterNamespaceWithInvalidPrefix;
055        public static I18n errorRegisteringPersistentNamespace;
056        public static I18n unableToUnregisterReservedNamespacePrefix;
057        public static I18n unableToUnregisterReservedNamespaceUri;
058        public static I18n unableToUnregisterPrefixForNamespaceThatIsNotRegistered;
059        public static I18n unableToRemapUriNotRegisteredInNamespaceRegistry;
060        public static I18n unableToRemapUriUsingPrefixUsedInNamespaceRegistry;
061    
062        public static I18n errorWhileInitializingTheNamespaceRegistry;
063        public static I18n invalidRelativePath;
064        public static I18n invalidPathParameter;
065        public static I18n invalidNamePattern;
066        public static I18n invalidNodeTypeNameParameter;
067        public static I18n noPrimaryItemNameDefinedOnPrimaryType;
068        public static I18n primaryItemNameForPrimaryTypeIsNotValid;
069        public static I18n primaryItemDoesNotExist;
070        public static I18n itemNotFoundWithUuid;
071        public static I18n itemNotFoundAtPath;
072        public static I18n itemNotFoundAtPathRelativeToReferenceNode;
073        public static I18n propertyNotFoundOnNode;
074        public static I18n propertyNotFoundAtPathRelativeToReferenceNode;
075        public static I18n nodeNotFoundAtPathRelativeToReferenceNode;
076        public static I18n childNotFoundUnderNode;
077        public static I18n errorWhileFindingNodeWithUuid;
078        public static I18n errorWhileFindingNodeWithPath;
079        public static I18n nodeDefinitionCouldNotBeDeterminedForNode;
080        public static I18n noSnsDefinitionForNode;
081        public static I18n missingNodeTypeForExistingNode;
082        public static I18n unableToCreateNodeWithPrimaryTypeThatDoesNotExist;
083        public static I18n unableToCreateNodeWithNoDefaultPrimaryTypeOnChildNodeDefinition;
084        public static I18n unableToSaveNodeThatWasCreatedSincePreviousSave;
085        public static I18n unableToSetMultiValuedPropertyUsingSingleValue;
086        public static I18n unableToSetSingleValuedPropertyUsingMultipleValues;
087        public static I18n unableToRefreshBranchSinceAtLeastOneNodeMovedToParentOutsideOfBranch;
088        public static I18n allPropertyValuesMustHaveSameType;
089    
090        public static I18n unableToRemoveRootNode;
091        public static I18n unableToMoveNodeToBeChildOfDecendent;
092        public static I18n nodeHasAlreadyBeenRemovedFromThisSession;
093    
094        public static I18n typeNotFound;
095        public static I18n supertypeNotFound;
096    
097        // Used in AbstractJcrNode#getAncestor
098        public static I18n noNegativeDepth;
099        public static I18n tooDeep;
100    
101        public static I18n REP_NAME_DESC;
102        public static I18n REP_VENDOR_DESC;
103        public static I18n SPEC_NAME_DESC;
104    
105        // New implementation
106        public static I18n errorObtainingWorkspaceNames;
107        public static I18n errorObtainingDefaultWorkspaceName;
108        public static I18n workspaceNameIsInvalid;
109        public static I18n errorVerifyingWorkspaceName;
110    
111        // Query-related messages
112        public static I18n notStoredQuery;
113        public static I18n invalidQueryLanguage;
114    
115        // Type registration messages
116        public static I18n invalidNodeTypeName;
117        public static I18n nodeTypeAlreadyExists;
118        public static I18n invalidPrimaryTypeName;
119        public static I18n invalidSupertypeName;
120        public static I18n supertypesConflict;
121        public static I18n ambiguousPrimaryItemName;
122        public static I18n invalidPrimaryItemName;
123        public static I18n autocreatedNodesNeedDefaults;
124        public static I18n residualDefinitionsCannotBeMandatory;
125        public static I18n cannotOverrideProtectedDefinition;
126        public static I18n cannotMakeMandatoryDefinitionOptional;
127        public static I18n constraintsChangedInSubtype;
128        public static I18n cannotRedefineProperty;
129        public static I18n autocreatedPropertyNeedsDefault;
130        public static I18n singleValuedPropertyNeedsSingleValuedDefault;
131    
132        public static I18n noDefinition;
133        public static I18n noSnsDefinition;
134        public static I18n missingMandatoryItem;
135    
136        static {
137            try {
138                I18n.initialize(JcrI18n.class);
139            } catch (final Exception err) {
140                System.err.println(err);
141            }
142        }
143    }