/** * Constructor that copies the data from an XProperty value. * * @param property the disorder XProperty * @param value the specific value from the property represented by this object * @throws IllegalArgumentException if one of the arguments is {@code null} or otherwise malformed for the ontology */ public PhenoTipsDisorder(ListProperty property, String value) { super((value != null && StringUtils.equals(property.getName(), "omim_id") && OMIM_TERM_PATTERN.matcher( value).matches()) ? MIM_PREFIX + value : value); }
/** * Constructor that copies the data from an XProperty value. * * @param property the disorder XProperty * @param value the specific value from the property represented by this object * @throws IllegalArgumentException if one of the arguments is {@code null} or otherwise malformed for the ontology */ public PhenoTipsDisorder(ListProperty property, String value) { super((value != null && StringUtils.equals(property.getName(), "omim_id") && OMIM_TERM_PATTERN.matcher( value).matches()) ? MIM_PREFIX + value : value); }
this.propertyName = property.getName(); Matcher nameMatch = NEGATIVE_PREFIX.matcher(this.propertyName); this.present = !nameMatch.lookingAt();
this.propertyName = property.getName(); Matcher nameMatch = NEGATIVE_PREFIX.matcher(this.propertyName); this.present = !nameMatch.lookingAt();
/** * {@inheritDoc} * * @see com.xpn.xwiki.objects.BaseProperty#toXML() */ @Override public Element toXML() { Element el = new DOMElement(getName()); List<String> list = getList(); for (String value : list) { if (value != null) { Element vel = new DOMElement("value"); vel.setText(value); el.add(vel); } } return el; }