@Override public List<ObjectType> findObjectType(String id) { List<ObjectType> result = null; readLock(); try { if (objectType.getPropertyDefinitions().containsKey(id)) { result = new ArrayList<ObjectType>(); result.add(objectType); } if (secondaryTypes != null) { for (SecondaryType secondaryType : secondaryTypes) { if (secondaryType.getPropertyDefinitions() != null && secondaryType.getPropertyDefinitions().containsKey(id)) { if (result == null) { result = new ArrayList<ObjectType>(); } result.add(secondaryType); } } } } finally { readUnlock(); } return result; }
@Override public List<ObjectType> findObjectType(String id) { List<ObjectType> result = null; readLock(); try { if (objectType.getPropertyDefinitions().containsKey(id)) { result = new ArrayList<ObjectType>(); result.add(objectType); } if (secondaryTypes != null) { for (SecondaryType secondaryType : secondaryTypes) { if (secondaryType.getPropertyDefinitions() != null && secondaryType.getPropertyDefinitions().containsKey(id)) { if (result == null) { result = new ArrayList<ObjectType>(); } result.add(secondaryType); } } } } finally { readUnlock(); } return result; }
if (secondaryType != null && secondaryType.getPropertyDefinitions() != null) { definition = secondaryType.getPropertyDefinitions().get(id); if (definition != null) { break;
if (secondaryType != null && secondaryType.getPropertyDefinitions() != null) { definition = secondaryType.getPropertyDefinitions().get(id); if (definition != null) { break;
if (secondaryType != null && secondaryType.getPropertyDefinitions() != null) { definition = (PropertyDefinition<T>) secondaryType.getPropertyDefinitions().get(pd.getId()); if (definition != null) { break;
if (secondaryType != null && secondaryType.getPropertyDefinitions() != null) { definition = (PropertyDefinition<T>) secondaryType.getPropertyDefinitions().get(pd.getId()); if (definition != null) { break;
boolean foundProperty = false; for (SecondaryType secondaryType : secondaryTypes) { if (secondaryType.getPropertyDefinitions() != null && secondaryType.getPropertyDefinitions().containsKey(prop.getId())) { foundProperty = true; break;