| 1 |
|
|
| 2 |
|
|
| 3 |
|
|
| 4 |
|
|
| 5 |
|
package uk.co.badgersinfoil.asxsd; |
| 6 |
|
|
| 7 |
|
import uk.co.badgersinfoil.metaas.dom.ASMethod; |
| 8 |
|
|
| 9 |
|
|
| 10 |
|
public class BasicMappingFunction implements MappingFunction { |
| 11 |
|
|
| 12 |
|
private String qname; |
| 13 |
|
private ASMethod impl; |
| 14 |
|
|
| 15 |
161 |
public BasicMappingFunction(String qname) { |
| 16 |
161 |
this.qname = qname; |
| 17 |
161 |
} |
| 18 |
|
|
| 19 |
|
public String appliedTo(String accessExpr) { |
| 20 |
152 |
return qname + "(" + accessExpr + ")"; |
| 21 |
|
} |
| 22 |
|
|
| 23 |
|
public void setImplementation(ASMethod impl) { |
| 24 |
161 |
this.impl = impl; |
| 25 |
161 |
} |
| 26 |
|
public ASMethod getImplementation() { |
| 27 |
0 |
return impl; |
| 28 |
|
} |
| 29 |
|
} |