public List<String> getParameterNames() { return InternalUtils.sortedKeys(parameters); }
public List<String> getParameterNames() { return InternalUtils.sortedKeys(parameters); }
/** * @return the list of names of parameters in this content type, in alphabetical order. */ public List<String> getParameterNames() { return InternalUtils.sortedKeys(parameters); }
/** * Returns a list of all allocated ids, sorted alphabetically. */ public List<String> getAllocatedIds() { return InternalUtils.sortedKeys(generatorMap); }
@Override public List<String> getPropertyNames() { return InternalUtils.sortedKeys(properties); }
/** * Returns a list of all allocated ids, sorted alphabetically. */ public List<String> getAllocatedIds() { return InternalUtils.sortedKeys(generatorMap); }
@Override public List<String> getPropertyNames() { return InternalUtils.sortedKeys(properties); }
public List<String> getParameterNames() { return InternalUtils.sortedKeys(parameters); }
public List<String> getAttributeNames() { return InternalUtils.sortedKeys(attributes); }
public List<String> getDeclaredParameterNames() { return InternalUtils.sortedKeys(parameters); }
public List<String> getAttributeNames() { return InternalUtils.sortedKeys(attributes); }
/** * Returns a <em>sorted</em> list of system property names. */ public List<String> getSystemProperties() { return InternalUtils.sortedKeys(System.getProperties()); }
@Override public List<String> keys() { return InternalUtils.sortedKeys(configuration); } };
public List<String> getInformalParameterNames() { return InternalUtils.sortedKeys(getInformalParameterBindings()); }
private void writeParameters(ClassDescription cd, Writer writer) throws IOException { if (cd.parameters.isEmpty()) return; writer.write("</dl>" + "<table class='parameters'>" + "<caption><span>Component Parameters</span><span class='tabEnd'> </span></caption>" + "<tr class='columnHeaders'>" + "<th class='colFirst'>Name</th><th>Type</th><th>Flags</th><th>Default</th>" + "<th class='colLast'>Default Prefix</th>" + "</tr><tbody>"); int toggle = 0; for (String name : InternalUtils.sortedKeys(cd.parameters)) { ParameterDescription pd = cd.parameters.get(name); writerParameter(pd, alternateCssClass(toggle++), writer); } writer.write("</tbody></table></dd>"); }
private void writeParameters(ClassDescription cd, Writer writer) throws IOException { if (cd.parameters.isEmpty()) return; writer.write("</dl>" + "<table class='parameters'>" + "<caption><span>Component Parameters</span><span class='tabEnd'> </span></caption>" + "<tr class='columnHeaders'>" + "<th class='colFirst'>Name</th><th>Type</th><th>Flags</th><th>Default</th>" + "<th class='colLast'>Default Prefix</th>" + "</tr><tbody>"); int toggle = 0; for (String name : InternalUtils.sortedKeys(cd.parameters)) { ParameterDescription pd = cd.parameters.get(name); writerParameter(pd, alternateCssClass(toggle++), writer); } writer.write("</tbody></table></dd>"); }
private void writeEvents(ClassDescription cd, Writer writer) throws IOException { if (cd.events.isEmpty()) return; writer.write("<p><table class='parameters'>" + "<caption><span>Component Events</span><span class='tabEnd'> </span></caption>" + "<tr class='columnHeaders'>" + "<th class='colFirst'>Name</th><th class='colLast'>Description</th>" + "</tr><tbody>"); int toggle = 0; for (String name : InternalUtils.sortedKeys(cd.events)) { writer.write("<tr class='" + alternateCssClass(toggle++) + "'>"); writeElement(writer, "td class='colFirst'", name); String value = cd.events.get(name); writeElement(writer, "td class='colLast'", value); writer.write("</tr>"); } writer.write("</table></p>"); }
private void writeEvents(ClassDescription cd, Writer writer) throws IOException { if (cd.events.isEmpty()) return; writer.write("<p><table class='parameters'>" + "<caption><span>Component Events</span><span class='tabEnd'> </span></caption>" + "<tr class='columnHeaders'>" + "<th class='colFirst'>Name</th><th class='colLast'>Description</th>" + "</tr><tbody>"); int toggle = 0; for (String name : InternalUtils.sortedKeys(cd.events)) { writer.write("<tr class='" + alternateCssClass(toggle++) + "'>"); writeElement(writer, "td class='colFirst'", name); String value = cd.events.get(name); writeElement(writer, "td class='colLast'", value); writer.write("</tr>"); } writer.write("</table></p>"); }
List<String> namespaces = InternalUtils.sortedKeys(namespaceToPrefix);
private FieldValidator createValidator(Field field, ValidatorSpecification spec, String overrideId, Messages overrideMessages) { String validatorType = spec.getValidatorType(); assert InternalUtils.isNonBlank(validatorType); Validator validator = validators.get(validatorType); if (validator == null) throw new IllegalArgumentException(String.format("Unknown validator type '%s'. Configured validators are %s.", validatorType, InternalUtils.join(InternalUtils.sortedKeys(validators)))); // I just have this thing about always treating parameters as finals, so // we introduce a second variable to treat a mutable. String formValidationid = formSupport.getFormValidationId(); Object coercedConstraintValue = computeConstraintValue(validatorType, validator, spec.getConstraintValue(), formValidationid, overrideId, overrideMessages); MessageFormatter formatter = findMessageFormatter(formValidationid, overrideId, overrideMessages, validatorType, validator); return new FieldValidatorImpl(field, coercedConstraintValue, formatter, validator, formSupport); }