Object getName(PropertyObject ref) {
return ref.name();
}
@Override
DataWithRef getRef(PropertyObject prop) {
PropertyWithValue asPropertyWithValue = prop.asPropertyWithValue();
if (asPropertyWithValue != null) {
return DataWithRef.fromSomeRef(asPropertyWithValue.value());
} else {
return DataWithRef.fromLong(prop.asPropertyWithRef().ref());
}
}