private final boolean improvedXsiTypeHandling;
private final boolean idRef;
public SingleElementLeafProperty(JAXBContextImpl context, RuntimeElementPropertyInfo prop) {
super(context, prop);
RuntimeTypeRef ref = prop.getTypes().get(0);
tagName = context.nameBuilder.createElementName(ref.getTagName());
assert tagName != null;
nillable = ref.isNillable();
defaultValue = ref.getDefaultValue();
this.acc = prop.getAccessor().optimize(context);
xacc = TransducedAccessor.get(context, ref);
assert xacc != null;
improvedXsiTypeHandling = context.improvedXsiTypeHandling;
idRef = ref.getSource().id() == ID.IDREF;
}