import org.opendaylight.mdsal.binding.model.api.MethodSignature;
import org.opendaylight.mdsal.binding.model.api.MethodSignature.ValueMechanics;
import org.opendaylight.mdsal.binding.model.api.Type;
+import org.opendaylight.mdsal.binding.model.api.TypeMemberComment;
final class BuilderGeneratedProperty implements GeneratedProperty {
- private final MethodSignature method;
+ private final MethodSignature getter;
private final String name;
- BuilderGeneratedProperty(final String name, final MethodSignature method) {
+ BuilderGeneratedProperty(final String name, final MethodSignature getter) {
this.name = requireNonNull(name);
- this.method = requireNonNull(method);
+ this.getter = requireNonNull(getter);
}
@Override
@Override
public Type getReturnType() {
- return method.getReturnType();
+ return getter.getReturnType();
}
ValueMechanics getMechanics() {
- return method.getMechanics();
+ return getter.getMechanics();
+ }
+
+ String getGetterName() {
+ return getter.getName();
}
@Override
return false;
}
final BuilderGeneratedProperty other = (BuilderGeneratedProperty) obj;
- return name.equals(other.name) && method.equals(other.method);
+ return name.equals(other.name) && getter.equals(other.getter);
}
@Override
- public String getComment() {
+ public TypeMemberComment getComment() {
throw uoe();
}
throw uoe();
}
- @Override
- public Type getDefiningType() {
- throw uoe();
- }
-
@Override
public String getValue() {
throw uoe();