|
|||||||||||||||||||
This license of Clover is provided to support the development of JBind only. Please visit http://www.thecortex.net/clover to obtain a licensed version of Clover. | |||||||||||||||||||
Source file | Conditionals | Statements | Methods | TOTAL | |||||||||||||||
BuiltInBinding.java | - | 80% | 75% | 77,8% |
|
1 |
/* |
|
2 |
* JBind |
|
3 |
* |
|
4 |
* Copyright (c) by Stefan Wachter. All rights reserved. |
|
5 |
* |
|
6 |
* Usage, modification, and redistribution is subject to license terms that are |
|
7 |
* available at 'http://www.jbind.org'. The JBind license is like the |
|
8 |
* 'Apache Software License V 1.1'. |
|
9 |
*/ |
|
10 |
package org.jbind.xml.schema.compiler; |
|
11 |
|
|
12 |
import org.jbind.xml.base.StringUtil; |
|
13 |
import org.jbind.xml.core.cmp.IBinding; |
|
14 |
import org.jbind.xml.core.cmp.IComponent; |
|
15 |
|
|
16 |
public class BuiltInBinding extends Binding implements IBinding { |
|
17 |
|
|
18 |
private String myPackage; |
|
19 |
private String myName; |
|
20 |
|
|
21 | 564 |
public BuiltInBinding(IComponent aComponent, String aPackage, String aNamePrefix, String aNameSuffix) { |
22 | 564 |
myPackage = aPackage; |
23 | 564 |
myName = StringUtil.toJavaIdentifier(aNamePrefix + StringUtil.firstUpper(aComponent.getName()) + aNameSuffix); |
24 |
} |
|
25 |
|
|
26 | 0 |
public String getInnerName() { |
27 | 0 |
return myName; |
28 |
} |
|
29 |
|
|
30 | 1652 |
public String getName(char aSeparator) { |
31 | 1652 |
return myName; |
32 |
} |
|
33 |
|
|
34 | 1992 |
public String getPackage() { |
35 | 1992 |
return myPackage; |
36 |
} |
|
37 |
|
|
38 |
} |
|
39 |
|
|