isProperty method
Implementation
Safety<bool> isProperty(PropertyName propertyName) {
final log = Log(classLocation: runtimeType, functionLocation: 'isProperty');
final permanentlyPropertyRosterResult = permanentlyPropertyRoster.containsPrimaryKey(propertyName);
log.add(permanentlyPropertyRosterResult);
if (permanentlyPropertyRosterResult.wrapped) return Safety(permanentlyPropertyRosterResult.wrapped, log);
final temporaryPropertyRosterResult = temporaryPropertyRoster.containsPrimaryKey(propertyName);
log.add(temporaryPropertyRosterResult);
if (temporaryPropertyRosterResult.wrapped) return Safety(temporaryPropertyRosterResult.wrapped, log);
final listPropertyRosterResult = listPropertyRoster.containsPrimaryKey(propertyName);
log.add(listPropertyRosterResult);
if (listPropertyRosterResult.wrapped) return Safety(listPropertyRosterResult.wrapped, log);
final fragmentPropertyRosterResult = fragmentPropertyRoster.containsPrimaryKey(propertyName);
log.add(fragmentPropertyRosterResult);
if (fragmentPropertyRosterResult.wrapped) return Safety(fragmentPropertyRosterResult.wrapped, log);
return Safety(false, log.monitor({
'not exist proerty': propertyName.value,
'exist property name list': propertyNameList.toPrimitive(),
}));
}