/** * Searches for the attributes associated with the specified property. If the property is not found, look * in the default properties. If the property is not found in the default properties, answer null. * * @param name the name of the property to find * @return the attributes for an existing property (not null); null for non-existant properties */ public Map<String,String> getAttributes(String name) { if (name == null) throw new NullPointerException("name is null"); name = normalize(name); Map<String, String> attributes = this.attributes.get(name); if (attributes == null && defaults instanceof SuperProperties) { attributes = ((SuperProperties) defaults).getAttributes(name); } return attributes; }
/** * Searches for the attributes associated with the specified property. If the property is not found, look * in the default properties. If the property is not found in the default properties, answer null. * * @param name the name of the property to find * @return the attributes for an existing property (not null); null for non-existant properties */ public Map<String, String> getAttributes(String name) { if (name == null) { throw new NullPointerException("name is null"); } name = normalize(name); Map<String, String> attributes = this.attributes.get(name); if (attributes == null && defaults instanceof SuperProperties) { attributes = ((SuperProperties) defaults).getAttributes(name); } return attributes; }
/** * Searches for the attributes associated with the specified property. If the property is not found, look * in the default properties. If the property is not found in the default properties, answer null. * * @param name the name of the property to find * @return the attributes for an existing property (not null); null for non-existant properties */ public Map<String, String> getAttributes(String name) { if (name == null) { throw new NullPointerException("name is null"); } name = normalize(name); Map<String, String> attributes = this.attributes.get(name); if (attributes == null && defaults instanceof SuperProperties) { attributes = ((SuperProperties) defaults).getAttributes(name); } return attributes; }
final String name = (String) key; final Map<String, String> attributes = properties.getAttributes(name);
final String name = (String) key; final Map<String, String> attributes = properties.getAttributes(name);
String name = (String) key; Map<String, String> attributes = properties.getAttributes(name); if (!attributes.containsKey("hidden")) { String value = properties.getProperty(name);