public int getFieldCount() {
        return contentStructType.getFieldCount();
    }
Returns whether this type defines the given field name

@param name The name of the field to check if it has
@return True if there is a field with the given name.
document/src/main/java/com/yahoo/document/DocumentType.java