1 | public void addConfiguredInputMapper(Mapper inputMapper) {↵ | | 1 | public void addConfiguredOutputMapper(Mapper outputMapper) {↵
|
2 | if (isReference()) {↵ | | 2 | if (isReference()) {↵
|
3 | throw noChildrenAllowed();↵ | | 3 | throw noChildrenAllowed();↵
|
4 | }↵ | | 4 | }↵
|
5 | if (this.inputMapper != null) {↵ | | 5 | if (this.outputMapper != null) {↵
|
6 | if (usingInput) {↵ | | 6 | if (usingOutput) {↵
|
7 | throw new BuildException("attribute \"input\""↵ | | 7 | throw new BuildException("attribute \"output\""↵
|
8 | + " cannot coexist with a nested <inputmapper>");↵ | | 8 | + " cannot coexist with a nested <outputmapper>");↵
|
9 | } else {↵ | | 9 | } else {↵
|
10 | throw new BuildException("Cannot have > 1 <inputmapper>");↵ | | 10 | throw new BuildException("Cannot have > 1 <outputmapper>");↵
|
11 | }↵ | | 11 | }↵
|
12 | }↵ | | 12 | }↵
|
13 | this.inputMapper = inputMapper;↵ | | 13 | this.outputMapper = outputMapper;↵
|
14 | | | 14 |
|