if ( prop.getType() == null ) { prop.setType(PropertyType.String);
final AttributesImpl ai = new AttributesImpl(); IOUtils.addAttribute(ai, ATTR_NAME, property.getName()); if ( property.getType() != PropertyType.String && property.getType() != PropertyType.Password) { IOUtils.addAttribute(ai, PROPERTY_ATTR_TYPE, property.getType()); if ( property.getType() == PropertyType.Character || property.getType() == PropertyType.Char ) { value = String.valueOf((int)value.charAt(0)); 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));
this.logError(property, "Property name can not be empty."); if (property.getType() != null) { if (this.options.getSpecVersion() == SpecVersion.VERSION_1_0 && property.getType() == PropertyType.Character) { property.setType(PropertyType.Char); && property.getType() == PropertyType.Char) { property.setType(PropertyType.Character); if ( property.getType() == PropertyType.Char || property.getType() == PropertyType.Character ) { if ( property.getValue() != null ) { if ( property.getValue().length() != 1 ) {
ocd.getProperties().add(ad); ad.setId(pd.getName()); ad.setType(pd.getType().name());
@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; } }