/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
/** * @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); }
XProperty p = new XProperty("X-ALT-DESC"); p.getParameters().add(new FmtType("text/html")); p.setValue("<html></html>");
/** * @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; } }