public int getEntityType(String ename) {
        EntityInfo entity = entityInfo.get(ename);
        return (entity == null) ? ENTITY_UNDECLARED : entity.type;
    }
Find the type of an entity.

@returns An integer constant representing the entity type.
@see #ENTITY_UNDECLARED
@see #ENTITY_INTERNAL
@see #ENTITY_NDATA
@see #ENTITY_TEXT
src/nu/validator/gnu/xml/aelfred2/XmlParser.java