/** * {@inheritDoc} */ public AccessibilityInfo createProperty(final List<Parameter> params, final String value) throws URISyntaxException { return new AccessibilityInfo(params, value); }
/** * @param uri Specify special resource accessibility info for physically * disabled people. * @param types optional classifiers */ public AccessibilityInfo(final URI uri, final Type...types) { super(Id.ACCESSIBILITYINFO); this.uri = uri; for (Type type : types) { getParameters().add(type); } }
/** * Factory constructor. * @param params property parameters * @param value string representation of a property value * @throws URISyntaxException where the specified string value is not a valid URI */ public AccessibilityInfo(final List<Parameter> params, final String value) throws URISyntaxException { super(Id.ACCESSIBILITYINFO, params); Value v = (Value) this.getParameter(Parameter.Id.VALUE); if ((v == null) | (v.getValue().toLowerCase().equals("uri"))) { uri = new URI(value); } else { this.value = value; } }
/** * @param val resource accessibility info free text value * @param types optional classifiers * @throws URISyntaxException where the specified string value is not a valid URI * and the type is "uri" */ public AccessibilityInfo(final String val, final Type...types) throws URISyntaxException { super(Id.BOOKINGINFO); value = val; for (Type type : types) { getParameters().add(type); } }