public Collection<DataType> getDataTypes() {
        return Collections.unmodifiableCollection(dataTypes.values());
    }
Returns a read only view of the registered data types

@return collection of types
document/src/main/java/com/yahoo/document/DocumentTypeManager.java