| Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
| XmlTypeNameBuilder |
|
| 1.0;1 |
| 1 | /* | |
| 2 | * Copyright 2009 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.osedu.org/licenses/ECL-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.kuali.student.contract.writer; | |
| 17 | ||
| 18 | /** | |
| 19 | * | |
| 20 | * @author nwright | |
| 21 | */ | |
| 22 | public class XmlTypeNameBuilder | |
| 23 | { | |
| 24 | ||
| 25 | private String name; | |
| 26 | private String javaPackage; | |
| 27 | ||
| 28 | public XmlTypeNameBuilder (String name, String javaPackage) | |
| 29 | 0 | { |
| 30 | 0 | this.name = name; |
| 31 | 0 | this.javaPackage = javaPackage; |
| 32 | 0 | } |
| 33 | ||
| 34 | public String build () | |
| 35 | { | |
| 36 | 0 | return javaPackage + "." + name.substring (0, 1).toUpperCase () + name. |
| 37 | substring (1); | |
| 38 | } | |
| 39 | ||
| 40 | } |