void setRegistered() {
        registered = true;
    }
Creates a datatype

@param name       the name of the type
@param dataTypeId the id of the type
document/src/main/java/com/yahoo/document/DataType.java