private int getType()

in src/main/java/org/apache/sling/servlets/post/impl/helper/SlingPropertyValueHandler.java [321:339]


    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;
    }