/** * {@inheritDoc} */ @Override public String[] getStringAttributes(String name) { try { List<String> objects = collectAttributeValuesAsList(name, String.class); return objects.toArray(new String[objects.size()]); } catch (NoSuchAttributeException e) { // The attribute does not exist - contract says to return null. return null; } }
/** * {@inheritDoc} */ @Override public String[] getStringAttributes(String name) { try { List<String> objects = collectAttributeValuesAsList(name, String.class); return objects.toArray(new String[objects.size()]); } catch (NoSuchAttributeException e) { // The attribute does not exist - contract says to return null. return null; } }
/** * {@inheritDoc} */ @Override public Object[] getObjectAttributes(String name) { try { List<Object> list = collectAttributeValuesAsList(name, Object.class); return list.toArray(new Object[list.size()]); } catch (NoSuchAttributeException e) { // The attribute does not exist - contract says to return null. return null; } }
/** * {@inheritDoc} */ @Override public String[] getStringAttributes(String name) { try { List<String> objects = collectAttributeValuesAsList(name, String.class); return objects.toArray(new String[objects.size()]); } catch (NoSuchAttributeException e) { // The attribute does not exist - contract says to return null. return null; } }
/** * {@inheritDoc} */ @Override public Object[] getObjectAttributes(String name) { try { List<Object> list = collectAttributeValuesAsList(name, Object.class); return list.toArray(new Object[list.size()]); } catch (NoSuchAttributeException e) { // The attribute does not exist - contract says to return null. return null; } }
/** * {@inheritDoc} */ @Override public Object[] getObjectAttributes(String name) { try { List<Object> list = collectAttributeValuesAsList(name, Object.class); return list.toArray(new Object[list.size()]); } catch (NoSuchAttributeException e) { // The attribute does not exist - contract says to return null. return null; } }
/** * {@inheritDoc} */ @Override public String[] getStringAttributes(String name) { try { List<String> objects = collectAttributeValuesAsList(name, String.class); return objects.toArray(new String[objects.size()]); } catch (NoSuchAttributeException e) { // The attribute does not exist - contract says to return null. return null; } }
/** * {@inheritDoc} */ @Override public Object[] getObjectAttributes(String name) { try { List<Object> list = collectAttributeValuesAsList(name, Object.class); return list.toArray(new Object[list.size()]); } catch (NoSuchAttributeException e) { // The attribute does not exist - contract says to return null. return null; } }