@Override
    public String toString() {
        StringBuilder strb = new StringBuilder();
        strb.append(name).append(" (id ").append(id);
        if (dataType != null) {
            strb.append(", data type ").append(dataType);
        }
        strb.append(")");
        return strb.toString();
    }
WARNING! Only to be used by the configuration system and in unit tests. Not to be used in production code.

@param type the type to inherit from
document/src/main/java/com/yahoo/document/annotation/AnnotationType.java