This project has retired. For details please refer to its Attic page.
ValidationConstants xref
View Javadoc
1   /*
2    * Copyright 2013 The Apache Software Foundation.
3    *
4    * Licensed under the Apache License, Version 2.0 (the "License");
5    * you may not use this file except in compliance with the License.
6    * You may obtain a copy of the License at
7    *
8    *      http://www.apache.org/licenses/LICENSE-2.0
9    *
10   * Unless required by applicable law or agreed to in writing, software
11   * distributed under the License is distributed on an "AS IS" BASIS,
12   * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13   * See the License for the specific language governing permissions and
14   * limitations under the License.
15   */
16  package org.apache.juddi.validation;
17  
18  /**
19   * Validation constants for various items, such as maximum string lengths
20   *
21   * @author <a href="mailto:alexoree@apache.org">Alex O'Ree</a>
22   */
23  public class ValidationConstants {
24  
25      public static final int MAX_accessPoint = 4096;
26      public static final int MAX_addressLine = 80;
27      public static final int MAX_authInfo = 4096;
28      public static final int MAX_Key = 255;
29      public static final int MAX_description = 255;
30      public static final int MAX_discoveryURL = 4096;
31      public static final int MAX_email = 255;
32      public static final int MAX_instanceParms = 8192;
33      public static final int MAX_keyName = 255;
34      public static final int MAX_keyValue = 255;
35      public static final int MAX_name = 255;
36      public static final int MAX_operator = 255;
37      public static final int MAX_overviewURL = 4096;
38      public static final int MAX_personName = 255;
39      public static final int MAX_phone = 50;
40      public static final int MAX_sortCode = 10;
41      public static final int MAX_useType = 255;
42      public static final int MAX_completionStatus = 32;
43      public static final int MAX_xml_lang = 26;
44  //2.3.2 Subscription API
45      public static final int MAX_subscriptionKey = 255;
46  //2.3.3 Replication API
47      public static final int MAX_nodeId = 255;
48      public static final int MAX_notifyingNode = 255;
49      public static final int MAX_operatorNodeID = 255;
50      public static final int MAX_requestingNode = 255;
51  }