View Javadoc

1   /*
2    * Copyright 2011 The Kuali Foundation
3    *
4    * Licensed under the Educational Community License, Version 1.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/ecl1.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  package org.kuali.student.r2.common.datadictionary.util;
17  
18  
19  import java.util.List;
20  import org.kuali.rice.krad.datadictionary.exception.AttributeValidationException;
21  import org.kuali.rice.krad.datadictionary.validation.AttributeValueReader;
22  import org.kuali.rice.krad.datadictionary.validation.capability.Constrainable;
23  
24  public class MockAttributeValueReader implements AttributeValueReader
25  {
26      @Override
27      public boolean isReadable(){
28          return true;
29      }
30  
31      @Override
32      public String getAttributeName() {
33          return "test";
34      }
35  
36      @Override
37      public List<String> getCleanSearchableValues(String attributeName) throws AttributeValidationException {
38          throw new UnsupportedOperationException("Not supported yet.");
39      }
40  
41      @Override
42      public Constrainable getDefinition(String attributeName) {
43         return null;
44      }
45  
46      @Override
47      public List<Constrainable> getDefinitions() {
48          throw new UnsupportedOperationException("Not supported yet.");
49      }
50  
51      @Override
52      public Constrainable getEntry() {
53          throw new UnsupportedOperationException("Not supported yet.");
54      }
55  
56      @Override
57      public String getEntryName() {
58          return "test";
59      }
60  
61      @Override
62      public String getLabel(String attributeName) {
63          throw new UnsupportedOperationException("Not supported yet.");
64      }
65  
66      @Override
67      public Object getObject() {
68          throw new UnsupportedOperationException("Not supported yet.");
69      }
70  
71      @Override
72      public String getPath() {
73          throw new UnsupportedOperationException("Not supported yet.");
74      }
75  
76      @Override
77      public Class<?> getType(String attributeName) {
78          throw new UnsupportedOperationException("Not supported yet.");
79      }
80  
81      @Override
82      public <X> X getValue() throws AttributeValidationException {
83          throw new UnsupportedOperationException("Not supported yet.");
84      }
85  
86      @Override
87      public <X> X getValue(String attributeName) throws AttributeValidationException {
88          throw new UnsupportedOperationException("Not supported yet.");
89      }
90  
91      @Override
92      public void setAttributeName(String attributeName) {
93          throw new UnsupportedOperationException("Not supported yet.");
94      }
95  
96      @Override
97      public AttributeValueReader clone() {
98          throw new UnsupportedOperationException("Not supported yet.");
99      }
100 }