XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_PROPERTY_TYPE_MAX_LENGTH, def.getMaxLength());
} else if (source instanceof PropertyIdDefinition) {
PropertyIdDefinition def = (PropertyIdDefinition) source;
if (def.getDefaultValue() != null) {
writeProperty(writer, new PropertyIdImpl(null, def.getDefaultValue()), true);
}
} else if (source instanceof PropertyIntegerDefinition) {
PropertyIntegerDefinition def = (PropertyIntegerDefinition) source;
if (def.getDefaultValue() != null) {
writeProperty(writer, new PropertyIntegerImpl(null, def.getDefaultValue()), true);
}
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_PROPERTY_TYPE_MAX_VALUE, def.getMaxValue());
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_PROPERTY_TYPE_MIN_VALUE, def.getMinValue());
} else if (source instanceof PropertyBooleanDefinition) {
PropertyBooleanDefinition def = (PropertyBooleanDefinition) source;
if (def.getDefaultValue() != null) {
writeProperty(writer, new PropertyBooleanImpl(null, def.getDefaultValue()), true);
}
} else if (source instanceof PropertyDateTimeDefinition) {
PropertyDateTimeDefinition def = (PropertyDateTimeDefinition) source;
if (def.getDefaultValue() != null) {
writeProperty(writer, new PropertyDateTimeImpl(null, def.getDefaultValue()), true);
}
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_PROPERTY_TYPE_RESOLUTION,
def.getDateTimeResolution());
} else if (source instanceof PropertyDecimalDefinition) {
PropertyDecimalDefinition def = (PropertyDecimalDefinition) source;
if (def.getDefaultValue() != null) {
writeProperty(writer, new PropertyDecimalImpl(null, def.getDefaultValue()), true);
}
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_PROPERTY_TYPE_MAX_VALUE, def.getMaxValue());
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_PROPERTY_TYPE_MIN_VALUE, def.getMinValue());
XMLUtils.write(writer, PREFIX_CMIS, NAMESPACE_CMIS, TAG_PROPERTY_TYPE_PRECISION, def.getPrecision());
} else if (source instanceof PropertyHtmlDefinition) {
PropertyHtmlDefinition def = (PropertyHtmlDefinition) source;
if (def.getDefaultValue() != null) {
writeProperty(writer, new PropertyIdImpl(null, def.getDefaultValue()), true);
}
} else if (source instanceof PropertyUriDefinition) {
PropertyUriDefinition def = (PropertyUriDefinition) source;
if (def.getDefaultValue() != null) {
writeProperty(writer, new PropertyIdImpl(null, def.getDefaultValue()), true);
}
}
if (source.getChoices() != null) {
for (Choice<?> c : source.getChoices()) {