if (prop.getMultiValue() != null && prop.getCardinality() == 0) { prop.setUnbounded(PropertyUnbounded.ARRAY);
if (property.getMultiValue() != null && property.getMultiValue().length > 0) { for (int i = 0; i < property.getMultiValue().length; i++) { IOUtils.indent(contentHandler, indent + 1); value = property.getMultiValue()[i]; if ( property.getType() == PropertyType.Character || property.getType() == PropertyType.Char ) { value = String.valueOf((int)value.charAt(0));
if ( property.getMultiValue() != null ) { for(final String value : property.getMultiValue() ) { if ( value.length() != 1 ) { this.logError(property, "Value is not a character: " + value);
found.setMultiValue(values); } else { final String[] oldValues = found.getMultiValue(); final String[] newValues = new String[oldValues.length + 1]; System.arraycopy(oldValues, 0, newValues, 0, oldValues.length);
ad.setDefaultMultiValue(pd.getMultiValue());
@Override public AbstractDescription clone() { final PropertyDescription cd = new PropertyDescription(this.annotation); cd.setName(this.getName()); cd.setLabel(this.getLabel()); cd.setDescription(this.getDescription()); if ( this.getValue() != null ) { cd.setValue(this.getValue()); } else { cd.setMultiValue(this.getMultiValue()); } cd.setType(this.getType()); cd.setUnbounded(this.getUnbounded()); cd.setCardinality(this.getCardinality()); cd.setPrivate(this.isPrivate()); cd.setOptions(this.getOptions()); return cd; } }