public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new XProperty(name, parameters, value); }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new XProperty(name, parameters, value); }
protected static XProperty toXProperty(String name, String value) { if (name == null || value == null) { return null; } return new XProperty(name, value); } }
public Property createProperty() { return new XProperty(name); } }
public Property createProperty() { return new XProperty(name); } }
Calendar calendar = new Calendar(); calendar.getProperties().add(new XProperty("X-MS-OLK-FORCEINSPECTOROPEN" , "TRUE"));
/** * {@inheritDoc} */ public Property createProperty(final String name) { final PropertyFactory factory = getFactory(name); if (factory != null) { return factory.createProperty(); } else if (isExperimentalName(name)) { return new XProperty(name); } else if (allowIllegalNames()) { return new XProperty(name); } else { throw new IllegalArgumentException("Illegal property [" + name + "]"); } }
/** * {@inheritDoc} */ public Property createProperty(final String name) { final PropertyFactory factory = getFactory(name); if (factory != null) { return factory.createProperty(); } else if (isExperimentalName(name)) { return new XProperty(name); } else if (allowIllegalNames()) { return new XProperty(name); } else { throw new IllegalArgumentException("Illegal property [" + name + "]"); } }
/** * {@inheritDoc} */ public Property createProperty(final String name) { final PropertyFactory factory = getFactory(name); if (factory != null) { return factory.createProperty(); } else if (isExperimentalName(name)) { return new XProperty(name); } else if (allowIllegalNames()) { return new XProperty(name); } else { throw new IllegalArgumentException("Illegal property [" + name + "]"); } }
/** * {@inheritDoc} */ public Property createProperty(final String name) { final PropertyFactory factory = getFactory(name); if (factory != null) { return factory.createProperty(); } else if (isExperimentalName(name)) { return new XProperty(name); } else if (allowIllegalNames()) { return new XProperty(name); } else { throw new IllegalArgumentException("Illegal property [" + name + "]"); } }
/** * {@inheritDoc} */ public Property createProperty(final String name, final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { final PropertyFactory factory = getFactory(name); if (factory != null) { return factory.createProperty(parameters, value); } else if (isExperimentalName(name)) { return new XProperty(name, parameters, value); } else if (allowIllegalNames()) { return new XProperty(name, parameters, value); } else { throw new IllegalArgumentException("Illegal property [" + name + "]"); } }
/** * {@inheritDoc} */ public Property createProperty(final String name, final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { final PropertyFactory factory = getFactory(name); if (factory != null) { return factory.createProperty(parameters, value); } else if (isExperimentalName(name)) { return new XProperty(name, parameters, value); } else if (allowIllegalNames()) { return new XProperty(name, parameters, value); } else { throw new IllegalArgumentException("Illegal property [" + name + "]"); } }
/** * {@inheritDoc} */ public Property createProperty(final String name, final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { final PropertyFactory factory = getFactory(name); if (factory != null) { return factory.createProperty(parameters, value); } else if (isExperimentalName(name)) { return new XProperty(name, parameters, value); } else if (allowIllegalNames()) { return new XProperty(name, parameters, value); } else { throw new IllegalArgumentException("Illegal property [" + name + "]"); } }
/** * @param pl * @param name * @param pars * @param val * @throws Throwable */ public static void addXproperty(final PropertyList pl, final String name, final List<BwXproperty.Xpar> pars, final String val) throws Throwable { if (val == null) { return; } pl.add(new XProperty(name, makeXparlist(pars), val)); }
/** * {@inheritDoc} */ public Property createProperty(final String name, final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { final PropertyFactory factory = getFactory(name); if (factory != null) { return factory.createProperty(parameters, value); } else if (isExperimentalName(name)) { return new XProperty(name, parameters, value); } else if (allowIllegalNames()) { return new XProperty(name, parameters, value); } else { throw new IllegalArgumentException("Illegal property [" + name + "]"); } }
/** * {@inheritDoc} */ public Property createProperty(final String name) { final PropertyFactory factory = (PropertyFactory) getFactory(name); if (factory != null) { return factory.createProperty(name); } else if (isExperimentalName(name)) { return new XProperty(name); } else if (allowIllegalNames()) { return new XProperty(name); } else { throw new IllegalArgumentException("Illegal property [" + name + "]"); } }
XProperty p = new XProperty("X-ALT-DESC"); p.getParameters().add(new FmtType("text/html")); p.setValue("<html></html>");
public Property build() throws ParseException, IOException, URISyntaxException { Property property = null; for (PropertyFactory factory : factories) { if (factory.supports(name)) { property = factory.createProperty(parameters, value); if (property instanceof Escapable) { property.setValue(Strings.unescape(value)); } } } if (property == null) { if (isExperimentalName(name)) { return new XProperty(name, parameters, value); } else if (allowIllegalNames()) { return new XProperty(name, parameters, value); } else { throw new IllegalArgumentException("Illegal property [" + name + "]"); } } return property; } }
/** * Update the X property on a component. * @param property the property to update * @param value the value to set * @param comp component to update */ public static void setXProperty(String property, String value, Component comp) { Property prop = comp.getProperties().getProperty(property); if(prop!=null) { comp.getProperties().remove(prop); } if (value != null) { prop = new XProperty(property, value); comp.getProperties().add(prop); } }
/** * Update the X property on a component. * @param property the property to update * @param value the value to set * @param comp component to update */ public static void setXProperty(String property, String value, Component comp) { Property prop = comp.getProperties().getProperty(property); if(prop!=null) { comp.getProperties().remove(prop); } if (value != null) { prop = new XProperty(property, value); comp.getProperties().add(prop); } }