@Override public String getId() { Object value = getFirstValue(PropertyIds.OBJECT_ID); if (value instanceof String) { return (String) value; } return null; }
@Override public String getId() { Object value = getFirstValue(PropertyIds.OBJECT_ID); if (value instanceof String) { return (String) value; } return null; }
@Override public BaseTypeId getBaseTypeId() { Object value = getFirstValue(PropertyIds.BASE_TYPE_ID); if (value instanceof String) { try { return BaseTypeId.fromValue((String) value); } catch (Exception e) { // invalid base type -> return null } } return null; }
@Override public BaseTypeId getBaseTypeId() { Object value = getFirstValue(PropertyIds.BASE_TYPE_ID); if (value instanceof String) { try { return BaseTypeId.fromValue((String) value); } catch (Exception e) { // invalid base type -> return null } } return null; }