@Override public String getHomePageUrl() { return propertiesContext.getHomePageUrl(); }
/** * Returns the string representation of the object. * * @return the string representation of the object. */ @Override public String toString() { final StringBuilder buffer = new StringBuilder(); for (final Entry<String, PropertiesContext> entry : contexts.entrySet()) { buffer.append(entry.getKey()).append('=') .append(entry.getValue().getHomePageUrl()); } return buffer.toString(); } }
/** * Writes the configuration to the given stream. * * @param context the context to write. * @param out the stream to write to. * @throws IOException on any problem writing to the stream. */ public void write(final PropertiesContext context, final OutputStream out) throws IOException { final Element root = new Element("config"); final Document document = new Document(root); root.addContent(new Element("homepage-url").addContent(context .getHomePageUrl())); root.addContent(new Element("properties-report-url").addContent(context .getPropertiesReportUrl())); handleAliases(context, root); final XMLOutputter outputter = new XMLOutputter(); outputter.output(document, out); }