in src/main/java/org/apache/sling/servlets/post/impl/helper/SlingPropertyValueHandler.java [326:345]
private int getType(final Modifiable parent, RequestProperty prop)
throws PersistenceException {
// no explicit typehint
int type = PropertyType.UNDEFINED;
if (prop.getTypeHint() != null) {
try {
type = PropertyType.valueFromName(prop.getTypeHint());
} catch (Exception e) {
// ignore
}
}
String[] values = prop.getStringValues();
if ( type == PropertyType.UNDEFINED && values != null && values.length > 0 ) {
final Integer jcrType = jcrSupport.getPropertyType(parent.node, prop.getName());
if ( jcrType != null ) {
type = jcrType;
}
}
return type;
}