Coverage Report - org.kuali.rice.core.api.CoreConstants
 
Classes in this File Line Coverage Branch Coverage Complexity
CoreConstants
0%
0/2
N/A
2
CoreConstants$CommonElements
0%
0/2
N/A
2
CoreConstants$Namespaces
0%
0/2
N/A
2
CoreConstants$Services
0%
0/2
N/A
2
 
 1  
 /*
 2  
  * Copyright 2006-2011 The Kuali Foundation
 3  
  *
 4  
  * Licensed under the Educational Community 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.opensource.org/licenses/ecl2.php
 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  
 
 17  
 package org.kuali.rice.core.api;
 18  
 
 19  
 /**
 20  
  * This class contains constants used by the core module. They are public to all and both clients 
 21  
  * and other rice modules are allowed to use them. 
 22  
  *
 23  
  * @author Kuali Rice Team (rice.collab@kuali.org)
 24  
  *
 25  
  */
 26  
 public final class CoreConstants {
 27  
 
 28  
     public static final class Services {
 29  
         public static final String DATETIME_SERVICE = "dateTimeService";
 30  
         public static final String ENCRYPTION_SERVICE = "encryptionService";
 31  
 
 32  0
         private Services() {
 33  0
                     throw new UnsupportedOperationException("do not call");
 34  
             }
 35  
         }
 36  
     
 37  
     public static final class Namespaces {
 38  
             public static final String ROOT_NAMESPACE_PREFIX = "http://rice.kuali.org";
 39  
             public static final String CORE_NAMESPACE_PREFIX = CoreConstants.Namespaces.ROOT_NAMESPACE_PREFIX + "/core";
 40  
 
 41  
             /**
 42  
              * Name for major version 2.0 of Kuali Rice which should be used in XML namespaces for data elements compatible with Kuali Rice 2.0.x.
 43  
              * This constant value should never be changed!  If it is changed then it will break compatibility with legacy clients.
 44  
              */
 45  
             public static final String VERSION_2_0 = "v2_0";
 46  
 
 47  
             /**
 48  
              * Namespace for the core module which is compatible with Kuali Rice 2.0.x.
 49  
              */
 50  
             public static final String CORE_NAMESPACE_2_0 = CORE_NAMESPACE_PREFIX + "/" + VERSION_2_0;
 51  
 
 52  0
         private Namespaces() {
 53  0
                     throw new UnsupportedOperationException("do not call");
 54  
             }
 55  
     }
 56  
 
 57  
     public static final class CommonElements {
 58  
         public static final String FUTURE_ELEMENTS = "_futureElements";
 59  
         public static final String VERSION_NUMBER = "versionNumber";
 60  
         public static final String OBJECT_ID = "objectId";
 61  
         public static final String ACTIVE = "active";
 62  
         public static final String ACTIVE_FROM_DATE = "activeFromDate";
 63  
         public static final String ACTIVE_TO_DATE = "activeToDate";
 64  
 
 65  0
         private CommonElements() {
 66  0
                     throw new UnsupportedOperationException("do not call");
 67  
             }
 68  
     }
 69  
         
 70  
         public static final String STRING_TO_DATE_FORMATS = "STRING_TO_DATE_FORMATS";
 71  
     public static final String STRING_TO_TIMESTAMP_FORMATS = "STRING_TO_TIMESTAMP_FORMATS";
 72  
     public static final String DATE_TO_STRING_FORMAT_FOR_USER_INTERFACE = "DATE_TO_STRING_FORMAT_FOR_USER_INTERFACE";
 73  
     public static final String TIMESTAMP_TO_STRING_FORMAT_FOR_USER_INTERFACE = "TIMESTAMP_TO_STRING_FORMAT_FOR_USER_INTERFACE";
 74  
     public static final String DATE_TO_STRING_FORMAT_FOR_FILE_NAME = "DATE_TO_STRING_FORMAT_FOR_FILE_NAME";
 75  
     public static final String TIMESTAMP_TO_STRING_FORMAT_FOR_FILE_NAME = "TIMESTAMP_TO_STRING_FORMAT_FOR_FILE_NAME";
 76  
     
 77  0
         private CoreConstants() {
 78  0
                 throw new UnsupportedOperationException("do not call");
 79  
         }
 80  
 }