private int getContentType(ElementDecl element, int defaultType) {
        int retval;

        if (element == null) {
            return defaultType;
        }
        retval = element.contentType;
        if (retval == CONTENT_UNDECLARED) {
            retval = defaultType;
        }
        return retval;
    }
Ensure the capacity of an array, allocating a new one if necessary.
Usually extends only for name hash collisions.
src/nu/validator/gnu/xml/aelfred2/XmlParser.java