public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new XProperty(name, parameters, value); }
XProperty p = new XProperty("X-ALT-DESC"); p.getParameters().add(new FmtType("text/html")); p.setValue("<html></html>");
/** * {@inheritDoc} */ public final void validate() throws ValidationException { if (!CompatibilityHints.isHintEnabled(CompatibilityHints.KEY_RELAXED_VALIDATION) && !getName().startsWith(EXPERIMENTAL_PREFIX)) { throw new ValidationException( "Invalid name [" + getName() + "]. Experimental properties must have the following prefix: " + EXPERIMENTAL_PREFIX); } }
/** * @param aName a non-standard property name * @param aList a list of parameters * @param aValue a property value */ public XProperty(final String aName, final ParameterList aList, final String aValue) { super(aName, aList, new Factory(aName)); setValue(aValue); }
al.addXproperty(new BwXproperty(xp.getName(), xp.getParameters().toString(), xp.getValue())); continue;
chg.addValue(PropertyInfoIndex.XPROP, new BwXproperty(name, xp.getParameters() .toString(), pval));
/** * @param aName a non-standard property name * @param aValue a property value */ public XProperty(final String aName, final String aValue) { super(aName, new Factory(aName)); setValue(aValue); }
protected static XProperty toXProperty(String name, String value) { if (name == null || value == null) { return null; } return new XProperty(name, value); } }
/** * @return */ public static TestSuite suite() { TestSuite suite = new TestSuite(); XProperty p = new XProperty("TEST"); p.setValue("value"); suite.addTest(new XPropertyTest(p, "value")); suite.addTest(new XPropertyTest("testValidationException", p)); suite.addTest(new XPropertyTest("testRelaxedValidation", p)); p = new XProperty("X-TEST"); suite.addTest(new XPropertyTest("testValidation", p)); p = new XProperty("TEST"); p.setValue("geo:37.331684,-122.030758"); suite.addTest(new XPropertyTest(p, "geo:37.331684,-122.030758")); suite.addTest(new PropertyTest("testToString", p, "TEST:geo:37.331684\\,-122.030758\r\n")); XProperty pUrl = new XProperty("TEST"); pUrl.getParameters().add(Value.URI); pUrl.setValue("geo:37.331684,-122.030758"); suite.addTest(new XPropertyTest(pUrl, "geo:37.331684,-122.030758")); suite.addTest(new PropertyTest("testToString", pUrl, "TEST;VALUE=URI:geo:37.331684,-122.030758\r\n")); return suite; } }
/** * @param aName a non-standard property name * @param aValue a property value */ public XProperty(final String aName, final String aValue) { super(aName, new Factory(aName)); setValue(aValue); }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { if (!CompatibilityHints.isHintEnabled(CompatibilityHints.KEY_RELAXED_VALIDATION) && !getName().startsWith(EXPERIMENTAL_PREFIX)) { throw new ValidationException( "Invalid name [" + getName() + "]. Experimental properties must have the following prefix: " + EXPERIMENTAL_PREFIX); } } }
public Property createProperty() { return new XProperty(name); } }
/** * @param aName a non-standard property name * @param aList a list of parameters * @param aValue a property value */ public XProperty(final String aName, final ParameterList aList, final String aValue) { super(aName, aList, new Factory(aName)); setValue(aValue); }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { if (!CompatibilityHints.isHintEnabled(CompatibilityHints.KEY_RELAXED_VALIDATION) && !getName().startsWith(EXPERIMENTAL_PREFIX)) { throw new ValidationException( "Invalid name [" + getName() + "]. Experimental properties must have the following prefix: " + EXPERIMENTAL_PREFIX); } } }
public Property createProperty(final ParameterList parameters, final String value) throws IOException, URISyntaxException, ParseException { return new XProperty(name, parameters, value); }
/** * @param aName a non-standard property name * @param aValue a property value */ public XProperty(final String aName, final String aValue) { super(aName, PropertyFactoryImpl.getInstance()); setValue(aValue); }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { if (!CompatibilityHints.isHintEnabled(CompatibilityHints.KEY_RELAXED_VALIDATION) && !getName().startsWith(EXPERIMENTAL_PREFIX)) { throw new ValidationException( "Invalid name [" + getName() + "]. Experimental properties must have the following prefix: " + EXPERIMENTAL_PREFIX); } }
public Property createProperty() { return new XProperty(name); } }
/** * @param aName a non-standard property name * @param aList a list of parameters * @param aValue a property value */ public XProperty(final String aName, final ParameterList aList, final String aValue) { super(aName, aList, PropertyFactoryImpl.getInstance()); setValue(aValue); }
/** * {@inheritDoc} */ public final void validate() throws ValidationException { if (!CompatibilityHints.isHintEnabled(CompatibilityHints.KEY_RELAXED_VALIDATION) && !getName().startsWith(EXPERIMENTAL_PREFIX)) { throw new ValidationException( "Invalid name [" + getName() + "]. Experimental properties must have the following prefix: " + EXPERIMENTAL_PREFIX); } } }